Cogs.Foundation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Cogs::Reflection::Enumerator Struct Reference

Single integral constant enumerator. More...

#include <Type.h>

Public Member Functions

template<typename T >
 Enumerator (const Name &name, T value)
 Construct a new enumerator with the given name and value.
 
const NamegetName () const
 Get the name of the enumerator.
 
int getValue () const
 Get the value of the enumerator.
 

Detailed Description

Single integral constant enumerator.

Constructor & Destructor Documentation

◆ Enumerator()

template<typename T >
Cogs::Reflection::Enumerator::Enumerator ( const Name name,
T  value 
)
inline

Construct a new enumerator with the given name and value.

References Cogs::T.

Member Function Documentation

◆ getName()

const Name & Cogs::Reflection::Enumerator::getName ( ) const
inline

Get the name of the enumerator.

◆ getValue()

int Cogs::Reflection::Enumerator::getValue ( ) const
inline

Get the value of the enumerator.


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