Public Member Functions | |
PropertyList & | operator, (const Property &p) |
PropertyList & | operator, (Property &p) |
bool | exists (const std::string &name) const |
Property & | operator[] (const std::string &name) |
const Property & | operator[] (const std::string &name) const |
PropertyList is a derived class from std::list holding objects of type Property. We expand the functionality by adding some nicer operators and functions, so the list can be constructed in concatenated way.
Definition at line 177 of file Property.h.
PropertyList & nrEngine::PropertyList::operator, | ( | const Property & | p | ) |
Add a new element into the property list
Definition at line 61 of file Property.cpp.
PropertyList & nrEngine::PropertyList::operator, | ( | Property & | p | ) |
Pop an element from the front and return it back
Definition at line 68 of file Property.cpp.
bool nrEngine::PropertyList::exists | ( | const std::string & | name | ) | const |
Check if a certain property exists
Definition at line 76 of file Property.cpp.
Property & nrEngine::PropertyList::operator[] | ( | const std::string & | name | ) |
Get a property value by the given name. The behaviour is the same as in std::map. If no such property exists, so new one with such a name will be created
Definition at line 100 of file Property.cpp.
References nrEngine::Log::LL_DEBUG, and nrEngine::Log::LOG_ENGINE.