public |
Inheritance Graph
graph BT
AttributeProvider
Component --> AttributeProvider
Behavior --> AttributeProvider
BehaviorStatus --> AttributeProvider
Region --> AttributeProvider
RegionEvaluator --> AttributeProvider
Node --> AttributeProvider
ImportContext --> AttributeProvider
SceneManager --> AttributeProvider
State --> AttributeProvider
click AttributeProvider "classUtil_1_1AttributeProvider"
click Component "classGUI_1_1Component"
click Behavior "classMinSG_1_1Behavior"
click BehaviorStatus "classMinSG_1_1BehaviorStatus"
click Region "classMinSG_1_1MAR_1_1Region"
click RegionEvaluator "classMinSG_1_1MAR_1_1RegionEvaluator"
click Node "classMinSG_1_1Node"
click ImportContext "classMinSG_1_1SceneManagement_1_1ImportContext"
click SceneManager "classMinSG_1_1SceneManagement_1_1SceneManager"
click State "classMinSG_1_1State"
Description
Mixin class to provide a GenericAttributeMap including access functions for classes inheriting it. The map itself is created when the first attribute is added; so that the minimal memory overhead is of the size of a single pointer.
Public Functions
AttributeProvider() | |
AttributeProvider(const AttributeProvider & other) | |
AttributeProvider( AttributeProvider && void) | |
AttributeProvider & | operator=(const AttributeProvider & other) |
AttributeProvider & | operator=( AttributeProvider && void) |
~AttributeProvider() | |
void | copyAttributesFrom(const AttributeProvider & other) |
GenericAttribute * | getAttribute(const StringIdentifier & key) const |
template< class AttrType > | |
AttrType * | getAttribute(const StringIdentifier & key) const |
GenericAttributeMap * | getAttributes() const |
bool | hasAttributes() const |
bool | isAttributeSet(const StringIdentifier & key) const |
void | removeAttributes() |
void | setAttributes( GenericAttributeMap * newAttributes) |
void | setAttribute(const StringIdentifier & key, GenericAttribute * value) |
bool | unsetAttribute(const StringIdentifier & key) |
Documentation
function
Util::AttributeProvider::AttributeProvider
public | inline |
AttributeProvider( | ) |
Defined in Util/AttributeProvider.h:35
function
Util::AttributeProvider::AttributeProvider
public | inline |
AttributeProvider( | const AttributeProvider & | other ) |
Defined in Util/AttributeProvider.h:37
function
Util::AttributeProvider::AttributeProvider
public |
AttributeProvider( | AttributeProvider && | void ) |
Defined in Util/AttributeProvider.h:40
function
Util::AttributeProvider::operator=
public | inline |
AttributeProvider & operator=( | const AttributeProvider & | other ) |
Defined in Util/AttributeProvider.h:41
function
Util::AttributeProvider::operator=
public |
AttributeProvider & operator=( | AttributeProvider && | void ) |
Defined in Util/AttributeProvider.h:46
function
Util::AttributeProvider::~AttributeProvider
public |
~AttributeProvider( | ) |
Defined in Util/AttributeProvider.h:47
function
Util::AttributeProvider::copyAttributesFrom
public | inline |
void copyAttributesFrom( | const AttributeProvider & | other ) |
Defined in Util/AttributeProvider.h:49
function
Util::AttributeProvider::getAttribute
public | const | inline |
GenericAttribute * getAttribute( | const StringIdentifier & | key ) const |
Defined in Util/AttributeProvider.h:54
function
Util::AttributeProvider::getAttribute
public | const | inline |
template< class AttrType > | ||
AttrType * getAttribute( | const StringIdentifier & | key ) const |
Defined in Util/AttributeProvider.h:58
function
Util::AttributeProvider::getAttributes
public | const | inline |
GenericAttributeMap * getAttributes( | ) const |
Defined in Util/AttributeProvider.h:61
function
Util::AttributeProvider::hasAttributes
public | const | inline |
bool hasAttributes( | ) const |
Defined in Util/AttributeProvider.h:64
function
Util::AttributeProvider::isAttributeSet
public | const | inline |
bool isAttributeSet( | const StringIdentifier & | key ) const |
Defined in Util/AttributeProvider.h:67
function
Util::AttributeProvider::removeAttributes
public | inline |
void removeAttributes( | ) |
Defined in Util/AttributeProvider.h:70
function
Util::AttributeProvider::setAttributes
public | inline |
void setAttributes( | GenericAttributeMap * | newAttributes ) |
Defined in Util/AttributeProvider.h:73
function
Util::AttributeProvider::setAttribute
public | inline |
void setAttribute( | const StringIdentifier & | key, |
GenericAttribute * | value | |
) |
Defined in Util/AttributeProvider.h:76
function
Util::AttributeProvider::unsetAttribute
public | inline |
bool unsetAttribute( | const StringIdentifier & | key ) |
Defined in Util/AttributeProvider.h:82