|
| drwnTableFactorStorage (int nSize=0) |
|
int | capacity () const |
| return the total capacity of the storage
|
|
void | reserve (int nSize) |
| reserve capacity for nSize entries
|
|
void | zero (int nSize=-1) |
| set nSize (or all) entries to zero
|
|
void | fill (double v, int nSize=-1) |
| set nSize (or all) entries to the value v
|
|
void | copy (const double *p, int nSize=-1) |
| copy nSize (or all) entries from array p
|
|
void | copy (const drwnTableFactorStorage *p, int nSize=-1) |
| copy nSize (or all) entries from storage object p
|
|
double & | operator[] (unsigned index) |
|
const double & | operator[] (unsigned index) const |
|
Shared memory for table factors.
- Warning
- Shared storage cannot be deleted until all factors using the storage have been deleted (i.e., unregistered). This means that if factors in a graph are using shared storage then the graph must be destroyed before the storage can be deleted.