SHOGUN
v1.1.0
|
Template class GCArray implements a garbage collecting static array.
This array is meant to be used for Shogun Objects (CSGObject) only, as it deals with garbage collection, i.e. on read and array assignment the reference count is increased (and decreased on delete and overwriting elements).
Public Member Functions | |
CGCArray () | |
CGCArray (int32_t sz) | |
virtual | ~CGCArray () |
void | set (T element, int32_t index) |
T | get (int32_t index) |
virtual const char * | get_name () const |
Protected Attributes | |
T * | array |
array | |
int32_t | size |
size of array |
CGCArray | ( | int32_t | sz | ) |
T get | ( | int32_t | index | ) |
virtual const char* get_name | ( | ) | const [virtual] |
void set | ( | T | element, |
int32_t | index | ||
) |