SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
SGString< T > Class Template Reference

Detailed Description

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

shogun string

Definition at line 24 of file SGString.h.

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)
bool operator== (const SGString &other) const
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 28 of file SGString.h.

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

constructor for setting params

Definition at line 31 of file SGString.h.

SGString ( SGVector< T >  v)

constructor for setting params from a SGVector

Definition at line 35 of file SGString.h.

SGString ( index_t  len,
bool  free_s = false 
)

constructor to create new string in memory

Definition at line 39 of file SGString.h.

SGString ( const SGString< T > &  orig)

copy constructor

Definition at line 46 of file SGString.h.

Member Function Documentation

void destroy_string ( )

destroy string

Definition at line 76 of file SGString.h.

void free_string ( )

free string

Definition at line 65 of file SGString.h.

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

equality operator

Definition at line 50 of file SGString.h.

Member Data Documentation

bool do_free

whether string needs to be freed

Definition at line 88 of file SGString.h.

index_t slen

length of string

Definition at line 86 of file SGString.h.

T* string

string

Definition at line 84 of file SGString.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation