nrEngine::PropertyList Class Reference

Property list to hold property objects. More...


Public Member Functions

PropertyListoperator, (const Property &p)
PropertyListoperator, (Property &p)
bool exists (const std::string &name) const
Propertyoperator[] (const std::string &name)
const Propertyoperator[] (const std::string &name) const


Detailed Description

Property list to hold property objects.

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 23:19:43 2007 for nrEngine by  doxygen 1.5.1