Public Member Functions | Public Attributes | Protected Member Functions

SGStringList< T > Struct Template Reference


Detailed Description

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

template class SGStringList

Definition at line 23 of file SGStringList.h.

Inheritance diagram for SGStringList< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 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 ()
int32_t ref_count ()

Public Attributes

index_t num_strings
index_t max_string_length
SGString< T > * strings

Protected Member Functions

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 ()

Constructor & Destructor Documentation

SGStringList (  ) 

default constructor

Definition at line 27 of file SGStringList.h.

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

constructor for setting params

Definition at line 33 of file SGStringList.h.

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

constructor to create new string list in memory

Definition at line 41 of file SGStringList.h.

SGStringList ( const SGStringList< T > &  orig  ) 

copy constructor

Definition at line 49 of file SGStringList.h.

virtual ~SGStringList (  )  [virtual]

destructor

Definition at line 56 of file SGStringList.h.


Member Function Documentation

virtual void copy_data ( const SGReferencedData orig  )  [protected, virtual]

copy data

Implements SGReferencedData.

Definition at line 64 of file SGStringList.h.

void copy_refcount ( const SGReferencedData orig  )  [protected, inherited]

copy refcount

Definition at line 102 of file SGReferencedData.h.

void free_data (  )  [protected, virtual]

free data

Implements SGReferencedData.

Definition at line 80 of file SGStringList.h.

virtual void init_data (  )  [protected, virtual]

init data

Implements SGReferencedData.

Definition at line 72 of file SGStringList.h.

int32_t ref (  )  [protected, inherited]

increase reference counter

Returns:
reference count

Definition at line 111 of file SGReferencedData.h.

int32_t ref_count (  )  [inherited]

display reference counter

Returns:
reference count

Definition at line 81 of file SGReferencedData.h.

int32_t unref (  )  [protected, inherited]

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

Returns:
reference count

Definition at line 136 of file SGReferencedData.h.


Member Data Documentation

length of longest string

Definition at line 94 of file SGStringList.h.

number of strings

Definition at line 91 of file SGStringList.h.

this contains the array of features

Definition at line 97 of file SGStringList.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