A compiletime-typesafe key/value pair.
- Copyright
- (C) 2006 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
|
| Attribute () |
| default constructor
|
|
| Attribute (const Attribute &rhs) |
| copy constructor
|
|
| Attribute (const AttrId &id) |
| construct from typeless attribute id
|
|
| Attribute (Util::KeyValuePair< AttrId, Util::Variant > const &kvp) |
| construct from kvp
|
|
| Attribute (const BoolAttrId &id, bool val) |
| construct from bool
|
|
| Attribute (const FloatAttrId &id, float val) |
| construct from float
|
|
| Attribute (const IntAttrId &id, int val) |
| construct from int
|
|
| Attribute (const UIntAttrId &id, uint val) |
| construct from uint attribute id
|
|
| Attribute (const Mat4AttrId &id, const Math::mat4 &val) |
| construct from matrix44
|
|
| Attribute (const StringAttrId &id, const Util::String &val) |
| construct from string
|
|
| Attribute (const Vec4AttrId &id, const Math::vec4 &val) |
| construct from float4
|
|
| Attribute (const GuidAttrId &id, const Util::Guid &val) |
| construct from guid
|
|
| Attribute (const BlobAttrId &id, const Util::Blob &val) |
| construct from blob
|
|
void | SetAttrId (const AttrId &id) |
| set attribute id
|
|
const AttrId & | GetAttrId () const |
| get attribute id
|
|
const Util::String & | GetName () const |
| get name of attribute
|
|
const Util::FourCC & | GetFourCC () const |
| get fourcc of attribute
|
|
ValueType | GetValueType () const |
| get value type of attribute
|
|
AccessMode | GetAccessMode () const |
| get access mode of attribute
|
|
void | Clear () |
| clear the attribute's value
|
|
void | operator= (const Attribute &rhs) |
| assignment operator
|
|
void | operator= (bool rhs) |
| bool assignment operator
|
|
void | operator= (float rhs) |
| float assignment operator
|
|
void | operator= (int rhs) |
| int assignment operator
|
|
void | operator= (const Math::mat4 &rhs) |
| matrix44 assignment operator
|
|
void | operator= (const Util::String &rhs) |
| string assignment operator
|
|
void | operator= (const Math::vec4 &rhs) |
| float4 assignment operator
|
|
void | operator= (const Util::Guid &rhs) |
| guid assignment operator
|
|
void | operator= (const Util::Blob &rhs) |
| blob assignment operator
|
|
bool | operator== (const Attribute &rhs) const |
| equality operator
|
|
bool | operator== (const Util::String &rhs) const |
| string equality operator
|
|
bool | operator== (int rhs) const |
| int equality operator
|
|
bool | operator== (float rhs) const |
| float equality operator
|
|
bool | operator== (bool rhs) const |
| bool equality operator
|
|
bool | operator== (const Math::vec4 &rhs) const |
| float4 equality operator
|
|
bool | operator== (const Util::Guid &rhs) const |
| guid equality operator
|
|
bool | operator!= (const Attribute &rhs) const |
| equality operator
|
|
bool | operator!= (const Util::String &rhs) const |
| string equality operator
|
|
bool | operator!= (int rhs) const |
| int equality operator
|
|
bool | operator!= (float rhs) const |
| float equality operator
|
|
bool | operator!= (bool rhs) const |
| bool equality operator
|
|
bool | operator!= (const Math::vec4 &rhs) const |
| float4 equality operator
|
|
bool | operator!= (const Util::Guid &rhs) const |
| guid equality operator
|
|
void | SetBool (bool val) |
| set bool content
|
|
bool | GetBool () const |
| get bool content
|
|
void | SetInt (int val) |
| set int content
|
|
int | GetInt () const |
| get int content
|
|
void | SetUInt (uint val) |
| set int content
|
|
uint | GetUInt () const |
| get int content
|
|
void | SetFloat (float val) |
| set float content
|
|
float | GetFloat () const |
| get float content
|
|
void | SetString (const Util::String &val) |
| set string content
|
|
const Util::String & | GetString () const |
| get string content
|
|
void | SetMat4 (const Math::mat4 &val) |
| set matrix44 value
|
|
const Math::mat4 & | GetMat4 () const |
| get matrix44 value
|
|
void | SetVec4 (const Math::vec4 &val) |
| set float4 value
|
|
Math::vec4 | GetVec4 () const |
| get float4 value
|
|
void | SetGuid (const Util::Guid &val) |
| set guid value
|
|
const Util::Guid & | GetGuid () const |
| get guid value
|
|
void | SetBlob (const Util::Blob &val) |
| set blob value
|
|
const Util::Blob & | GetBlob () const |
| get blob value
|
|
void | SetValue (const Util::Variant &val) |
| set generic value
|
|
const Util::Variant & | GetValue () const |
| get generic value
|
|
void | SetValueFromString (const Util::String &str) |
| set value from string (convert as necessary)
|
|
Util::String | ValueAsString () const |
| convert the content to a string
|
|
| KeyValuePair () |
| default constructor
|
|
| KeyValuePair (const AttrId &k, const Util::Variant &v) |
| constructor with key and value
|
|
| KeyValuePair (const AttrId &k) |
| constructor with key and undefined value
|
|
| KeyValuePair (const KeyValuePair< AttrId, Util::Variant > &rhs) |
| copy constructor
|
|
| KeyValuePair (KeyValuePair< AttrId, Util::Variant > &&rhs) noexcept |
| move constructor
|
|
void | operator= (const KeyValuePair< AttrId, Util::Variant > &rhs) |
| assignment operator
|
|
void | operator= (KeyValuePair< AttrId, Util::Variant > &&rhs) noexcept |
| move assignment operator
|
|
bool | operator== (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| equality operator
|
|
bool | operator== (const AttrId &rhs) const |
| equality operator
|
|
bool | operator!= (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| inequality operator
|
|
bool | operator!= (const AttrId &rhs) const |
| inequality operator
|
|
bool | operator> (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| greater operator
|
|
bool | operator> (const AttrId &rhs) const |
| greater operator
|
|
bool | operator>= (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| greater-or-equal operator
|
|
bool | operator>= (const AttrId &rhs) const |
| greater-or-equal operator
|
|
bool | operator< (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| lesser operator
|
|
bool | operator< (const AttrId &rhs) const |
| lesser operator
|
|
bool | operator<= (const KeyValuePair< AttrId, Util::Variant > &rhs) const |
| lesser-or-equal operator
|
|
bool | operator<= (const AttrId &rhs) const |
| lesser-or-equal operator
|
|
Util::Variant & | Value () |
| read/write access to value
|
|
const Util::Variant & | Value () const |
| read access to key
|
|
const AttrId & | Key () const |
| read access to key
|
|