Blender  V3.3
Public Member Functions | List of all members
iTaSC::Cache Class Reference

#include <Cache.hpp>

Public Member Functions

 Cache ()
 
 ~Cache ()
 
int addChannel (const void *device, const char *name, unsigned int maxItemSize)
 
int deleteChannel (const void *device, int channel)
 
int deleteDevice (const void *device)
 
void clearCacheFrom (const void *device, CacheTS timestamp)
 
voidaddCacheItem (const void *device, int channel, CacheTS timestamp, void *data, unsigned int length)
 
doubleaddCacheVectorIfDifferent (const void *device, int channel, CacheTS timestamp, double *data, unsigned int length, double threshold)
 
const voidgetPreviousCacheItem (const void *device, int channel, CacheTS *timestamp)
 
const voidgetCurrentCacheItem (const void *device, int channel, CacheTS timestamp)
 

Detailed Description

Definition at line 87 of file Cache.hpp.

Constructor & Destructor Documentation

◆ Cache()

iTaSC::Cache::Cache ( )

Definition at line 189 of file Cache.cpp.

◆ ~Cache()

iTaSC::Cache::~Cache ( )

Definition at line 193 of file Cache.cpp.

References deleteDevice().

Member Function Documentation

◆ addCacheItem()

void * iTaSC::Cache::addCacheItem ( const void device,
int  channel,
CacheTS  timestamp,
void data,
unsigned int  length 
)

◆ addCacheVectorIfDifferent()

double * iTaSC::Cache::addCacheVectorIfDifferent ( const void device,
int  channel,
CacheTS  timestamp,
double data,
unsigned int  length,
double  threshold 
)

◆ addChannel()

int iTaSC::Cache::addChannel ( const void device,
const char *  name,
unsigned int  maxItemSize 
)

◆ clearCacheFrom()

void iTaSC::Cache::clearCacheFrom ( const void device,
CacheTS  timestamp 
)

◆ deleteChannel()

int iTaSC::Cache::deleteChannel ( const void device,
int  channel 
)

◆ deleteDevice()

int iTaSC::Cache::deleteDevice ( const void device)

Definition at line 306 of file Cache.cpp.

Referenced by ~Cache().

◆ getCurrentCacheItem()

const void * iTaSC::Cache::getCurrentCacheItem ( const void device,
int  channel,
CacheTS  timestamp 
)

Definition at line 593 of file Cache.cpp.

References CACHE_ITEM_DATA_POINTER, and NULL.

◆ getPreviousCacheItem()

const void * iTaSC::Cache::getPreviousCacheItem ( const void device,
int  channel,
CacheTS timestamp 
)

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