Nebula
Loading...
Searching...
No Matches
MemDb::Attribute Class Reference

#include <attribute.h>

Inherited by Game::ComponentInterface.

Public Member Functions

template<typename T >
 Attribute (Util::StringAtom name, T const &defaultValue, uint32_t flags)
 construct from template type, with default value.
 
 Attribute (Util::StringAtom name, SizeT typeSizeBytes, void const *defaultValue, uint32_t flags)
 construct from type size in bytes, with default value from void*.
 
 Attribute ()=default
 default constructor
 
 Attribute (Attribute &&desc) noexcept
 move constructor
 
 ~Attribute ()
 desctructor
 
void operator= (Attribute &&rhs) noexcept
 move assignment operator
 
void operator= (Attribute &rhs)
 assignment operator
 

Public Attributes

Util::StringAtom name
 name of attribute
 
SizeT typeSize = 0
 size of type in bytes
 
void * defVal = nullptr
 default value
 
uint32_t externalFlags
 externally managed flags
 

Constructor & Destructor Documentation

◆ Attribute() [1/4]

template<typename T >
MemDb::Attribute::Attribute ( Util::StringAtom name,
T const & defaultValue,
uint32_t flags )
inlineexplicit

construct from template type, with default value.

◆ Attribute() [2/4]

MemDb::Attribute::Attribute ( Util::StringAtom name,
SizeT typeSizeBytes,
void const * defaultValue,
uint32_t flags )
inlineexplicit

construct from type size in bytes, with default value from void*.

◆ Attribute() [3/4]

MemDb::Attribute::Attribute ( )
default

default constructor

◆ Attribute() [4/4]

MemDb::Attribute::Attribute ( Attribute && desc)
inlinenoexcept

move constructor

◆ ~Attribute()

MemDb::Attribute::~Attribute ( )
inline

desctructor

Member Function Documentation

◆ operator=() [1/2]

void MemDb::Attribute::operator= ( Attribute && rhs)
inlinenoexcept

move assignment operator

◆ operator=() [2/2]

void MemDb::Attribute::operator= ( Attribute & rhs)
inline

assignment operator

Member Data Documentation

◆ defVal

void* MemDb::Attribute::defVal = nullptr

default value

◆ externalFlags

uint32_t MemDb::Attribute::externalFlags

externally managed flags

◆ name

Util::StringAtom MemDb::Attribute::name

name of attribute

◆ typeSize

SizeT MemDb::Attribute::typeSize = 0

size of type in bytes


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