Blender
V3.3
|
#include <Cache.hpp>
Public Member Functions | |
void | clear () |
CacheBuffer * | allocBuffer () |
CacheItem * | findItemOrLater (unsigned int timestamp, CacheBuffer **rBuffer) |
CacheItem * | findItemEarlier (unsigned int timestamp, CacheBuffer **rBuffer) |
CacheItem * | _findBlock (CacheBuffer *buffer, unsigned short timeOffset, unsigned int *highBlock) |
Public Attributes | |
CacheItem * | initItem |
struct CacheBuffer * | m_firstBuffer |
struct CacheBuffer * | m_lastBuffer |
char | m_name [32] |
unsigned char | m_busy |
unsigned char | m_positionToBlockShiftW |
unsigned short | m_positionToOffsetMaskW |
unsigned int | m_maxItemSizeB |
unsigned int | m_bufferSizeW |
unsigned int | m_blockSizeW |
unsigned int | m_lastTimestamp |
unsigned int | m_lastItemPositionW |
CacheItem * iTaSC::CacheChannel::_findBlock | ( | CacheBuffer * | buffer, |
unsigned short | timeOffset, | ||
unsigned int * | highBlock | ||
) |
Definition at line 24 of file Cache.cpp.
References buffer, CACHE_BLOCK_ITEM_ADDR, blender::bke::attribute_accessor_functions::lookup(), and m_positionToBlockShiftW.
Referenced by findItemEarlier(), and findItemOrLater().
CacheBuffer * iTaSC::CacheChannel::allocBuffer | ( | ) |
Definition at line 87 of file Cache.cpp.
References buffer, CACHE_BUFFER_HEADER_SIZE, m_bufferSizeW, m_busy, and NULL.
Referenced by iTaSC::Cache::addCacheItem().
void iTaSC::CacheChannel::clear | ( | ) |
Definition at line 72 of file Cache.cpp.
References buffer, free(), initItem, m_firstBuffer, m_lastBuffer, next, and NULL.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::clearCacheFrom(), and iTaSC::Cache::deleteChannel().
CacheItem * iTaSC::CacheChannel::findItemEarlier | ( | unsigned int | timestamp, |
CacheBuffer ** | rBuffer | ||
) |
Definition at line 136 of file Cache.cpp.
References _findBlock(), buffer, CACHE_BLOCK_ITEM_ADDR, CACHE_ITEM_ADDR, CACHE_NEXT_ITEM, initItem, m_busy, m_firstBuffer, m_lastTimestamp, and NULL.
Referenced by iTaSC::Cache::getPreviousCacheItem().
CacheItem * iTaSC::CacheChannel::findItemOrLater | ( | unsigned int | timestamp, |
CacheBuffer ** | rBuffer | ||
) |
Definition at line 99 of file Cache.cpp.
References _findBlock(), buffer, CACHE_BLOCK_ITEM_ADDR, CACHE_NEXT_ITEM, initItem, m_busy, m_firstBuffer, m_lastTimestamp, and NULL.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::clearCacheFrom().
CacheItem* iTaSC::CacheChannel::initItem |
Definition at line 154 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), findItemEarlier(), and findItemOrLater().
unsigned int iTaSC::CacheChannel::m_blockSizeW |
Definition at line 163 of file Cache.hpp.
Referenced by iTaSC::Cache::addChannel().
unsigned int iTaSC::CacheChannel::m_bufferSizeW |
Definition at line 162 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and allocBuffer().
unsigned char iTaSC::CacheChannel::m_busy |
Definition at line 158 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), allocBuffer(), iTaSC::Cache::clearCacheFrom(), iTaSC::Cache::deleteChannel(), findItemEarlier(), findItemOrLater(), and iTaSC::Cache::getPreviousCacheItem().
struct CacheBuffer* iTaSC::CacheChannel::m_firstBuffer |
Definition at line 155 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), iTaSC::Cache::clearCacheFrom(), findItemEarlier(), and findItemOrLater().
struct CacheBuffer* iTaSC::CacheChannel::m_lastBuffer |
Definition at line 156 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), and iTaSC::Cache::clearCacheFrom().
unsigned int iTaSC::CacheChannel::m_lastItemPositionW |
Definition at line 165 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::clearCacheFrom().
unsigned int iTaSC::CacheChannel::m_lastTimestamp |
Definition at line 164 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::clearCacheFrom(), findItemEarlier(), and findItemOrLater().
unsigned int iTaSC::CacheChannel::m_maxItemSizeB |
Definition at line 161 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::addChannel().
char iTaSC::CacheChannel::m_name[32] |
Definition at line 157 of file Cache.hpp.
Referenced by iTaSC::Cache::addChannel().
unsigned char iTaSC::CacheChannel::m_positionToBlockShiftW |
Definition at line 159 of file Cache.hpp.
Referenced by _findBlock(), iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and iTaSC::Cache::clearCacheFrom().
unsigned short iTaSC::CacheChannel::m_positionToOffsetMaskW |
Definition at line 160 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and iTaSC::Cache::clearCacheFrom().