Pol  Revision:cb584c9
Pol::Core::DynProps Class Reference

#include <dynproperties.h>

Public Member Functions

 DynProps ()
 
size_t estimateSize () const
 
template<typename V >
bool getProperty (DynPropTypes type, V *value) const
 
bool hasProperty (DynPropTypes type) const
 
template<typename V >
void removeProperty (DynPropTypes type)
 
template<typename V >
void setProperty (DynPropTypes type, const V &value)
 
template<typename V >
void setPropertyPointer (DynPropTypes type, V value)
 

Private Attributes

std::unique_ptr< PropHolderContainer< boost::any > > _any_props
 
std::bitset< PROP_FLAG_SIZE_prop_bits
 
PropHolderContainer< variant_storage_props
 

Detailed Description

Definition at line 272 of file dynproperties.h.

Constructor & Destructor Documentation

Pol::Core::DynProps::DynProps ( )
inline

Definition at line 593 of file dynproperties.h.

Member Function Documentation

size_t Pol::Core::DynProps::estimateSize ( ) const
inline
template<typename V >
bool Pol::Core::DynProps::getProperty ( DynPropTypes  type,
V *  value 
) const
inline

Definition at line 600 of file dynproperties.h.

References _any_props, _props, and hasProperty().

bool Pol::Core::DynProps::hasProperty ( DynPropTypes  type) const
inline

Definition at line 595 of file dynproperties.h.

References _prop_bits.

Referenced by getProperty(), removeProperty(), setProperty(), and setPropertyPointer().

template<typename V >
void Pol::Core::DynProps::removeProperty ( DynPropTypes  type)
inline

Definition at line 637 of file dynproperties.h.

References _any_props, _prop_bits, _props, and hasProperty().

template<typename V >
void Pol::Core::DynProps::setProperty ( DynPropTypes  type,
const V &  value 
)
inline

Definition at line 608 of file dynproperties.h.

References _any_props, _prop_bits, _props, hasProperty(), and passert_always.

template<typename V >
void Pol::Core::DynProps::setPropertyPointer ( DynPropTypes  type,
value 
)
inline

Definition at line 621 of file dynproperties.h.

References _any_props, _prop_bits, hasProperty(), and passert_always.

Member Data Documentation

std::unique_ptr<PropHolderContainer<boost::any> > Pol::Core::DynProps::_any_props
private
std::bitset<PROP_FLAG_SIZE> Pol::Core::DynProps::_prop_bits
private

Definition at line 292 of file dynproperties.h.

Referenced by hasProperty(), removeProperty(), setProperty(), and setPropertyPointer().

PropHolderContainer<variant_storage> Pol::Core::DynProps::_props
private

Definition at line 293 of file dynproperties.h.

Referenced by estimateSize(), getProperty(), removeProperty(), and setProperty().


The documentation for this class was generated from the following file: