Inheritance Graph
graph BT
GenericAttribute
NodeInfo --> GenericAttribute
BoolAttribute --> GenericAttribute
GenericAttributeList --> GenericAttribute
GenericAttributeMap --> GenericAttribute
GenericNumberAttribute --> GenericAttribute
GenericStringAttribute --> GenericAttribute
WrapperAttribute --> GenericAttribute
WrapperAttribute --> GenericAttribute
click GenericAttribute "classUtil_1_1GenericAttribute"
click NodeInfo "classMinSG_1_1OccRenderer_1_1NodeInfo"
click BoolAttribute "classUtil_1_1BoolAttribute"
click GenericAttributeList "classUtil_1_1GenericAttributeList"
click GenericAttributeMap "classUtil_1_1GenericAttributeMap"
click GenericNumberAttribute "classUtil_1_1GenericNumberAttribute"
click GenericStringAttribute "classUtil_1_1GenericStringAttribute"
click WrapperAttribute "classUtil_1_1WrapperAttribute"
click WrapperAttribute "classUtil_1_1WrapperAttribute"
Description
Abstract base class of all generic attributes. A generic attribute is used to store arbitrary types of data into a location.
Public Types
Public Static Functions
Public Functions
Protected Static Functions
Protected Functions
Documentation
typedef
Util::GenericAttribute::Map
Defined in Util/GenericAttribute.h:45
typedef
Util::GenericAttribute::List
Defined in Util/GenericAttribute.h:46
typedef
Util::GenericAttribute::attr_t
Defined in Util/GenericAttribute.h:47
function
Util::GenericAttribute::create
|
|
|
template< typename value_t > |
|
|
std::enable_if< std::is_same< typename std::decay< value_t >::type, bool >::value, BoolAttribute * >::type create( |
value_t && |
value ) |
Factory function to create an appropriate GenericAttribute for the type of the given value.
Parameters
- value_t
- Template parameter that decides which type of GenericAttribute is constructed
- value
- Value that is stored in the newly created GenericAttribute
Defined in Util/GenericAttribute.h:60
function
Util::GenericAttribute::create
|
|
|
|
|
template< typename value_t > |
|
|
|
|
std::enable_if<(std::is_integral< typename std::decay< value_t >::type >::value |
|
std::is_floating_point< typename std::decay< value_t >::type >::value)&&!std::is_same< typename std::decay< value_t >::type, bool >::value, _NumberAttribute < typename std::decay< value_t >::type > * >::type create( |
value_t && |
value ) |
Defined in Util/GenericAttribute.h:67
function
Util::GenericAttribute::create
|
|
|
template< typename value_t > |
|
|
std::enable_if< std::is_same< typename std::decay< value_t >::type, std::string >::value, _StringAttribute < std::string > * >::type create( |
value_t && |
value ) |
Defined in Util/GenericAttribute.h:72
function
Util::GenericAttribute::createString
Encapsulate a standard string into a generic attribute.
Parameters
- s
- Standard string
Returns
String encapsulated into a generic string attribute
Defined in Util/GenericAttribute.h:82
function
Util::GenericAttribute::createString
Defined in Util/GenericAttribute.h:83
function
Util::GenericAttribute::createString
Convert a generic attribute to a string and encapsulate that string into a generic attribute.
Parameters
- a
- Arbitrary generic attribute
Returns
String representation of the generic attribute
Defined in Util/GenericAttribute.h:92
function
Util::GenericAttribute::createNumber
Encapsulate a standard number into a generic attribute.
Parameters
- f
- Standard number
Returns
Number encapsulated into a generic number attribute
Defined in Util/GenericAttribute.h:100
function
Util::GenericAttribute::createBool
Encapsulate a standard bool into a generic attribute.
Parameters
- f
- Standard bool
Returns
Number encapsulated into a generic bool attribute
Defined in Util/GenericAttribute.h:109
function
Util::GenericAttribute::createCountedReference
Encapsulate a Util::Reference to an object into a generic attribute.
Parameters
- f
- Standard pointer
Returns
Pointer encapsulated into a generic counted object attribute
Defined in Util/GenericAttribute.h:117
function
Util::GenericAttribute::createUndefined
Encapsulate an arbitrary type into a generic attribute.
Parameters
- value
- Standard number
Returns
Arbitrary type encapsulated into a generic undefined attribute
Defined in Util/GenericAttribute.h:126
function
Util::GenericAttribute::~GenericAttribute
Defined in Util/GenericAttribute.h:131
function
Util::GenericAttribute::clone
Create a copy of this object.
Returns
Exact copy.
Defined in Util/GenericAttribute.h:139
function
Util::GenericAttribute::isA
|
|
template< class specificAttr_t > |
|
bool isA( |
) const |
returns true iff the object is of the given type.
Defined in Util/GenericAttribute.h:143
function
Util::GenericAttribute::toString
public |
const |
inline |
virtual |
Convert the object to a human-readable string.
Returns
String representation.
Defined in Util/GenericAttribute.h:149
function
Util::GenericAttribute::toDouble
public |
const |
inline |
virtual |
Convert the object to a floating-point value with double precision.
Returns
Floating-point representation with double precision.
Defined in Util/GenericAttribute.h:155
function
Util::GenericAttribute::toFloat
public |
const |
inline |
virtual |
Convert the object to a floating-point value.
Returns
Floating-point representation.
Defined in Util/GenericAttribute.h:161
function
Util::GenericAttribute::toInt
public |
const |
inline |
virtual |
Convert the object to an integer value.
Returns
Integer representation.
Defined in Util/GenericAttribute.h:167
function
Util::GenericAttribute::toUnsignedInt
public |
const |
inline |
virtual |
Convert the object to an unsigned integer value.
Returns
Unsigned integer representation.
Defined in Util/GenericAttribute.h:173
function
Util::GenericAttribute::toBool
public |
const |
inline |
virtual |
Convert the object to an boolean value.
Returns
Boolean representation.
Defined in Util/GenericAttribute.h:179
function
Util::GenericAttribute::toJSON
public |
const |
inline |
virtual |
Convert the object to JavaScript Object Notation (JSON).
Returns
JSON representation;
Defined in Util/GenericAttribute.h:185
function
Util::GenericAttribute::toType
|
|
template< class specificAttr_t > |
|
specificAttr_t * toType( |
) |
Defined in Util/GenericAttribute.h:188
function
Util::GenericAttribute::toType
|
|
template< class specificAttr_t > |
|
const specificAttr_t * toType( |
) const |
Defined in Util/GenericAttribute.h:192
function
Util::GenericAttribute::operator==
public |
const |
inline |
virtual |
Per default, the comparison returns false for unspecified types.
Defined in Util/GenericAttribute.h:197
function
Util::GenericAttribute::operator!=
Defined in Util/GenericAttribute.h:198
function
Util::GenericAttribute::_defaultIsEqual
Defined in Util/GenericAttribute.h:202
function
Util::GenericAttribute::GenericAttribute
Defined in Util/GenericAttribute.h:206
function
Util::GenericAttribute::GenericAttribute
Defined in Util/GenericAttribute.h:207
function
Util::GenericAttribute::GenericAttribute
Defined in Util/GenericAttribute.h:208
function
Util::GenericAttribute::operator=
Defined in Util/GenericAttribute.h:209
function
Util::GenericAttribute::operator=
Defined in Util/GenericAttribute.h:210