Public Member Functions | Public Attributes

SGString< T > Struct Template Reference


Detailed Description

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

shogun string

Definition at line 213 of file DataType.h.

List of all members.

Public Member Functions

 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)
void free_string ()
void destroy_string ()

Public Attributes

T * string
index_t slen
bool do_free

Constructor & Destructor Documentation

SGString (  ) 

default constructor

Definition at line 217 of file DataType.h.

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

constructor for setting params

Definition at line 220 of file DataType.h.

SGString ( SGVector< T >  v  ) 

constructor for setting params from a SGVector

Definition at line 224 of file DataType.h.

SGString ( index_t  len,
bool  free_s = false 
)

constructor to create new string in memory

Definition at line 228 of file DataType.h.

SGString ( const SGString< T > &  orig  ) 

copy constructor

Definition at line 235 of file DataType.h.


Member Function Documentation

void destroy_string (  ) 

destroy string

Definition at line 250 of file DataType.h.

void free_string (  ) 

free string

Definition at line 239 of file DataType.h.


Member Data Documentation

bool do_free

whether string needs to be freed

Definition at line 262 of file DataType.h.

length of string

Definition at line 260 of file DataType.h.

T* string

string

Definition at line 258 of file DataType.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation