Blender  V3.3
Classes | Namespaces | Macros | Typedefs | Functions
#include <map>

Go to the source code of this file.

Classes

struct  iTaSC::Timestamp
 
class  iTaSC::Cache
 
struct  iTaSC::CacheEntry
 
struct  iTaSC::CacheChannel
 
struct  iTaSC::CacheBlock
 
struct  iTaSC::CacheItem
 
struct  iTaSC::CacheBufferHeader
 
struct  iTaSC::CacheBuffer
 

Namespaces

 iTaSC
 

Macros

#define CACHE_LOOKUP_TABLE_SIZE   128
 
#define CACHE_DEFAULT_BUFFER_SIZE   32768
 
#define CACHE_CHANNEL_EXTEND_SIZE   10
 
#define CACHE_MAX_ITEM_SIZE   0x3FFF0
 
#define CACHE_ITEM_GAPB(item)   (unsigned int)(((size_t)item+sizeof(CacheItem))&(sizeof(void*)-1))
 
#define CACHE_ITEM_DATA_POINTER(item)   (void*)((unsigned char*)item+sizeof(CacheItem)+CACHE_ITEM_GAPB(item))
 
#define CACHE_ITEM_SIZEW(item, length)   (unsigned int)((sizeof(CacheItem)+CACHE_ITEM_GAPB(item)+(((length)+3)&~0x3))>>2)
 
#define CACHE_NEXT_ITEM(item)   ((item)+(item)->m_sizeW)
 
#define CACHE_BLOCK_ITEM_ADDR(chan, buf, block)   (&(buf)->m_firstItem+(((unsigned int)(block)<<chan->m_positionToBlockShiftW)+(buf)->lookup[block].m_offsetW))
 
#define CACHE_ITEM_ADDR(buf, pos)   (&(buf)->m_firstItem+(pos))
 
#define CACHE_ITEM_POSITIONW(buf, item)   (unsigned int)(item-&buf->m_firstItem)
 
#define CACHE_HEADER
 
#define CACHE_BUFFER_HEADER_SIZE   (sizeof(struct CacheBufferHeader))
 

Typedefs

typedef unsigned int iTaSC::CacheTS
 

Functions

void iTaSC::setCacheTimestamp (Timestamp &timestamp)
 

Macro Definition Documentation

◆ CACHE_BLOCK_ITEM_ADDR

#define CACHE_BLOCK_ITEM_ADDR (   chan,
  buf,
  block 
)    (&(buf)->m_firstItem+(((unsigned int)(block)<<chan->m_positionToBlockShiftW)+(buf)->lookup[block].m_offsetW))

Definition at line 28 of file Cache.hpp.

◆ CACHE_BUFFER_HEADER_SIZE

#define CACHE_BUFFER_HEADER_SIZE   (sizeof(struct CacheBufferHeader))

Definition at line 217 of file Cache.hpp.

◆ CACHE_CHANNEL_EXTEND_SIZE

#define CACHE_CHANNEL_EXTEND_SIZE   10

Definition at line 17 of file Cache.hpp.

◆ CACHE_DEFAULT_BUFFER_SIZE

#define CACHE_DEFAULT_BUFFER_SIZE   32768

Definition at line 16 of file Cache.hpp.

◆ CACHE_HEADER

#define CACHE_HEADER
Value:
struct CacheBuffer *m_next; \
unsigned int m_firstTimestamp; \
unsigned int m_lastTimestamp; \
\
unsigned int m_lastItemPositionW; \
unsigned int m_firstFreePositionW;\
struct CacheBlock lookup[CACHE_LOOKUP_TABLE_SIZE]
#define CACHE_LOOKUP_TABLE_SIZE
Definition: Cache.hpp:15
btAlignedObjectArray< int > m_next
GAttributeReader lookup(const void *owner, const AttributeIDRef &attribute_id)

Definition at line 205 of file Cache.hpp.

◆ CACHE_ITEM_ADDR

#define CACHE_ITEM_ADDR (   buf,
  pos 
)    (&(buf)->m_firstItem+(pos))

Definition at line 29 of file Cache.hpp.

◆ CACHE_ITEM_DATA_POINTER

#define CACHE_ITEM_DATA_POINTER (   item)    (void*)((unsigned char*)item+sizeof(CacheItem)+CACHE_ITEM_GAPB(item))

Definition at line 23 of file Cache.hpp.

◆ CACHE_ITEM_GAPB

#define CACHE_ITEM_GAPB (   item)    (unsigned int)(((size_t)item+sizeof(CacheItem))&(sizeof(void*)-1))

Definition at line 21 of file Cache.hpp.

◆ CACHE_ITEM_POSITIONW

#define CACHE_ITEM_POSITIONW (   buf,
  item 
)    (unsigned int)(item-&buf->m_firstItem)

Definition at line 30 of file Cache.hpp.

◆ CACHE_ITEM_SIZEW

#define CACHE_ITEM_SIZEW (   item,
  length 
)    (unsigned int)((sizeof(CacheItem)+CACHE_ITEM_GAPB(item)+(((length)+3)&~0x3))>>2)

Definition at line 25 of file Cache.hpp.

◆ CACHE_LOOKUP_TABLE_SIZE

#define CACHE_LOOKUP_TABLE_SIZE   128

Definition at line 15 of file Cache.hpp.

◆ CACHE_MAX_ITEM_SIZE

#define CACHE_MAX_ITEM_SIZE   0x3FFF0

Definition at line 18 of file Cache.hpp.

◆ CACHE_NEXT_ITEM

#define CACHE_NEXT_ITEM (   item)    ((item)+(item)->m_sizeW)

Definition at line 27 of file Cache.hpp.