公有成员 | 保护属性

CGCArray< T >模板类参考


详细描述

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).

在文件GCArray.h27行定义。

继承图,类CGCArray< T >
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CGCArray (int32_t sz)
virtual ~CGCArray ()
void set (T element, int32_t index)
get (int32_t index)
virtual const char * get_name () const

保护属性

T * array
 array
int32_t size
 size of array

构造及析构函数文档

CGCArray ( int32_t  sz )

Constructor

参数:
szlength of array

在文件GCArray.h34行定义。

virtual ~CGCArray (  ) [virtual]

Destructor

在文件GCArray.h42行定义。


成员函数文档

T get ( int32_t  index )

read only access operator

参数:
indexindex to write to
返回:
element element

在文件GCArray.h68行定义。

virtual const char* get_name (  ) const [virtual]

get the name of the object

返回:
name of object

实现了CSGObject

在文件GCArray.h81行定义。

void set ( element,
int32_t  index 
)

write access operator

参数:
element- element to write
index- index to write to

在文件GCArray.h54行定义。


成员数据文档

T* array [protected]

array

在文件GCArray.h85行定义。

int32_t size [protected]

size of array

在文件GCArray.h87行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation