Cogs.Foundation
|
Tags an object as being able to represent a color. More...
#include <Attributes.h>
Additional Inherited Members | |
![]() | |
RegularAttribute (bool runtime=true) | |
Construct a regular attribute. True if runtime attribute. | |
![]() | |
TypeId | getType () const |
Get the type of the derived attribute class. | |
TypeId | getGenericType () const |
bool | isRuntime () const |
Gets value of the runtime attribute flag. | |
![]() | |
Attribute (TypeId type) | |
Constructs an attribute instance with the given type. | |
Attribute (TypeId type, TypeId genericType, bool runtime=true) | |
Constructs a generic attribute instance with the given type and generic type parameter. | |
template<typename T > | |
T & | get (size_t index=0) |
Get the stored value of the given type, with an optional index. | |
template<typename T > | |
const T & | get (size_t index=0) const |
See non-const get() implementation. | |
Tags an object as being able to represent a color.