1 #ifndef COIN_SBSTORAGE_H 2 #define COIN_SBSTORAGE_H 38 typedef void SbStorageApplyFunc(
void * tls,
void * closure);
42 SbStorage(
unsigned int size) { this->storage = cc_storage_construct(size); }
43 SbStorage(
unsigned int size, cc_storage_f * constr, cc_storage_f * destr)
44 { this->storage = cc_storage_construct_etc(size, constr, destr); }
45 ~
SbStorage(
void) { cc_storage_destruct(this->storage); }
47 void *
get(void) {
return cc_storage_get(this->storage); }
48 void applyToAll(SbStorageApplyFunc * func,
void * closure) {
49 cc_storage_apply_to_all(this->storage,
50 reinterpret_cast<cc_storage_apply_func *>(func), closure);
57 #endif // !COIN_SBSTORAGE_H Definition: SbStorage.h:40
struct cc_storage cc_storage
The type definition for the thread local memory storage structure.
Definition: common.h:61