Detailed Description
template<class T>
class shogun::CGCArray< T >
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).
Definition at line 28 of file GCArray.h.
List of all members.
Constructor & Destructor Documentation
default constructor
Definition at line 32 of file GCArray.h.
Constructor
- Parameters:
-
Definition at line 44 of file GCArray.h.
Member Function Documentation
read only access operator
- Parameters:
-
- Returns:
- element element
Definition at line 78 of file GCArray.h.
virtual const char* get_name |
( |
|
) |
const [virtual] |
get the name of the object
- Returns:
- name of object
Implements CSGObject.
Definition at line 91 of file GCArray.h.
void set |
( |
T |
element, |
|
|
int32_t |
index | |
|
) |
| | |
write access operator
- Parameters:
-
| element | - element to write |
| index | - index to write to |
Definition at line 64 of file GCArray.h.
Member Data Documentation
The documentation for this class was generated from the following file: