SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | Public 属性 | Protected 成员函数
SGStringList< T > 模板类 参考

详细描述

template<class T>
class shogun::SGStringList< T >

template class SGStringList

在文件 SGObject.h40 行定义.

类 SGStringList< T > 继承关系图:
Inheritance graph
[图例]

Public 成员函数

 SGStringList ()
 
 SGStringList (SGString< T > *s, index_t num_s, index_t max_length, bool ref_counting=true)
 
 SGStringList (index_t num_s, index_t max_length, bool ref_counting=true)
 
 SGStringList (const SGStringList &orig)
 
virtual ~SGStringList ()
 
SGStringList< T > get ()
 
void load (CFile *loader)
 
void save (CFile *saver)
 
int32_t ref_count ()
 

Public 属性

index_t num_strings
 
index_t max_string_length
 
SGString< T > * strings
 

Protected 成员函数

virtual void copy_data (const SGReferencedData &orig)
 
virtual void init_data ()
 
void free_data ()
 
void copy_refcount (const SGReferencedData &orig)
 
int32_t ref ()
 
int32_t unref ()
 

构造及析构函数说明

default constructor

在文件 SGStringList.cpp10 行定义.

SGStringList ( SGString< T > *  s,
index_t  num_s,
index_t  max_length,
bool  ref_counting = true 
)

constructor for setting params

在文件 SGStringList.cpp16 行定义.

SGStringList ( index_t  num_s,
index_t  max_length,
bool  ref_counting = true 
)

constructor to create new string list in memory

在文件 SGStringList.cpp24 行定义.

SGStringList ( const SGStringList< T > &  orig)

copy constructor

在文件 SGStringList.cpp32 行定义.

~SGStringList ( )
virtual

destructor

在文件 SGStringList.cpp39 行定义.

成员函数说明

void copy_data ( const SGReferencedData orig)
protectedvirtual

copy data

实现了 SGReferencedData.

在文件 SGStringList.cpp65 行定义.

void copy_refcount ( const SGReferencedData orig)
protectedinherited

copy refcount

在文件 SGReferencedData.cpp55 行定义.

void free_data ( )
protectedvirtual

free data

实现了 SGReferencedData.

在文件 SGStringList.cpp81 行定义.

SGStringList<T> get ( )

get the string list (no copying is done here)

返回
the refcount increased string list

在文件 SGStringList.h51 行定义.

void init_data ( )
protectedvirtual

init data

实现了 SGReferencedData.

在文件 SGStringList.cpp73 行定义.

void load ( CFile loader)

load strings from file

参数
loaderFile object via which to load data

在文件 SGStringList.cpp44 行定义.

int32_t ref ( )
protectedinherited

increase reference counter

返回
reference count

在文件 SGReferencedData.cpp64 行定义.

int32_t ref_count ( )
inherited

display reference counter

返回
reference count

在文件 SGReferencedData.cpp41 行定义.

void save ( CFile saver)

save strings to file

参数
saverFile object via which to save data

在文件 SGStringList.cpp54 行定义.

int32_t unref ( )
protectedinherited

decrement reference counter and deallocate object if refcount is zero before or after decrementing it

返回
reference count

在文件 SGReferencedData.cpp84 行定义.

类成员变量说明

index_t max_string_length

length of longest string

在文件 SGStringList.h85 行定义.

index_t num_strings

number of strings

在文件 SGStringList.h82 行定义.

SGString<T>* strings

this contains the array of features

在文件 SGStringList.h88 行定义.


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

SHOGUN 机器学习工具包 - 项目文档