Easy3D 2.5.3
|
Implementation of generic property container. More...
Public Member Functions | |
PropertyContainer (const PropertyContainer &_rhs) | |
PropertyContainer & | operator= (const PropertyContainer &_rhs) |
void | transfer (const PropertyContainer &_rhs) |
void | copy_properties (const PropertyContainer &_rhs) |
bool | transfer (const PropertyContainer &_rhs, std::size_t from, std::size_t to) |
size_t | size () const |
size_t | n_properties () const |
std::vector< std::string > | properties () const |
template<class T > | |
Property< T > | add (const std::string &name, const T t=T()) |
template<class T > | |
Property< T > | get (const std::string &name) const |
template<class T > | |
Property< T > | get_or_add (const std::string &name, const T t=T()) |
const std::type_info & | get_type (const std::string &name) const |
template<class T > | |
bool | remove (Property< T > &h) |
bool | remove (const std::string &name) |
bool | rename (const std::string &old_name, const std::string &new_name) |
void | clear () |
void | reserve (size_t n) const |
void | resize (size_t n) |
void | resize_property_array (size_t n) |
void | shrink_to_fit () const |
void | push_back () |
void | reset (size_t idx) |
void | swap (size_t i0, size_t i1) const |
void | swap (PropertyContainer &other) |
void | copy (size_t from, size_t to) const |
const std::vector< BasePropertyArray * > & | arrays () const |
std::vector< BasePropertyArray * > & | arrays () |
Implementation of generic property container.