DC类图
2015-12-23 11:02:56 0 举报
DC类图是一种用于描述数据模型的图形表示方法,它由一组实体、属性和关系组成。在DC类图中,实体用矩形表示,属性用椭圆表示,关系用菱形表示。实体之间通过关系相互连接,关系可以是一对一、一对多或多对多。DC类图可以用于描述数据库结构、业务模型等。它是一种非常实用的工具,可以帮助开发人员更好地理解和设计系统。
作者其他创作
大纲/内容
CacheInstance
- IndexListManager: index_list_mgr_- ValueUnit*: value_head_- string:instance_name_- DSInfo: data_source_info_
StringUnit
string val;
IndexUnit
- string:key_value_- KeyUnit*:next_- ValueUnit*: value_list_- bool:is_head_
UInt32Unit
uint32_t val;
DCSource
- BuildInstance(const DSInfo& ds_info);- BuildInstance(const string& file);- Sync();
IndexListManager
- IndexListManager();- const IndexList* index_list(const string& key_name) const;- IndexList* mult_index_list(const string& key_name);
ValueUnit
Int32Unit
int32_t val;
ValueFactory
- template CreateUnit();
IndexList
- IndexUnit*:head_- string: key_name_
- IndexList(uint32_t max_idxs);- AddIndex(const IndexUnit* idx);- const IndexUnit* index(const string& key_value);- IndexUnit* mult_index(const string& key_value);- RemoveIndex(const IndexUnit* idx);- RemoveIndex(const string& key_val);
DCResult
DSInfo
- string: db_host;...
DSConfig
- vector: ds_infos_- string: end_point_
0 条评论
回复 删除
下一页