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

详细描述

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

shogun string

在文件 base/Parameter.h25 行定义.

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.cpp11 行定义.

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

constructor for setting params

在文件 SGString.cpp14 行定义.

SGString ( SGVector< T >  v)

constructor for setting params from a SGVector

在文件 SGString.cpp18 行定义.

SGString ( index_t  len,
bool  free_s = false 
)

constructor to create new string in memory

在文件 SGString.cpp22 行定义.

SGString ( const SGString< T > &  orig)

copy constructor

在文件 SGString.cpp29 行定义.

成员函数说明

void destroy_string ( )

destroy string

在文件 SGString.cpp59 行定义.

void free_string ( )

free string

在文件 SGString.cpp48 行定义.

SGString<T> get ( )

get the string (no copying is done here)

返回
the refcount increased string

在文件 SGString.h58 行定义.

void load ( CFile loader)

load string from file

参数
loaderFile object via which to load data

在文件 SGString.cpp65 行定义.

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

equality operator

在文件 SGString.cpp33 行定义.

void save ( CFile saver)

save string to file

参数
saverFile object via which to save data

在文件 SGString.cpp76 行定义.

类成员变量说明

bool do_free

whether string needs to be freed

在文件 SGString.h81 行定义.

index_t slen

length of string

在文件 SGString.h79 行定义.

T* string

string

在文件 SGString.h77 行定义.


The documentation for this singleton was generated from the following files:

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