Apache Ignite C++
Static Public Member Functions | List of all members
ignite::binary::BinaryEnumDefault< T > Struct Template Reference

Default implementations of BinaryEnum. More...

#include <binary_enum.h>

Inheritance diagram for ignite::binary::BinaryEnumDefault< T >:
ignite::binary::BinaryEnumDefaultAll< T >

Static Public Member Functions

static int32_t GetTypeId ()
 Get type ID for the enum type. More...
 
static int32_t GetOrdinal (T value)
 Get enum type ordinal. More...
 
static T FromOrdinal (int32_t ordinal)
 Get enum value for the given ordinal value. More...
 

Detailed Description

template<typename T>
struct ignite::binary::BinaryEnumDefault< T >

Default implementations of BinaryEnum.

Member Function Documentation

◆ FromOrdinal()

template<typename T >
static T ignite::binary::BinaryEnumDefault< T >::FromOrdinal ( int32_t  ordinal)
inlinestatic

Get enum value for the given ordinal value.

Parameters
ordinalOrdinal value of the enum.

◆ GetOrdinal()

template<typename T >
static int32_t ignite::binary::BinaryEnumDefault< T >::GetOrdinal ( value)
inlinestatic

Get enum type ordinal.

Returns
Ordinal of the enum type.

◆ GetTypeId()

template<typename T >
static int32_t ignite::binary::BinaryEnumDefault< T >::GetTypeId ( )
inlinestatic

Get type ID for the enum type.

Returns
Type ID.

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