nn::util::SizedEnum

nn::util::SizedEnum Class

Syntax

template <typename StorageT, typename EnumT>
class SizedEnum

Template Arguments

Name Description
StorageT Type to use for storing enum value.
EnumT The target enumerated type.

Description

Class template for handling fixed-size enumerated types.

Using this class you can use enum values of explicit size.

The EnumT type enumerated type is stored to a StorageT type variable for handling.

Member Functions

SizedEnum Constructor.
operator EnumT The type conversion operator for the enumerated type.
operator= Assignment operator for assigning an enumerated type.
Set Sets a value.
Get Gets the value.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL