#include <YamlNodes.h>
Public メソッド |
| YamlSequence () |
| YamlSequence (int size) |
| ~YamlSequence () |
bool | empty () const |
int | size () const |
void | clear () |
void | reserve (int size) |
YamlNode & | front () const |
YamlNode & | back () const |
YamlNode * | at (int i) const |
YamlNode & | get (int i) const |
void | write (int i, int value) |
void | write (int i, const std::string &value, YamlStringStyle stringStyle=YAML_PLAIN_STRING) |
bool | read (int i, bool &out_value) const |
bool | read (int i, int &out_value) const |
bool | read (int i, double &out_value) const |
YamlNode & | operator[] (int i) const |
YamlMapping * | newMapping () |
void | append (YamlNodePtr node) |
void | append (int value) |
void | append (int value, int maxColumns, int numValues=0) |
void | append (size_t value) |
void | append (size_t value, int maxColumns, int numValues=0) |
void | append (double value) |
void | append (double value, int maxColumns, int numValues=0) |
void | append (const std::string &value, YamlStringStyle stringStyle=YAML_PLAIN_STRING) |
void | append (const std::string &value, int maxColumns, int numValues=0, YamlStringStyle stringStyle=YAML_PLAIN_STRING) |
void | appendLF () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
virtual | ~YamlCollection () |
void | setFlowStyle (bool isFlowStyle=true) |
bool | isFlowStyle () const |
void | setDoubleFormat (const char *format) |
const char * | doubleFormat () |
bool | isValid () const |
YamlNodeType | type () const |
int | toInt () const |
double | toDouble () const |
bool | toBool () const |
bool | isString () const |
const std::string & | toString () const |
const std::string & | toUtf8String () const |
| operator const std::string & () const |
bool | isMapping () const |
const YamlMapping * | toMapping () const |
YamlMapping * | toMapping () |
bool | isSequence () const |
const YamlSequence * | toSequence () const |
YamlSequence * | toSequence () |
bool | read (int &out_value) const |
bool | hasLineInfo () const |
int | line () const |
int | column () const |
説明
- TODO:
- add 'openMapping' and 'openSequence' methods
型定義
コンストラクタとデストラクタ
YamlSequence::YamlSequence |
( |
| ) |
|
YamlSequence::YamlSequence |
( |
int |
size | ) |
|
YamlSequence::~YamlSequence |
( |
| ) |
|
関数
void YamlSequence::append |
( |
int |
value | ) |
|
void cnoid::YamlSequence::append |
( |
int |
value, |
|
|
int |
maxColumns, |
|
|
int |
numValues = 0 |
|
) |
| |
|
inline |
- 引数
-
maxColumns | LF is automatically inserted when the column pos is over maxColumsn |
numValues | If numValues is not greater than maxColumns, the initial LF is skipped. This feature is disabled if numValues = 0. |
void YamlSequence::append |
( |
size_t |
value | ) |
|
void cnoid::YamlSequence::append |
( |
size_t |
value, |
|
|
int |
maxColumns, |
|
|
int |
numValues = 0 |
|
) |
| |
|
inline |
- 引数
-
maxColumns | LF is automatically inserted when the column pos is over maxColumsn |
numValues | If numValues is not greater than maxColumns, the initial LF is skipped. This feature is disabled if numValues = 0. |
void YamlSequence::append |
( |
double |
value | ) |
|
void cnoid::YamlSequence::append |
( |
double |
value, |
|
|
int |
maxColumns, |
|
|
int |
numValues = 0 |
|
) |
| |
|
inline |
- 引数
-
maxColumns | LF is automatically inserted when the column pos is over maxColumsn |
numValues | If numValues is not greater than maxColumns, the initial LF is skipped. This feature is disabled if numValues = 0. |
- 引数
-
maxColumns | LF is automatically inserted when the column pos is over maxColumsn |
numValues | If numValues is not greater than maxColumns, the initial LF is skipped. This feature is disabled if numValues = 0. |
void YamlSequence::appendLF |
( |
| ) |
|
YamlNode* cnoid::YamlSequence::at |
( |
int |
i | ) |
const |
YamlNode& cnoid::YamlSequence::back |
( |
| ) |
const |
|
inline |
void YamlSequence::clear |
( |
| ) |
|
bool cnoid::YamlSequence::empty |
( |
| ) |
const |
|
inline |
YamlNode& cnoid::YamlSequence::front |
( |
| ) |
const |
|
inline |
YamlNode& cnoid::YamlSequence::get |
( |
int |
i | ) |
const |
|
inline |
YamlNode& cnoid::YamlSequence::operator[] |
( |
int |
i | ) |
const |
|
inline |
bool cnoid::YamlSequence::read |
( |
int |
i, |
|
|
bool & |
out_value |
|
) |
| const |
bool cnoid::YamlSequence::read |
( |
int |
i, |
|
|
int & |
out_value |
|
) |
| const |
bool cnoid::YamlSequence::read |
( |
int |
i, |
|
|
double & |
out_value |
|
) |
| const |
void YamlSequence::reserve |
( |
int |
size | ) |
|
int cnoid::YamlSequence::size |
( |
| ) |
const |
|
inline |
void YamlSequence::write |
( |
int |
i, |
|
|
int |
value |
|
) |
| |
フレンドと関連する関数
friend class YamlReaderImpl |
|
friend |
このクラスの説明は次のファイルから生成されました: