| 
    MeVisLab Toolbox Reference
    
   | 
 
#include <mlPropertyManager.h>
  
Public Types | |
| typedef PropertyManager | type | 
| typedef boost::intrusive_ptr< type > | Pointer | 
| typedef boost::intrusive_ptr< const type > | ConstPointer | 
| typedef std::map< std::string, PropertyValue > | PropertyMap | 
Public Member Functions | |
| PropertyManager () | |
| Empty default constructor.   | |
| PropertyManager (const PropertyManager &other) | |
| Copy Constructor.   | |
| ~PropertyManager () override | |
| PropertyManager & | operator= (const PropertyManager &item) | 
| Assignment operator. Resets all registered GraphProperties.   | |
| bool | operator== (const PropertyManager &other) const | 
| Comparison operator, checks names and defaultValues without respect to their order.   | |
| void | clearProperties () | 
| Clear the list of property names and all registered GraphProperties.   | |
| size_t | createProperty (const std::string &name, const PropertyValue &defaultValue) | 
Create property with name name and return its' index.   | |
| const PropertyValue & | getPropertyDefault (size_t propertyIndex) const | 
| Get the default value that is set for the property.   | |
| const PropertyValue & | getPropertyDefault (const std::string &propertyName) const | 
| PropertyMap | getPropertyDefaultMap () const | 
| Get a map of property-names and default-values.   | |
| size_t | getPropertyIndex (const std::string &propertyName) const | 
Return the index of property with name propertyName. Throws std::logic_error if the property does not exist.   | |
| std::optional< size_t > | getOptionalPropertyIndex (const std::string &propertyName) const | 
Return the index of property with name propertyName, if it exists.   | |
| const std::string & | getPropertyName (size_t index) const | 
Return the name of property with index index.   | |
| const std::vector< std::string > & | getPropertyNames () const | 
| Return the list of available property names.   | |
| template<typename T > | |
| std::vector< std::string > | getPropertyNames () const | 
| Return a list of names of properties of type T.   | |
| bool | hasProperty (const std::string &name) const | 
Returns whether a property with name name exists.   | |
| size_t | numberOfProperties () const | 
| Return the number of properties currently available.   | |
| void | removeProperty (const std::string &name) | 
Remove property with name name. Throws ML_BAD_PARAMETER if the property does not exists.   | |
| ML_CLASS_HEADER (PropertyManager) | |
Persistence  | |
Attaches the object state as children of the given parent node.  | |
| void | addStateToTree (TreeNode *parent) const override | 
| ML_SET_ADDSTATE_VERSION (1) | |
| Set current addStateToTree() version number:   | |
| void | readStateFromTree (TreeNode *parent) override | 
| Reads the object state from the children of the given parent node.   | |
Friends | |
| class | PropertyContainer | 
| class | SmartPropertyIndex | 
Additional Inherited Members | |
  Protected Member Functions inherited from IntrusivePtrBase< PropertyManager > | |
| IntrusivePtrBase () | |
Definition at line 33 of file mlPropertyManager.h.
| typedef boost::intrusive_ptr<const type> PropertyManager::ConstPointer | 
Definition at line 37 of file mlPropertyManager.h.
| typedef boost::intrusive_ptr<type> PropertyManager::Pointer | 
Definition at line 36 of file mlPropertyManager.h.
| typedef std::map<std::string, PropertyValue> PropertyManager::PropertyMap | 
Definition at line 38 of file mlPropertyManager.h.
Definition at line 35 of file mlPropertyManager.h.
| PropertyManager::PropertyManager | ( | ) | 
Empty default constructor.
| PropertyManager::PropertyManager | ( | const PropertyManager & | other | ) | 
Copy Constructor.
      
  | 
  override | 
      
  | 
  override | 
| void PropertyManager::clearProperties | ( | ) | 
Clear the list of property names and all registered GraphProperties.
| size_t PropertyManager::createProperty | ( | const std::string & | name, | 
| const PropertyValue & | defaultValue ) | 
Create property with name name and return its' index. 
If a property with this name already exists, just return the corresponding index.
| std::optional< size_t > PropertyManager::getOptionalPropertyIndex | ( | const std::string & | propertyName | ) | const | 
Return the index of property with name propertyName, if it exists. 
      
  | 
  inline | 
Definition at line 61 of file mlPropertyManager.h.
References mlrange_cast().
      
  | 
  inline | 
Get the default value that is set for the property.
Definition at line 60 of file mlPropertyManager.h.
References mlrange_cast().
| PropertyMap PropertyManager::getPropertyDefaultMap | ( | ) | const | 
Get a map of property-names and default-values.
Return the index of property with name propertyName. Throws std::logic_error if the property does not exist. 
Return the name of property with index index. 
Definition at line 73 of file mlPropertyManager.h.
      
  | 
  inline | 
Return the list of available property names.
Definition at line 76 of file mlPropertyManager.h.
Return a list of names of properties of type T.
Definition at line 138 of file mlPropertyManager.h.
References mlrange_cast(), T, and PropertyValue::which().
Returns whether a property with name name exists. 
Definition at line 83 of file mlPropertyManager.h.
| PropertyManager::ML_CLASS_HEADER | ( | PropertyManager | ) | 
| PropertyManager::ML_SET_ADDSTATE_VERSION | ( | 1 | ) | 
Set current addStateToTree() version number:
      
  | 
  inline | 
Return the number of properties currently available.
Definition at line 86 of file mlPropertyManager.h.
| PropertyManager & PropertyManager::operator= | ( | const PropertyManager & | item | ) | 
Assignment operator. Resets all registered GraphProperties.
| bool PropertyManager::operator== | ( | const PropertyManager & | other | ) | const | 
Comparison operator, checks names and defaultValues without respect to their order.
      
  | 
  override | 
Reads the object state from the children of the given parent node.
Remove property with name name. Throws ML_BAD_PARAMETER if the property does not exists. 
      
  | 
  friend | 
Definition at line 92 of file mlPropertyManager.h.
      
  | 
  friend | 
Definition at line 93 of file mlPropertyManager.h.