ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
perf_test_case::csv_miss_tab Struct Reference
Inheritance diagram for perf_test_case::csv_miss_tab:
ngl::csv< csv_miss_row > ngl::csv_base

Additional Inherited Members

Public Types inherited from ngl::csv< csv_miss_row >
using type_tab
 表类型别名
Public Member Functions inherited from ngl::csv< csv_miss_row >
 csv (const csv &)=delete
csv & operator= (const csv &)=delete
virtual void * find (int aid)
 无类型数据访问
csv_miss_row * tab (int aid)
 按ID查询记录
std::map< int, csv_miss_row > & tabs ()
 获取所有表数据
virtual void reload ()
 加载后回调
virtual const std::string & verify () const
 获取内容哈希
virtual const char * csvname ()
 获取逻辑表名
virtual void load ()
 加载CSV文件
void foreach (const std::function< void(csv_miss_row &)> &afun)
 遍历所有记录
csv_miss_row * find_if (const std::function< bool(csv_miss_row &)> &afun)
 条件查询
Static Public Member Functions inherited from ngl::csv< csv_miss_row >
static std::string path ()
 获取CSV文件路径
static tools::nhashcode hash_code ()
 获取类型哈希码
static const char * name ()
 获取类型名称
Static Public Member Functions inherited from ngl::csv_base
static std::string & path ()
 获取CSV文件根路径
static void set_path (const std::string &apath)
 设置CSV文件根路径
Public Attributes inherited from ngl::csv< csv_miss_row >
std::map< int, csv_miss_row > m_csv
 表数据存储,key为ID
std::string m_verify
 内容MD5哈希

The documentation for this struct was generated from the following file: