SHOGUN v0.9.0
组合类型 | 公有成员 | 保护成员 | 保护属性
CSerializableFile类参考

详细描述

在文件SerializableFile.h23行定义。

继承图,类CSerializableFile
Inheritance graph
[图例]

所有成员的列表。

组合类型

struct  TSerializableReader

公有成员

 CSerializableFile (void)
 CSerializableFile (FILE *fstream, char rw)
 CSerializableFile (const char *fname, char rw='r')
virtual ~CSerializableFile (void)
virtual void close (void)
virtual bool is_opened (void)
virtual bool write_scalar (const TSGDataType *type, const char *name, const char *prefix, const void *param)
virtual bool read_scalar (const TSGDataType *type, const char *name, const char *prefix, void *param)
virtual bool write_cont_begin (const TSGDataType *type, const char *name, const char *prefix, index_t len_real_y, index_t len_real_x)
virtual bool read_cont_begin (const TSGDataType *type, const char *name, const char *prefix, index_t *len_read_y, index_t *len_read_x)
virtual bool write_cont_end (const TSGDataType *type, const char *name, const char *prefix, index_t len_real_y, index_t len_real_x)
virtual bool read_cont_end (const TSGDataType *type, const char *name, const char *prefix, index_t len_read_y, index_t len_read_x)
virtual bool write_string_begin (const TSGDataType *type, const char *name, const char *prefix, index_t length)
virtual bool read_string_begin (const TSGDataType *type, const char *name, const char *prefix, index_t *length)
virtual bool write_string_end (const TSGDataType *type, const char *name, const char *prefix, index_t length)
virtual bool read_string_end (const TSGDataType *type, const char *name, const char *prefix, index_t length)
virtual bool write_stringentry_begin (const TSGDataType *type, const char *name, const char *prefix, index_t y)
virtual bool read_stringentry_begin (const TSGDataType *type, const char *name, const char *prefix, index_t y)
virtual bool write_stringentry_end (const TSGDataType *type, const char *name, const char *prefix, index_t y)
virtual bool read_stringentry_end (const TSGDataType *type, const char *name, const char *prefix, index_t y)
virtual bool write_sparse_begin (const TSGDataType *type, const char *name, const char *prefix, index_t vec_index, index_t length)
virtual bool read_sparse_begin (const TSGDataType *type, const char *name, const char *prefix, index_t *vec_index, index_t *length)
virtual bool write_sparse_end (const TSGDataType *type, const char *name, const char *prefix, index_t vec_index, index_t length)
virtual bool read_sparse_end (const TSGDataType *type, const char *name, const char *prefix, index_t *vec_index, index_t length)
virtual bool write_sparseentry_begin (const TSGDataType *type, const char *name, const char *prefix, const TSparseEntry< char > *first_entry, index_t feat_index, index_t y)
virtual bool read_sparseentry_begin (const TSGDataType *type, const char *name, const char *prefix, TSparseEntry< char > *first_entry, index_t *feat_index, index_t y)
virtual bool write_sparseentry_end (const TSGDataType *type, const char *name, const char *prefix, const TSparseEntry< char > *first_entry, index_t feat_index, index_t y)
virtual bool read_sparseentry_end (const TSGDataType *type, const char *name, const char *prefix, TSparseEntry< char > *first_entry, index_t *feat_index, index_t y)
virtual bool write_item_begin (const TSGDataType *type, const char *name, const char *prefix, index_t y, index_t x)
virtual bool read_item_begin (const TSGDataType *type, const char *name, const char *prefix, index_t y, index_t x)
virtual bool write_item_end (const TSGDataType *type, const char *name, const char *prefix, index_t y, index_t x)
virtual bool read_item_end (const TSGDataType *type, const char *name, const char *prefix, index_t y, index_t x)
virtual bool write_sgserializable_begin (const TSGDataType *type, const char *name, const char *prefix, const char *sgserializable_name, EPrimitiveType generic)
virtual bool read_sgserializable_begin (const TSGDataType *type, const char *name, const char *prefix, char *sgserializable_name, EPrimitiveType *generic)
virtual bool write_sgserializable_end (const TSGDataType *type, const char *name, const char *prefix, const char *sgserializable_name, EPrimitiveType generic)
virtual bool read_sgserializable_end (const TSGDataType *type, const char *name, const char *prefix, const char *sgserializable_name, EPrimitiveType generic)
virtual bool write_type_begin (const TSGDataType *type, const char *name, const char *prefix)
virtual bool read_type_begin (const TSGDataType *type, const char *name, const char *prefix)
virtual bool write_type_end (const TSGDataType *type, const char *name, const char *prefix)
virtual bool read_type_end (const TSGDataType *type, const char *name, const char *prefix)

保护成员

virtual void init (FILE *fstream, char task, const char *filename)
virtual TSerializableReadernew_reader (char *dest_version, size_t n)=0
virtual bool write_scalar_wrapped (const TSGDataType *type, const void *param)=0
virtual bool write_cont_begin_wrapped (const TSGDataType *type, index_t len_real_y, index_t len_real_x)=0
virtual bool write_cont_end_wrapped (const TSGDataType *type, index_t len_real_y, index_t len_real_x)=0
virtual bool write_string_begin_wrapped (const TSGDataType *type, index_t length)=0
virtual bool write_string_end_wrapped (const TSGDataType *type, index_t length)=0
virtual bool write_stringentry_begin_wrapped (const TSGDataType *type, index_t y)=0
virtual bool write_stringentry_end_wrapped (const TSGDataType *type, index_t y)=0
virtual bool write_sparse_begin_wrapped (const TSGDataType *type, index_t vec_index, index_t length)=0
virtual bool write_sparse_end_wrapped (const TSGDataType *type, index_t vec_index, index_t length)=0
virtual bool write_sparseentry_begin_wrapped (const TSGDataType *type, const TSparseEntry< char > *first_entry, index_t feat_index, index_t y)=0
virtual bool write_sparseentry_end_wrapped (const TSGDataType *type, const TSparseEntry< char > *first_entry, index_t feat_index, index_t y)=0
virtual bool write_item_begin_wrapped (const TSGDataType *type, index_t y, index_t x)=0
virtual bool write_item_end_wrapped (const TSGDataType *type, index_t y, index_t x)=0
virtual bool write_sgserializable_begin_wrapped (const TSGDataType *type, const char *sgserializable_name, EPrimitiveType generic)=0
virtual bool write_sgserializable_end_wrapped (const TSGDataType *type, const char *sgserializable_name, EPrimitiveType generic)=0
virtual bool write_type_begin_wrapped (const TSGDataType *type, const char *name, const char *prefix)=0
virtual bool write_type_end_wrapped (const TSGDataType *type, const char *name, const char *prefix)=0

保护属性

FILE * m_fstream
char m_task
char * m_filename

构造及析构函数文档

CSerializableFile ( void  ) [explicit]

default constructor

在文件SerializableFile.cpp16行定义。

CSerializableFile ( FILE *  fstream,
char  rw 
) [explicit]

constructor

参数:
falready opened file

在文件SerializableFile.cpp22行定义。

CSerializableFile ( const char *  fname,
char  rw = 'r' 
) [explicit]

constructor

参数:
fnamefilename to open
rwmode, 'r' or 'w'

在文件SerializableFile.cpp28行定义。

~CSerializableFile ( void  ) [virtual]

default destructor

在文件SerializableFile.cpp52行定义。


成员函数文档

void close ( void  ) [virtual]

在文件SerializableFile.cpp68行定义。

void init ( FILE *  fstream,
char  task,
const char *  filename 
) [protected, virtual]

在文件SerializableFile.cpp61行定义。

bool is_opened ( void  ) [virtual]

在文件SerializableFile.cpp74行定义。

virtual TSerializableReader* new_reader ( char *  dest_version,
size_t  n 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool read_cont_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t len_read_y,
index_t len_read_x 
) [virtual]

在文件SerializableFile.cpp164行定义。

bool read_cont_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  len_read_y,
index_t  len_read_x 
) [virtual]

在文件SerializableFile.cpp191行定义。

bool read_item_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y,
index_t  x 
) [virtual]

在文件SerializableFile.cpp432行定义。

bool read_item_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y,
index_t  x 
) [virtual]

在文件SerializableFile.cpp458行定义。

bool read_scalar ( const TSGDataType type,
const char *  name,
const char *  prefix,
void *  param 
) [virtual]

在文件SerializableFile.cpp138行定义。

bool read_sgserializable_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
char *  sgserializable_name,
EPrimitiveType generic 
) [virtual]

在文件SerializableFile.cpp485行定义。

bool read_sgserializable_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
const char *  sgserializable_name,
EPrimitiveType  generic 
) [virtual]

在文件SerializableFile.cpp513行定义。

bool read_sparse_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t vec_index,
index_t length 
) [virtual]

在文件SerializableFile.cpp321行定义。

bool read_sparse_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t vec_index,
index_t  length 
) [virtual]

在文件SerializableFile.cpp347行定义。

bool read_sparseentry_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
TSparseEntry< char > *  first_entry,
index_t feat_index,
index_t  y 
) [virtual]

在文件SerializableFile.cpp375行定义。

bool read_sparseentry_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
TSparseEntry< char > *  first_entry,
index_t feat_index,
index_t  y 
) [virtual]

在文件SerializableFile.cpp404行定义。

bool read_string_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t length 
) [virtual]

在文件SerializableFile.cpp217行定义。

bool read_string_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  length 
) [virtual]

在文件SerializableFile.cpp243行定义。

bool read_stringentry_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y 
) [virtual]

在文件SerializableFile.cpp269行定义。

bool read_stringentry_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y 
) [virtual]

在文件SerializableFile.cpp295行定义。

bool read_type_begin ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [virtual]

在文件SerializableFile.cpp539行定义。

bool read_type_end ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [virtual]

在文件SerializableFile.cpp563行定义。

bool write_cont_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  len_real_y,
index_t  len_real_x 
) [virtual]

在文件SerializableFile.cpp151行定义。

virtual bool write_cont_begin_wrapped ( const TSGDataType type,
index_t  len_real_y,
index_t  len_real_x 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_cont_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  len_real_y,
index_t  len_real_x 
) [virtual]

在文件SerializableFile.cpp178行定义。

virtual bool write_cont_end_wrapped ( const TSGDataType type,
index_t  len_real_y,
index_t  len_real_x 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_item_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y,
index_t  x 
) [virtual]

在文件SerializableFile.cpp419行定义。

virtual bool write_item_begin_wrapped ( const TSGDataType type,
index_t  y,
index_t  x 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_item_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y,
index_t  x 
) [virtual]

在文件SerializableFile.cpp445行定义。

virtual bool write_item_end_wrapped ( const TSGDataType type,
index_t  y,
index_t  x 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_scalar ( const TSGDataType type,
const char *  name,
const char *  prefix,
const void *  param 
) [virtual]

在文件SerializableFile.cpp125行定义。

virtual bool write_scalar_wrapped ( const TSGDataType type,
const void *  param 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sgserializable_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
const char *  sgserializable_name,
EPrimitiveType  generic 
) [virtual]

在文件SerializableFile.cpp471行定义。

virtual bool write_sgserializable_begin_wrapped ( const TSGDataType type,
const char *  sgserializable_name,
EPrimitiveType  generic 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sgserializable_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
const char *  sgserializable_name,
EPrimitiveType  generic 
) [virtual]

在文件SerializableFile.cpp499行定义。

virtual bool write_sgserializable_end_wrapped ( const TSGDataType type,
const char *  sgserializable_name,
EPrimitiveType  generic 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sparse_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  vec_index,
index_t  length 
) [virtual]

在文件SerializableFile.cpp308行定义。

virtual bool write_sparse_begin_wrapped ( const TSGDataType type,
index_t  vec_index,
index_t  length 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sparse_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  vec_index,
index_t  length 
) [virtual]

在文件SerializableFile.cpp334行定义。

virtual bool write_sparse_end_wrapped ( const TSGDataType type,
index_t  vec_index,
index_t  length 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sparseentry_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
const TSparseEntry< char > *  first_entry,
index_t  feat_index,
index_t  y 
) [virtual]

在文件SerializableFile.cpp360行定义。

virtual bool write_sparseentry_begin_wrapped ( const TSGDataType type,
const TSparseEntry< char > *  first_entry,
index_t  feat_index,
index_t  y 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_sparseentry_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
const TSparseEntry< char > *  first_entry,
index_t  feat_index,
index_t  y 
) [virtual]

在文件SerializableFile.cpp389行定义。

virtual bool write_sparseentry_end_wrapped ( const TSGDataType type,
const TSparseEntry< char > *  first_entry,
index_t  feat_index,
index_t  y 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_string_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  length 
) [virtual]

在文件SerializableFile.cpp204行定义。

virtual bool write_string_begin_wrapped ( const TSGDataType type,
index_t  length 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_string_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  length 
) [virtual]

在文件SerializableFile.cpp230行定义。

virtual bool write_string_end_wrapped ( const TSGDataType type,
index_t  length 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_stringentry_begin ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y 
) [virtual]

在文件SerializableFile.cpp256行定义。

virtual bool write_stringentry_begin_wrapped ( const TSGDataType type,
index_t  y 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_stringentry_end ( const TSGDataType type,
const char *  name,
const char *  prefix,
index_t  y 
) [virtual]

在文件SerializableFile.cpp282行定义。

virtual bool write_stringentry_end_wrapped ( const TSGDataType type,
index_t  y 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_type_begin ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [virtual]

在文件SerializableFile.cpp527行定义。

virtual bool write_type_begin_wrapped ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。

bool write_type_end ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [virtual]

在文件SerializableFile.cpp551行定义。

virtual bool write_type_end_wrapped ( const TSGDataType type,
const char *  name,
const char *  prefix 
) [protected, pure virtual]

CSerializableAsciiFile内被实现。


成员数据文档

char* m_filename [protected]

在文件SerializableFile.h98行定义。

FILE* m_fstream [protected]

在文件SerializableFile.h96行定义。

char m_task [protected]

在文件SerializableFile.h97行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation