46Properties::BaseProperty::BaseProperty()
50Properties::BaseProperty::~BaseProperty()
54Properties::Properties()
59Properties::~Properties()
111 (*it)->insert_at(_index);
128 (*it)->remove_at(_index);
The header for the properties, one file for all objects.
void remove_property_at(int _index)
Removes a property for an object that is being deleted from the derived class.
unsigned long size_
The number of fields in each property, used when new properties have to be created.
std::map< std::string, int > property_names_
The property names, key holding the name, value the properties index in Properties::properties_.
void insert_property_at(int _index)
Inserts a property for a new object at the given index.
std::vector< BaseProperty * > properties_
A vector holding the properties.
void clear_properties()
Deletes all properties, including their values.
void clean_properties()
While preserving the properties themself, all values in the property are deleted.
bool has_property(std::string _name)
Returns true if a property with the given name exists.