TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE > Class Template Reference

#include <Object.h>

Public Member Functions

 FlaggedValuesArray32 ()
 
T_FLAGS GetFlags () const
 
bool HasFlag (FLAG_TYPE flag) const
 
void AddFlag (FLAG_TYPE flag)
 
void DelFlag (FLAG_TYPE flag)
 
T_VALUES GetValue (FLAG_TYPE flag) const
 
void SetValue (FLAG_TYPE flag, T_VALUES value)
 
void AddValue (FLAG_TYPE flag, T_VALUES value)
 

Private Attributes

T_VALUES m_values [ARRAY_SIZE]
 
T_FLAGS m_flags
 

Constructor & Destructor Documentation

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::FlaggedValuesArray32 ( )
inline
372  {
373  memset(&m_values, 0x00, sizeof(T_VALUES) * ARRAY_SIZE);
374  m_flags = 0;
375  }
T_VALUES m_values[ARRAY_SIZE]
Definition: Object.h:387
T_FLAGS m_flags
Definition: Object.h:388

Member Function Documentation

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
void FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddFlag ( FLAG_TYPE  flag)
inline
379 { m_flags |= (1 << flag); }
T_FLAGS m_flags
Definition: Object.h:388

+ Here is the caller graph for this function:

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
void FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddValue ( FLAG_TYPE  flag,
T_VALUES  value 
)
inline
384 { m_values[flag] += value; }
const FieldDescriptor value
Definition: descriptor.h:1522
T_VALUES m_values[ARRAY_SIZE]
Definition: Object.h:387

+ Here is the caller graph for this function:

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
void FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::DelFlag ( FLAG_TYPE  flag)
inline
380 { m_flags &= ~(1 << flag); }
T_FLAGS m_flags
Definition: Object.h:388

+ Here is the caller graph for this function:

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
T_FLAGS FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::GetFlags ( ) const
inline
377 { return m_flags; }
T_FLAGS m_flags
Definition: Object.h:388

+ Here is the caller graph for this function:

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
T_VALUES FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::GetValue ( FLAG_TYPE  flag) const
inline
382 { return m_values[flag]; }
T_VALUES m_values[ARRAY_SIZE]
Definition: Object.h:387

+ Here is the caller graph for this function:

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
bool FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::HasFlag ( FLAG_TYPE  flag) const
inline
378 { return m_flags & (1 << flag); }
T_FLAGS m_flags
Definition: Object.h:388
template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
void FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue ( FLAG_TYPE  flag,
T_VALUES  value 
)
inline
383 { m_values[flag] = value; }
const FieldDescriptor value
Definition: descriptor.h:1522
T_VALUES m_values[ARRAY_SIZE]
Definition: Object.h:387

+ Here is the caller graph for this function:

Member Data Documentation

template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
T_FLAGS FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::m_flags
private
template<class T_VALUES, class T_FLAGS, class FLAG_TYPE, uint8 ARRAY_SIZE>
T_VALUES FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::m_values[ARRAY_SIZE]
private

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