ezEngine  Milestone 7
ezTag Class Reference

The tag class stores the necessary lookup information for a single tag which can be used in conjunction with the tag set. More...

#include <Tag.h>

Public Member Functions

EZ_FORCE_INLINE bool operator== (const ezTag &rhs) const
 
EZ_FORCE_INLINE bool operator!= (const ezTag &rhs) const
 
EZ_FORCE_INLINE bool operator< (const ezTag &rhs) const
 
EZ_FORCE_INLINE const ezStringGetTagString () const
 
EZ_FORCE_INLINE ezUInt32 GetTagHash () const
 
EZ_FORCE_INLINE bool IsValid () const
 

Private Attributes

ezHashedString m_TagString
 
ezUInt32 m_uiBitIndex
 
ezUInt32 m_uiBlockIndex
 
ezTagSetBlockStorage m_uiPreshiftedBit
 Stores a pre-shifted version of 1u << uiBitIndex.
 

Friends

template<typename BlockStorageAllocator >
class ezTagSetTemplate
 
class ezTagRegistry
 

Detailed Description

The tag class stores the necessary lookup information for a single tag which can be used in conjunction with the tag set.

A tag is the storage for a small amount of lookup information for a single tag. Instances of ezTag can be used in checks with the tag set. Note that fetching information for the tag needs to access the global tag registry which involves a mutex lock. It is thus recommended to fetch tag instances early and reuse them for the actual tests and to avoid querying the tag registry all the time (e.g. due to tag instances being kept on the stack).


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