SHOGUN  v3.2.0
所有成员列表 | Public 成员函数 | Public 属性
SGString< T > 模板类 参考

详细描述

template<class T>
class shogun::SGString< T >

shogun string

在文件 StringFeatures.h 第 30 行定义.

Public 成员函数

 SGString ()
 
 SGString (T *s, index_t l, bool free_s=false)
 
 SGString (SGVector< T > v)
 
 SGString (index_t len, bool free_s=false)
 
 SGString (const SGString &orig)
 
bool operator== (const SGString &other) const
 
void free_string ()
 
void destroy_string ()
 
SGString< T > get ()
 
void load (CFile *loader)
 
void save (CFile *saver)
 

Public 属性

T * string
 
index_t slen
 
bool do_free
 

构造及析构函数说明

SGString ( )

default constructor

在文件 SGString.cpp 第 9 行定义.

SGString ( T *  s,
index_t  l,
bool  free_s = false 
)

constructor for setting params

在文件 SGString.cpp 第 12 行定义.

SGString ( SGVector< T >  v)

constructor for setting params from a SGVector

在文件 SGString.cpp 第 16 行定义.

SGString ( index_t  len,
bool  free_s = false 
)

constructor to create new string in memory

在文件 SGString.cpp 第 20 行定义.

SGString ( const SGString< T > &  orig)

copy constructor

在文件 SGString.cpp 第 27 行定义.

成员函数说明

void destroy_string ( )

destroy string

在文件 SGString.cpp 第 57 行定义.

void free_string ( )

free string

在文件 SGString.cpp 第 46 行定义.

SGString<T> get ( )

get the string (no copying is done here)

返回
the refcount increased string

在文件 SGString.h 第 58 行定义.

void load ( CFile *  loader)

load string from file

参数
loaderFile object via which to load data

在文件 SGString.cpp 第 63 行定义.

bool operator== ( const SGString< T > &  other) const

equality operator

在文件 SGString.cpp 第 31 行定义.

void save ( CFile *  saver)

save string to file

参数
saverFile object via which to save data

在文件 SGString.cpp 第 74 行定义.

类成员变量说明

bool do_free

whether string needs to be freed

在文件 SGString.h 第 81 行定义.

index_t slen

length of string

在文件 SGString.h 第 79 行定义.

T* string

string

在文件 SGString.h 第 77 行定义.


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

SHOGUN Machine Learning Toolbox - Documentation