PropertyList Class Reference
Last update: 16.07.2025Container class for handling properties Uses templates to easily find and cast configurations of different types. More...
Public Types | |
| using | const_iterator = typename ListType::const_iterator |
| using | iterator = typename ListType::iterator |
| using | ListType = std::vector< value_type > |
| using | value_type = boost::shared_ptr< PropertyBase > |
Public Member Functions | |
| virtual string | __str__ () |
| Outputfunction used in python context. Use this function to print instances of this class in python. More... | |
| virtual | loadJson (JsonValue root) override |
| Function to load the Serializables data from a JsonValue. More... | |
| PropertyList | operator= (PropertyList other) |
| PropertyList (PropertyList other) | |
| push_back (PropertyBase v) | |
| Appends a new entry to the list. We use unique_ptr so move is used. More... | |
| virtual JsonValue | saveJson () override |
| Function to save the Serializables data as a JsonValue. More... | |
| virtual std::ostream | write (std::ostream os) |
| Polymorphic ostream writer. Is used in the operator<<. More... | |
Detailed Description
Container class for handling properties Uses templates to easily find and cast configurations of different types.
Member Function Documentation
◆ __str__()
|
virtual |
Outputfunction used in python context. Use this function to print instances of this class in python.
- Returns
- string containing the object
◆ loadJson()
|
overridevirtual |
◆ push_back()
| push_back | ( | PropertyBase | v | ) |
Appends a new entry to the list. We use unique_ptr so move is used.
- Parameters
-
v The ptr to be appended.
◆ saveJson()
|
overridevirtual |
◆ write()
|
virtual |
Polymorphic ostream writer. Is used in the operator<<.
- Parameters
-
os The output stream
- Returns
- The output stream modified to contain information on the instance