OpenLexocad  27.0
Core::PropertyLinkSet< T > Class Template Reference

#include <PropertyLink.h>

Inheritance diagram for Core::PropertyLinkSet< T >:
Core::PropertyLinkSetBase Core::Property Base::Persistance Base::BaseClass

Public Member Functions

void setValue (const boost::unordered_set< T > &linkset)
 
const boost::unordered_set< T > & getValue () const
 
bool addLink (T link)
 
bool removeLink (T link)
 
void addLinks (const boost::unordered_set< T > &linkset)
 
- Public Member Functions inherited from Core::Property
 Property (void)
 
virtual ~Property (void)
 
void setName (const std::string &name)
 
std::string getName () const
 
Core::PropertyContainergetContainer () const
 
void setContainer (Core::PropertyContainer *container)
 
void addToContainer (const std::string &name)
 
Core::Variant getVariantFromKey (const std::string &key) const
 Gets the variant for a key. More...
 
std::vector< std::string > getKeys () const
 Returns all keys of this property. More...
 
bool enableNotify (bool on)
 
bool isNotifyEnabled (void) const
 
void touch ()
 
bool setWillChangeStatusOnChange (bool on)
 
long getTransactionNumber () const
 
bool isUpdated () const
 Checks if the property was updated. More...
 
bool isTheOnlyUpdatedPropertyInContainer () const
 Checks if this is the only updated property in the container. More...
 
virtual void setPropertyKind (Core::PropertyKind p)
 
bool hasValue () const
 Returns 'true' if the property has a value. This is mainly for optional properties. More...
 
virtual bool isOptional () const
 Checks if this is an optional property. More...
 
void setHasValue (bool yesno)
 is called when a property holds a value. For optional properties. More...
 
void setStatus (const Property::Status &in)
 
Property::Status getStatus () const
 
bool isDefaultValue () const
 
void setDefaultValue (bool on)
 
void accept (Core::CoreVisitor *visitor)
 
virtual bool createSQL (Base::AbstractWriter &writer, Base::PersistanceVersion &save_version, bool data) override
 This method is used to save properties or very small amounts of data to an XML document. More...
 
- Public Member Functions inherited from Base::Persistance
virtual void saveDocFile (Base::AbstractWriter &, const Base::String &, const Base::String &)
 This method is used to save large amounts of data to a binary file. More...
 
virtual void restoreDocFile (Base::Reader &, const Base::String &)
 This method is used to restore large amounts of data from a binary file. More...
 
virtual bool mustbeSaved () const
 Return 'true' if this object must always be saved in the file. More...
 
- Public Member Functions inherited from Base::BaseClass
virtual Type getTypeId (void) const
 
template<typename T >
bool isDerivedFrom () const
 
 BaseClass ()
 Construction. More...
 
virtual ~BaseClass ()
 Destruction. More...
 

Additional Inherited Members

- Public Types inherited from Core::Property
enum  Status { New = 1 << 1, Valid = 1 << 2, Updated = 1 << 3 }
 
- Static Public Member Functions inherited from Core::Property
static void registerProperties (Base::Type t, const Core::PropertyValueMap &pvm)
 Registers the properties with default values for type 't'. More...
 
static bool getRegisteredProperties (Base::Type t, Core::PropertyValueMap &pvm)
 Returns the properties with default values of type t;. More...
 
static const char * getXMLPropertyAttributeName ()
 
static const char * getXMLPropertyAttributeValue ()
 
static void setXMLPropertyAttributeName (const char *)
 
static void setXMLPropertyAttributeValue (const char *)
 
- Static Public Member Functions inherited from Base::BaseClass
static Type getClassTypeId (void)
 
static void init (void)
 
static void * create (void)
 
static void setIfcNameAndID (std::string n, int id)
 
- Protected Member Functions inherited from Core::Property
void hasSetValue (void)
 Should be called by all setValue() methods after the value was changed. More...
 
bool aboutToSetValue (const Core::Variant &newValue=Core::Variant())
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0)
 
static void initIfcTypes (std::string s, Base::Type classTypeId, int id)
 

Member Function Documentation

◆ addLink()

template<typename T >
bool Core::PropertyLinkSet< T >::addLink ( link)
inline

◆ addLinks()

template<typename T >
void Core::PropertyLinkSet< T >::addLinks ( const boost::unordered_set< T > &  linkset)
inline

◆ getValue()

template<typename T >
const boost::unordered_set<T>& Core::PropertyLinkSet< T >::getValue ( ) const
inline

◆ removeLink()

template<typename T >
bool Core::PropertyLinkSet< T >::removeLink ( link)
inline

◆ setValue()

template<typename T >
void Core::PropertyLinkSet< T >::setValue ( const boost::unordered_set< T > &  linkset)
inline

The documentation for this class was generated from the following file: