EVE 1.0
CExtraTraits< T, U > Struct Template Reference

#include <flags.h>

Inherits U.

Detailed Description

template<class T, class U>
struct CExtraTraits< T, U >

The class can be used to specify non-standard traits set for the specific property.

Usage:

template<class U>
struct CExtraTraits<CVar_RAM_SomeVar>
: public U
{
// Redefine flags:
static const uint16_t m_flags = U::m_flags | SOME_FLAG;
// Redefine location:
static constexpr uint8_t m_segment = 4;
static constexpr size_t m_offset = 16;
static constexpr size_t m_size = U::m_size + 2;
static constexpr size_t m_count = U::m_count * 99;
// Please note that BINARY flag can not be changed by traits.
};

Definition at line 215 of file flags.h.