Cogs.Core
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.

Definition at line 57 of file Type.h.

Constructor & Destructor Documentation

◆ Enumerator()

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

Construct a new enumerator with the given name and value.

Definition at line 61 of file Type.h.

Member Function Documentation

◆ getName()

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

Get the name of the enumerator.

Definition at line 68 of file Type.h.

◆ getValue()

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

Get the value of the enumerator.

Definition at line 71 of file Type.h.


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