SHOGUN
4.1.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
io
SerializableAsciiReader00.h
浏览该文件的文档.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 2010 Soeren Sonnenburg
8
* Copyright (C) 2010 Berlin Institute of Technology
9
*/
10
#ifndef __SERIALIZABLE_ASCII_READER_00_H__
11
#define __SERIALIZABLE_ASCII_READER_00_H__
12
13
#include <
shogun/lib/config.h
>
14
15
#include <
shogun/io/SerializableFile.h
>
16
17
namespace
shogun
18
{
19
class
CSerializableAsciiFile;
20
template
<
class
T>
struct
SGSparseVectorEntry;
21
23
class
SerializableAsciiReader00
24
:
public
CSerializableFile::TSerializableReader
{
25
26
CSerializableAsciiFile
* m_file;
27
28
public
:
32
explicit
SerializableAsciiReader00
(
CSerializableAsciiFile
* file);
33
35
virtual
~SerializableAsciiReader00
();
36
38
virtual
const
char
*
get_name
()
const
{
39
return
"SerializableAsciiReader00"
;
40
}
41
42
#ifndef DOXYGEN_SHOULD_SKIP_THIS
43
virtual
bool
read_scalar_wrapped(
44
const
TSGDataType
* type,
void
* param);
45
46
virtual
bool
read_cont_begin_wrapped(
47
const
TSGDataType
* type,
index_t
* len_read_y,
48
index_t
* len_read_x);
49
virtual
bool
read_cont_end_wrapped(
50
const
TSGDataType
* type,
index_t
len_read_y,
51
index_t
len_read_x);
52
53
virtual
bool
read_string_begin_wrapped(
54
const
TSGDataType
* type,
index_t
* length);
55
virtual
bool
read_string_end_wrapped(
56
const
TSGDataType
* type,
index_t
length);
57
58
virtual
bool
read_stringentry_begin_wrapped(
59
const
TSGDataType
* type,
index_t
y);
60
virtual
bool
read_stringentry_end_wrapped(
61
const
TSGDataType
* type,
index_t
y);
62
63
virtual
bool
read_sparse_begin_wrapped(
64
const
TSGDataType
* type,
index_t
* length);
65
virtual
bool
read_sparse_end_wrapped(
66
const
TSGDataType
* type,
index_t
length);
67
68
virtual
bool
read_sparseentry_begin_wrapped(
69
const
TSGDataType
* type,
SGSparseVectorEntry<char>
* first_entry,
70
index_t
* feat_index,
index_t
y);
71
virtual
bool
read_sparseentry_end_wrapped(
72
const
TSGDataType
* type,
SGSparseVectorEntry<char>
* first_entry,
73
index_t
* feat_index,
index_t
y);
74
75
virtual
bool
read_item_begin_wrapped(
76
const
TSGDataType
* type,
index_t
y,
index_t
x);
77
virtual
bool
read_item_end_wrapped(
78
const
TSGDataType
* type,
index_t
y,
index_t
x);
79
80
virtual
bool
read_sgserializable_begin_wrapped(
81
const
TSGDataType
* type,
char
* sgserializable_name,
82
EPrimitiveType*
generic
);
83
virtual
bool
read_sgserializable_end_wrapped(
84
const
TSGDataType
* type,
const
char
* sgserializable_name,
85
EPrimitiveType
generic
);
86
87
virtual
bool
read_type_begin_wrapped(
88
const
TSGDataType
* type,
const
char
* name,
89
const
char
* prefix);
90
virtual
bool
read_type_end_wrapped(
91
const
TSGDataType
* type,
const
char
* name,
92
const
char
* prefix);
93
#endif
94
};
95
}
96
97
#endif
/* __SERIALIZABLE_ASCII_READER_00_H__ */
index_t
int32_t index_t
Definition:
common.h:62
shogun::CSerializableFile::TSerializableReader
serializable reader
Definition:
SerializableFile.h:29
shogun::SerializableAsciiReader00::get_name
virtual const char * get_name() const
Definition:
SerializableAsciiReader00.h:38
config.h
SerializableFile.h
shogun::TSGDataType
Datatypes that shogun supports.
Definition:
DataType.h:68
shogun::SerializableAsciiReader00
Serializable ascii reader.
Definition:
SerializableAsciiReader00.h:23
shogun::SerializableAsciiReader00::SerializableAsciiReader00
SerializableAsciiReader00(CSerializableAsciiFile *file)
Definition:
SerializableAsciiReader00.cpp:17
shogun::CSerializableAsciiFile
serializable ascii file
Definition:
SerializableAsciiFile.h:40
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::SGSparseVectorEntry
template class SGSparseVectorEntry
Definition:
File.h:23
shogun::SerializableAsciiReader00::~SerializableAsciiReader00
virtual ~SerializableAsciiReader00()
Definition:
SerializableAsciiReader00.cpp:20
SHOGUN
机器学习工具包 - 项目文档