|
Hikyuu
0.1
|
板块类,可视为证券的容器 更多...
#include <Block.h>
Public 类型 | |
| typedef StockMapIterator | const_iterator |
Public 成员函数 | |
| Block () | |
| Block (const string &category, const string &name) | |
| Block (const Block &) | |
| Block & | operator= (const Block &) |
| virtual | ~Block () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | operator== (const Block &blk) |
| bool | operator!= (const Block &blk) |
| string | category () const |
| 获取板块类别 更多... | |
| string | name () const |
| 获取板块名称 更多... | |
| void | category (const string &category) |
| 设置板块类别 更多... | |
| void | name (const string &name) |
| 设置名称 更多... | |
| bool | have (const string &market_code) const |
| 是否包含指定的证券 更多... | |
| bool | have (const Stock &stock) const |
| 是否包含指定的证券 更多... | |
| Stock | get (const string &market_code) const |
| 获取指定的证券 更多... | |
| Stock | operator[] (const string &market_code) const |
| 获取指定的证券 更多... | |
| bool | add (const Stock &stock) |
| 加入指定证券 更多... | |
| bool | add (const string &market_code) |
| 加入指定证券 更多... | |
| bool | remove (const string &market_code) |
| 移除指定证券 更多... | |
| bool | remove (const Stock &stock) |
| 移除指定证券 更多... | |
| size_t | size () const |
| 包含的证券数量 更多... | |
| bool | empty () const |
| 是否为空 更多... | |
| void | clear () |
| 清除包含的所有证券 更多... | |
板块类,可视为证券的容器
| hku::Block::Block | ( | ) |
| hku::Block::Block | ( | const Block & | block | ) |
|
virtual |
| bool hku::Block::add | ( | const Stock & | stock | ) |
加入指定证券
| bool hku::Block::add | ( | const string & | market_code | ) |
加入指定证券
|
inline |
|
inline |
获取板块类别
|
inline |
设置板块类别
|
inline |
清除包含的所有证券
|
inline |
是否为空
|
inline |
| bool hku::Block::have | ( | const string & | market_code | ) | const |
是否包含指定的证券
| bool hku::Block::have | ( | const Stock & | stock | ) | const |
是否包含指定的证券
|
inline |
获取板块名称
|
inline |
设置名称
|
inline |
|
inline |
| bool hku::Block::remove | ( | const string & | market_code | ) |
移除指定证券
| bool hku::Block::remove | ( | const Stock & | stock | ) |
移除指定证券
|
inline |
包含的证券数量
1.8.11