Hikyuu
Public 类型 | Public 成员函数 | 所有成员列表

板块类,可视为证券的容器 更多...

#include <Block.h>

Public 类型

typedef StockMapIterator const_iterator
 

Public 成员函数

 Block ()
 
 Block (const string &category, const string &name)
 
 Block (const Block &)
 
Blockoperator= (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 string category,
const string name 
)
hku::Block::Block ( const Block block)
hku::Block::~Block ( )
virtual

成员函数说明

bool hku::Block::add ( const Stock stock)

加入指定证券

bool hku::Block::add ( const string market_code)

加入指定证券

const_iterator hku::Block::begin ( ) const
inline
string hku::Block::category ( ) const
inline

获取板块类别

void hku::Block::category ( const string category)
inline

设置板块类别

void hku::Block::clear ( )
inline

清除包含的所有证券

bool hku::Block::empty ( ) const
inline

是否为空

const_iterator hku::Block::end ( ) const
inline
Stock hku::Block::get ( const string market_code) const

获取指定的证券

bool hku::Block::have ( const string market_code) const

是否包含指定的证券

bool hku::Block::have ( const Stock stock) const

是否包含指定的证券

string hku::Block::name ( ) const
inline

获取板块名称

void hku::Block::name ( const string name)
inline

设置名称

bool hku::Block::operator!= ( const Block blk)
inline
Block & hku::Block::operator= ( const Block block)
bool hku::Block::operator== ( const Block blk)
inline
Stock hku::Block::operator[] ( const string market_code) const
inline

获取指定的证券

bool hku::Block::remove ( const string market_code)

移除指定证券

bool hku::Block::remove ( const Stock stock)

移除指定证券

size_t hku::Block::size ( ) const
inline

包含的证券数量


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