27 #include "../common/STLUtils.h" 79 std::size_t
size = ps.size();
81 for(std::size_t i = 0; i <
size; ++i)
87 ps[i]->setParent(
this);
93 std::size_t
size = ps.size();
95 for(std::size_t i = 0; i <
size; ++i)
109 for(std::size_t i = 0; i <
size; ++i)
124 for(std::size_t i = 0; i <
size; ++i)
135 for(std::size_t i = 0; i <
size; ++i)
139 return std::string::npos;
146 for(std::size_t i = 0; i <
size; ++i)
150 return std::string::npos;
157 for(std::size_t i = 0; i <
size; ++i)
166 std::size_t
size = ps.size();
170 for(std::size_t i = 0; i <
size; ++i)
190 for(
size_t i = 0; i <
size; ++i)
Property * getProperty(std::size_t i) const
It returns the i-th property.
A base class for a compound property (non-atomic properties).
virtual void clear()
It clears the CompositeProperty definition.
bool has(Property *p) const
It checks if the Property "p" is associated to this property or any other parent. ...
A base class for a compound properties (non-atomic properties).
virtual Property * clone() const
It returns a clone of the object.
CompositeProperty(const std::string &cname, const std::string &name, unsigned int id=0, Property *parent=0)
It creates a new CompositeProperty.
General enumerations for the data type module.
Property & operator=(const Property &rhs)
Assignment operator.
std::vector< Property * > m_properties
The list of property types that make the CompositeProperty.
It models a property definition.
virtual ~CompositeProperty()
Virtual destructor.
virtual te::dt::AbstractData * clone() const
It clones the linestring.
CompositeProperty & operator=(const CompositeProperty &rhs)
Assignment operator.
Property * getPropertyById(unsigned int id) const
It searches for a property with the given ID.
Property * getParent() const
It returns the parent of this property, or NULL, if it doesn't have one.
std::size_t size() const
It returns the number of properties of the CompositeProperty.
void copy(const std::vector< Property * > &ps)
It copies the properties from the vector.
virtual void remove(Property *p)
It removes the property from the composite.
std::size_t getPropertyPosition(const std::string &name) const
It returns the property position based on its name.
void add(Property *p)
It adds a new property to the CompositeProperty.
std::string m_cname
The composite type name.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
unsigned int getId() const
It returns the property identifier.
const std::string & getName() const
It returns the property name.
void setParent(Property *p)
It associate this property to the informed parent.