CFx SDK Documentation  2020SP3
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
OdGiTraitsCache< traitsContainer, traitsTaker, byMask > Class Template Reference

#include <GiTraitsCache.h>

Inheritance diagram for OdGiTraitsCache< traitsContainer, traitsTaker, byMask >:

Classes

struct  CacheEntry
 

Public Types

enum  CacheType { kCacheNone = 0, kCacheByMask = 1, kCacheAll = 2 }
 

Public Member Functions

 OdGiTraitsCache ()
 
 OdGiTraitsCache (CacheType cacheType)
 
 ~OdGiTraitsCache ()
 
void setCacheType (CacheType cacheType)
 
CacheType cacheType () const
 
void setAttributes (OdDbStub *objId, OdGiContext &giCtx, bool forceCaching=false)
 
void setFlags (OdUInt32 uAttrib)
 
OdUInt32 getFlags () const
 
void clear ()
 

Protected Types

typedef std::map< OdDbStub *, CacheEntry_mmap
 

Protected Attributes

CacheType m_cacheType
 
_mmap m_cacheData
 
OdUInt32 m_traitsAttrib
 

Detailed Description

template<class traitsContainer, class traitsTaker, OdUInt32 byMask = 0>
class OdGiTraitsCache< traitsContainer, traitsTaker, byMask >

See also
TD_Gi

<group OdGi_Classes>

Definition at line 44 of file GiTraitsCache.h.

Member Typedef Documentation

◆ _mmap

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
typedef std::map<OdDbStub*, CacheEntry> OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::_mmap
protected

Definition at line 63 of file GiTraitsCache.h.

Member Enumeration Documentation

◆ CacheType

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
enum OdGiTraitsCache::CacheType
Enumerator
kCacheNone 
kCacheByMask 
kCacheAll 

Definition at line 47 of file GiTraitsCache.h.

Constructor & Destructor Documentation

◆ OdGiTraitsCache() [1/2]

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::OdGiTraitsCache ( )
inline

Definition at line 67 of file GiTraitsCache.h.

◆ OdGiTraitsCache() [2/2]

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::OdGiTraitsCache ( CacheType  cacheType)
inlineexplicit

Definition at line 73 of file GiTraitsCache.h.

◆ ~OdGiTraitsCache()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::~OdGiTraitsCache ( )
inline

Definition at line 79 of file GiTraitsCache.h.

Member Function Documentation

◆ cacheType()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
CacheType OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::cacheType ( ) const
inline

Definition at line 87 of file GiTraitsCache.h.

◆ clear()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
void OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::clear ( )
inline

Definition at line 129 of file GiTraitsCache.h.

◆ getFlags()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
OdUInt32 OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::getFlags ( ) const
inline

Definition at line 124 of file GiTraitsCache.h.

◆ setAttributes()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
void OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::setAttributes ( OdDbStub *  objId,
OdGiContext giCtx,
bool  forceCaching = false 
)
inline

Definition at line 92 of file GiTraitsCache.h.

◆ setCacheType()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
void OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::setCacheType ( CacheType  cacheType)
inline

Definition at line 83 of file GiTraitsCache.h.

◆ setFlags()

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
void OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::setFlags ( OdUInt32  uAttrib)
inline

Definition at line 120 of file GiTraitsCache.h.

Member Data Documentation

◆ m_cacheData

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
_mmap OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::m_cacheData
protected

Definition at line 64 of file GiTraitsCache.h.

◆ m_cacheType

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
CacheType OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::m_cacheType
protected

Definition at line 62 of file GiTraitsCache.h.

◆ m_traitsAttrib

template<class traitsContainer , class traitsTaker , OdUInt32 byMask = 0>
OdUInt32 OdGiTraitsCache< traitsContainer, traitsTaker, byMask >::m_traitsAttrib
protected

Definition at line 65 of file GiTraitsCache.h.


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