ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::db_data< T > Struct Template Reference

Public Types

enum  edbdata { edbdata_notload , edbdata_load , edbdata_notdata }

Public Member Functions

 db_data (const db_data &)=delete
db_data & operator= (const db_data &)=delete

Static Public Member Functions

static const std::set< int64_t > & const_id_index ()
static std::set< int64_t > & id_index ()
static void set_index (int64_t aid)
static void erase_index (int64_t aid)
static bool set (i64_actorid aid, const T &adata)
static void remove (i64_actorid aid)
static void remove (const std::set< i64_actorid > &aid)
static void remove (const std::vector< i64_actorid > &aid)
static edbdata data_stat (i64_actorid aid)
static T * find (i64_actorid aid)
static bool add (i64_actorid aid, const T &adata)
static void foreach (const std::function< void(T &)> &afun)
static void foreach_index (const std::function< void(int, T &)> &afun)
static void foreach_index (int32_t aindexbeg, int32_t aindexend, const std::function< void(int32_t, T &)> &afun)

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