|
MachineIntelligenceCore:Toolchain
|
Template class for storing properties. More...
#include <Property.hpp>


Public Member Functions | |
| Property (const std::string &name_, const T &initializer_=T(), std::string type_=typeid(T).name()) | |
| T | operator() () const |
| T | operator() (T const &value_) |
| operator T () const | |
| Property< T > & | operator= (T const &value_) |
| bool | operator== (T const &value_) |
| bool | operator!= (T const &value_) |
| virtual void | setValue (const std::string &str) |
| virtual std::string | getValue () |
| std::string | type () const |
Public Member Functions inherited from mic::configuration::PropertyInterface | |
| PropertyInterface (const std::string &name_) | |
| virtual | ~PropertyInterface () |
| const std::string & | name () const |
Protected Attributes | |
| T | property_value |
| Actual property value. More... | |
| std::string | property_type |
| Type of the property. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Property &prop) |
Template class for storing properties.
Definition at line 133 of file Property.hpp.
|
inline |
Default constructor, sets name, type and sets value (calls default type constructor).
| name | |
| initializer | |
| type |
Definition at line 141 of file Property.hpp.
|
inlinevirtual |
Returns the string representing the current value.
Implements mic::configuration::PropertyInterface.
Definition at line 213 of file Property.hpp.
|
inline |
|
inline |
Compares the value of the property with a given value.
| value | Compared value. |
Definition at line 195 of file Property.hpp.
|
inline |
Access the data with function call syntax.
Definition at line 149 of file Property.hpp.
|
inline |
Sets new value (with operator ()) and returns current value.
| New | value |
Definition at line 158 of file Property.hpp.
|
inline |
Sets new property value.
| value_ | New value to be set. |
Definition at line 176 of file Property.hpp.
|
inline |
Compares the value of the property with given value.
| value_ | Compared value |
Definition at line 186 of file Property.hpp.
|
inlinevirtual |
Sets value on a basis of a string (with the use of translator).
| str | String to retrieve value from. |
Implements mic::configuration::PropertyInterface.
Definition at line 204 of file Property.hpp.
|
inline |
|
friend |
Overloaded stream operator.
| os | Stream |
| prop |
Definition at line 232 of file Property.hpp.
|
protected |
Type of the property.
Definition at line 242 of file Property.hpp.
Referenced by mic::configuration::Property< bool >::type().
|
protected |
Actual property value.
Definition at line 239 of file Property.hpp.
Referenced by mic::configuration::Property< bool >::getValue(), mic::configuration::Property< unsigned long >::operator unsigned long(), mic::configuration::Property< bool >::operator!=(), mic::configuration::Property< bool >::operator()(), mic::configuration::Property< bool >::operator=(), mic::configuration::Property< bool >::operator==(), and mic::configuration::Property< bool >::setValue().