Public Member Functions | Static Public Member Functions | Protected Attributes

CAsciiFile Class Reference


Detailed Description

A Ascii File access class.

Definition at line 35 of file AsciiFile.h.

Inheritance diagram for CAsciiFile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CAsciiFile ()
 CAsciiFile (FILE *f, const char *name=NULL)
 CAsciiFile (char *fname, char rw='r', const char *name=NULL)
virtual ~CAsciiFile ()
virtual const char * get_name () const
Vector Access Functions

Functions to access vectors of one of the several base data types. These functions are used when writing vectors of length len to e.g. a file

virtual void get_vector (uint8_t *&vector, int32_t &len)
virtual void get_vector (char *&vector, int32_t &len)
virtual void get_vector (int32_t *&vector, int32_t &len)
virtual void get_vector (float64_t *&vector, int32_t &len)
virtual void get_vector (float32_t *&vector, int32_t &len)
virtual void get_vector (int16_t *&vector, int32_t &len)
virtual void get_vector (uint16_t *&vector, int32_t &len)
virtual void set_vector (const uint8_t *vector, int32_t len)
virtual void set_vector (const char *vector, int32_t len)
virtual void set_vector (const int32_t *vector, int32_t len)
virtual void set_vector (const float32_t *vector, int32_t len)
virtual void set_vector (const float64_t *vector, int32_t len)
virtual void set_vector (const int16_t *vector, int32_t len)
virtual void set_vector (const uint16_t *vector, int32_t len)
Matrix Access Functions

Functions to access matrices of one of the several base data types. These functions are used when writing matrices of num_feat rows and num_vec columns to e.g. a file

virtual void get_matrix (uint8_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_int8_matrix (int8_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (char *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (int32_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_uint_matrix (uint32_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_long_matrix (int64_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_ulong_matrix (uint64_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (float32_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (float64_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_longreal_matrix (floatmax_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (int16_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_matrix (uint16_t *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void set_matrix (const uint8_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_int8_matrix (const int8_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const char *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const int32_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_uint_matrix (const uint32_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_long_matrix (const int64_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_ulong_matrix (const uint64_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const float32_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const float64_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_longreal_matrix (const floatmax_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const int16_t *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_matrix (const uint16_t *matrix, int32_t num_feat, int32_t num_vec)
N-Dimensional Array Access Functions

Functions to access n-dimensional arrays of one of the several base data types. These functions are used when writing array of num_dims dimensions to e.g. a file. Dims contain sizes of every dimensions.

virtual void get_ndarray (uint8_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_int8_ndarray (int8_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (char *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (int32_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_uint_ndarray (uint32_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_long_ndarray (int64_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ulong_ndarray (uint64_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (float32_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (float64_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_longreal_ndarray (floatmax_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (int16_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void get_ndarray (uint16_t *&array, int32_t *&dims, int32_t &num_dims)
virtual void set_ndarray (const uint8_t *array, int32_t *dims, int32_t num_dims)
virtual void set_int8_ndarray (const int8_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const char *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const int32_t *array, int32_t *dims, int32_t num_dims)
virtual void set_uint_ndarray (const uint32_t *array, int32_t *dims, int32_t num_dims)
virtual void set_long_ndarray (const int64_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ulong_ndarray (const uint64_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const float32_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const float64_t *array, int32_t *dims, int32_t num_dims)
virtual void set_longreal_ndarray (const floatmax_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const int16_t *array, int32_t *dims, int32_t num_dims)
virtual void set_ndarray (const uint16_t *array, int32_t *dims, int32_t num_dims)
Sparse Matrix Access Functions

Functions to access sparse matrices of one of the several base data types. These functions are used when writing sparse matrices of num_feat rows and num_vec columns to e.g. a file

virtual void get_sparse_matrix (SGSparseVector< bool > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< uint8_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_int8_sparsematrix (SGSparseVector< int8_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< char > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< int32_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_uint_sparsematrix (SGSparseVector< uint32_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_long_sparsematrix (SGSparseVector< int64_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_ulong_sparsematrix (SGSparseVector< uint64_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< int16_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< uint16_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< float32_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_sparse_matrix (SGSparseVector< float64_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void get_longreal_sparsematrix (SGSparseVector< floatmax_t > *&matrix, int32_t &num_feat, int32_t &num_vec)
virtual void set_sparse_matrix (const SGSparseVector< bool > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< uint8_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_int8_sparsematrix (const SGSparseVector< int8_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< char > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< int32_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_uint_sparsematrix (const SGSparseVector< uint32_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_long_sparsematrix (const SGSparseVector< int64_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_ulong_sparsematrix (const SGSparseVector< uint64_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< int16_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< uint16_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< float32_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_sparse_matrix (const SGSparseVector< float64_t > *matrix, int32_t num_feat, int32_t num_vec)
virtual void set_longreal_sparsematrix (const SGSparseVector< floatmax_t > *matrix, int32_t num_feat, int32_t num_vec)
String Access Functions

Functions to access strings of one of the several base data types. These functions are used when writing variable length datatypes like strings to a file. Here num_str denotes the number of strings and strings is a pointer to a string structure.

virtual void get_string_list (SGString< uint8_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_int8_string_list (SGString< int8_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< char > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< int32_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_uint_string_list (SGString< uint32_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< int16_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< uint16_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_long_string_list (SGString< int64_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_ulong_string_list (SGString< uint64_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< float32_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_string_list (SGString< float64_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void get_longreal_string_list (SGString< floatmax_t > *&strings, int32_t &num_str, int32_t &max_string_len)
virtual void set_string_list (const SGString< uint8_t > *strings, int32_t num_str)
virtual void set_int8_string_list (const SGString< int8_t > *strings, int32_t num_str)
virtual void set_string_list (const SGString< char > *strings, int32_t num_str)
virtual void set_string_list (const SGString< int32_t > *strings, int32_t num_str)
virtual void set_uint_string_list (const SGString< uint32_t > *strings, int32_t num_str)
virtual void set_string_list (const SGString< int16_t > *strings, int32_t num_str)
virtual void set_string_list (const SGString< uint16_t > *strings, int32_t num_str)
virtual void set_long_string_list (const SGString< int64_t > *strings, int32_t num_str)
virtual void set_ulong_string_list (const SGString< uint64_t > *strings, int32_t num_str)
virtual void set_string_list (const SGString< float32_t > *strings, int32_t num_str)
virtual void set_string_list (const SGString< float64_t > *strings, int32_t num_str)
virtual void set_longreal_string_list (const SGString< floatmax_t > *strings, int32_t num_str)

Static Public Member Functions

static ssize_t getdelim (char **lineptr, size_t *n, char delimiter, FILE *stream)
static ssize_t getline (char **lineptr, size_t *n, FILE *stream)
static void tokenize (char delim, substring s, v_array< substring > &ret)

Protected Attributes

CIOBuffer buf
 IOBuffer through which the file can be read.

Constructor & Destructor Documentation

CAsciiFile ( void   ) 

default constructor

Definition at line 24 of file AsciiFile.cpp.

CAsciiFile ( FILE *  f,
const char *  name = NULL 
)

constructor

Parameters:
f already opened file
name variable name (e.g. "x" or "/path/to/x")

Definition at line 29 of file AsciiFile.cpp.

CAsciiFile ( char *  fname,
char  rw = 'r',
const char *  name = NULL 
)

constructor

Parameters:
fname filename to open
rw mode, 'r' or 'w'
name variable name (e.g. "x" or "/path/to/x")

Definition at line 33 of file AsciiFile.cpp.

~CAsciiFile (  )  [virtual]

default destructor

Definition at line 37 of file AsciiFile.cpp.


Member Function Documentation

virtual void get_int8_matrix ( int8_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_int8_ndarray ( int8_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]
virtual void get_int8_sparsematrix ( SGSparseVector< int8_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_int8_string_list ( SGString< int8_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 550 of file AsciiFile.cpp.

virtual void get_long_matrix ( int64_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_long_ndarray ( int64_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]
virtual void get_long_sparsematrix ( SGSparseVector< int64_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_long_string_list ( SGString< int64_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 764 of file AsciiFile.cpp.

virtual void get_longreal_matrix ( floatmax_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_longreal_ndarray ( floatmax_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]
virtual void get_longreal_sparsematrix ( SGSparseVector< floatmax_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_longreal_string_list ( SGString< floatmax_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 792 of file AsciiFile.cpp.

virtual void get_matrix ( uint8_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( float64_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( int16_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( uint16_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( char *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( int32_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_matrix ( float32_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Reimplemented from CFile.

Definition at line 380 of file AsciiFile.h.

virtual void get_ndarray ( uint8_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( char *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( int32_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( float32_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( float64_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( int16_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_ndarray ( uint16_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< bool > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< uint8_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< char > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< int32_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< int16_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< uint16_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< float32_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_sparse_matrix ( SGSparseVector< float64_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_string_list ( SGString< uint8_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 457 of file AsciiFile.cpp.

void get_string_list ( SGString< char > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 643 of file AsciiFile.cpp.

void get_string_list ( SGString< int32_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 736 of file AsciiFile.cpp.

void get_string_list ( SGString< int16_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 750 of file AsciiFile.cpp.

void get_string_list ( SGString< uint16_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 757 of file AsciiFile.cpp.

void get_string_list ( SGString< float32_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 778 of file AsciiFile.cpp.

void get_string_list ( SGString< float64_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 785 of file AsciiFile.cpp.

virtual void get_uint_matrix ( uint32_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_uint_ndarray ( uint32_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]
virtual void get_uint_sparsematrix ( SGSparseVector< uint32_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_uint_string_list ( SGString< uint32_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 743 of file AsciiFile.cpp.

virtual void get_ulong_matrix ( uint64_t *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

virtual void get_ulong_ndarray ( uint64_t *&  array,
int32_t *&  dims,
int32_t &  num_dims 
) [virtual]
virtual void get_ulong_sparsematrix ( SGSparseVector< uint64_t > *&  matrix,
int32_t &  num_feat,
int32_t &  num_vec 
) [virtual]

Implements CFile.

void get_ulong_string_list ( SGString< uint64_t > *&  strings,
int32_t &  num_str,
int32_t &  max_string_len 
) [virtual]

Implements CFile.

Definition at line 771 of file AsciiFile.cpp.

virtual void get_vector ( float64_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( uint8_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( char *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( float32_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( int16_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( int32_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

virtual void get_vector ( uint16_t *&  vector,
int32_t &  len 
) [virtual]

Implements CFile.

ssize_t getdelim ( char **  lineptr,
size_t *  n,
char  delimiter,
FILE *  stream 
) [static]

getdelim() implementation.

Reads upto delimiter from stream into a dynamically expanding buffer, lineptr, and returns the number of characters read. See specification of standard getdelim() for details.

Parameters:
lineptr Buffer to store the string.
n Size of buffer.
delimiter Delimiter upto (and including) which to read.
stream FILE pointer to read from.
Returns:
Number of bytes read.

Definition at line 1078 of file AsciiFile.cpp.

ssize_t getline ( char **  lineptr,
size_t *  n,
FILE *  stream 
) [static]

getline() implementation.

Reads upto and including the first
from the file.

Parameters:
lineptr Buffer
n Size of buffer
stream FILE pointer to read from
Returns:
Number of bytes read

Definition at line 1083 of file AsciiFile.cpp.

virtual void set_int8_matrix ( const int8_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_int8_ndarray ( const int8_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_int8_sparsematrix ( const SGSparseVector< int8_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_int8_string_list ( const SGString< int8_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 942 of file AsciiFile.cpp.

virtual void set_long_matrix ( const int64_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_long_ndarray ( const int64_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_long_sparsematrix ( const SGSparseVector< int64_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_long_string_list ( const SGString< int64_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 984 of file AsciiFile.cpp.

virtual void set_longreal_matrix ( const floatmax_t matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_longreal_ndarray ( const floatmax_t array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_longreal_sparsematrix ( const SGSparseVector< floatmax_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_longreal_string_list ( const SGString< floatmax_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 1000 of file AsciiFile.cpp.

virtual void set_matrix ( const uint8_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const char *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const float32_t matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const float64_t matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const int16_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const int32_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_matrix ( const uint16_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_ndarray ( const uint8_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const char *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const float32_t array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const int16_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const uint16_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const float64_t array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ndarray ( const int32_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_sparse_matrix ( const SGSparseVector< uint16_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< uint8_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< int16_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< bool > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< char > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< float32_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< float64_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_sparse_matrix ( const SGSparseVector< int32_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_string_list ( const SGString< int16_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 976 of file AsciiFile.cpp.

void set_string_list ( const SGString< uint16_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 980 of file AsciiFile.cpp.

void set_string_list ( const SGString< char > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 955 of file AsciiFile.cpp.

void set_string_list ( const SGString< uint8_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 929 of file AsciiFile.cpp.

void set_string_list ( const SGString< float64_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 996 of file AsciiFile.cpp.

void set_string_list ( const SGString< int32_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 968 of file AsciiFile.cpp.

void set_string_list ( const SGString< float32_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 992 of file AsciiFile.cpp.

virtual void set_uint_matrix ( const uint32_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_uint_ndarray ( const uint32_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_uint_sparsematrix ( const SGSparseVector< uint32_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_uint_string_list ( const SGString< uint32_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 972 of file AsciiFile.cpp.

virtual void set_ulong_matrix ( const uint64_t *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

virtual void set_ulong_ndarray ( const uint64_t *  array,
int32_t *  dims,
int32_t  num_dims 
) [virtual]
virtual void set_ulong_sparsematrix ( const SGSparseVector< uint64_t > *  matrix,
int32_t  num_feat,
int32_t  num_vec 
) [virtual]

Implements CFile.

void set_ulong_string_list ( const SGString< uint64_t > *  strings,
int32_t  num_str 
) [virtual]

Implements CFile.

Definition at line 988 of file AsciiFile.cpp.

virtual void set_vector ( const float32_t vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const int16_t *  vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const char *  vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const uint16_t *  vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const float64_t vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const uint8_t *  vector,
int32_t  len 
) [virtual]

Implements CFile.

virtual void set_vector ( const int32_t *  vector,
int32_t  len 
) [virtual]

Implements CFile.

void tokenize ( char  delim,
substring  s,
v_array< substring > &  ret 
) [static]

Split a given substring into an array of substrings based on a specified delimiter

Parameters:
delim delimiter to use
s substring to tokenize
ret array of substrings, returned

Definition at line 1089 of file AsciiFile.cpp.


Member Data Documentation

CIOBuffer buf [protected]

IOBuffer through which the file can be read.

Definition at line 433 of file AsciiFile.h.


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

SHOGUN Machine Learning Toolbox - Documentation