Cogs.Core
Public Member Functions | List of all members
Cogs::Reflection::GenericAttribute< T, U > Struct Template Reference

Base attribute type for generic attributes. More...

#include <Attributes.h>

Inheritance diagram for Cogs::Reflection::GenericAttribute< T, U >:
Cogs::Reflection::Attribute

Public Member Functions

 GenericAttribute (bool runtime=true)
 Construct a generic attribute. True if runtime attribute.
 
- Public Member Functions inherited from Cogs::Reflection::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.
 

Additional Inherited Members

- Protected Member Functions inherited from Cogs::Reflection::Attribute
 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.
 

Detailed Description

template<template< typename > class T, typename U>
struct Cogs::Reflection::GenericAttribute< T, U >

Base attribute type for generic attributes.

See also
RegularAttribute.
Template Parameters
TType of the derived attribute class.
UType of the generic parameter of the derived attribute class.

Definition at line 118 of file Attributes.h.


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