|
AFEPack
|
#include <PropertyTable.h>
组合类型 | |
| struct | prop_iter_entry_t |
| 每个对象的性质表记录其在全局中的应用 更多... | |
| struct | prop_tbl_entry_t |
| class | property_entry_t |
| 全局性质表中存储的数据的类型 更多... | |
公有类型 | |
| typedef std::list < property_entry_t > | prop_tbl_list_t |
| 每一个性质使用一个全局的 std::list 类型来存储及其遍历器类型 | |
| typedef prop_tbl_list_t::iterator | prop_tbl_list_iterator_t |
| typedef std::map< u_int, prop_tbl_entry_t > | prop_tbl_t |
| typedef std::map< u_int, prop_iter_entry_t > | prop_iter_t |
| typedef prop_iter_t::iterator | prop_iter_iter_t |
| typedef prop_iter_t::const_iterator | prop_iter_const_iter_t |
公有成员 | |
| template<class T > | |
| bool | has_property (const property_id_t< T > &i) const |
| template<class T > | |
| T * | new_property (const property_id_t< T > &i) |
| template<class T > | |
| T * | get_property (const property_id_t< T > &i) const |
| template<class T > | |
| void | free_property (const property_id_t< T > &i) |
| void | clear_property () |
私有成员 | |
| PropertyTableBase & | operator= (const PropertyTableBase &pt) |
| 拷贝算子 | |
| template<class T > | |
| bool | has_property (const property_id_t< T > &i, prop_iter_const_iter_t &iter) const |
| template<class T > | |
| bool | has_property (const property_id_t< T > &i, prop_iter_iter_t &iter) |
| PropertyTableBase () | |
| 构造函数和析构函数使用私有保护,避免被直接使用 | |
| PropertyTableBase (const PropertyTableBase &pt) | |
| virtual | ~PropertyTableBase () |
| void * | new_property (u_int i) |
| 根据 id 号来分配和释放资源 | |
| void | free_property (prop_iter_iter_t &it) |
| 根据 id 号分配资源 | |
私有属性 | |
| prop_iter_t | _prop_iter |
| 根据 id 号释放资源 | |
静态私有属性 | |
| static prop_tbl_t | _prop_tbl |
友元 | |
| class | ::PropertyTable |
| template<class T > | |
| void | _new_property_id (property_id_t< T > &i) |
| template<class T > | |
| void | _free_property_id (property_id_t< T > &i) |
| typedef prop_iter_t::const_iterator details::PropertyTableBase::prop_iter_const_iter_t |
| typedef prop_iter_t::iterator details::PropertyTableBase::prop_iter_iter_t |
| typedef std::map<u_int, prop_iter_entry_t> details::PropertyTableBase::prop_iter_t |
| typedef prop_tbl_list_t::iterator details::PropertyTableBase::prop_tbl_list_iterator_t |
| typedef std::list<property_entry_t> details::PropertyTableBase::prop_tbl_list_t |
每一个性质使用一个全局的 std::list 类型来存储及其遍历器类型
| typedef std::map<u_int, prop_tbl_entry_t> details::PropertyTableBase::prop_tbl_t |
| details::PropertyTableBase::PropertyTableBase | ( | ) | [inline, private] |
构造函数和析构函数使用私有保护,避免被直接使用
| details::PropertyTableBase::PropertyTableBase | ( | const PropertyTableBase & | pt | ) | [inline, private] |
| virtual details::PropertyTableBase::~PropertyTableBase | ( | ) | [private, virtual] |
释放对象上的所有资源指针。
| void details::PropertyTableBase::free_property | ( | const property_id_t< T > & | i | ) | [inline] |
释放对象上的资源指针
| id | 资源 ID |
确认有此性质
| void details::PropertyTableBase::free_property | ( | prop_iter_iter_t & | it | ) | [private] |
根据 id 号分配资源
| T* details::PropertyTableBase::get_property | ( | const property_id_t< T > & | i | ) | const [inline] |
获取对象上的资源指针
| id | 资源 ID |
| bool details::PropertyTableBase::has_property | ( | const property_id_t< T > & | i, |
| prop_iter_const_iter_t & | iter | ||
| ) | const [inline, private] |
| bool details::PropertyTableBase::has_property | ( | const property_id_t< T > & | i, |
| prop_iter_iter_t & | iter | ||
| ) | [inline, private] |
| bool details::PropertyTableBase::has_property | ( | const property_id_t< T > & | i | ) | const [inline] |
返回此对象是否具有该性质资源
| i | 性质资源 ID |
| T* details::PropertyTableBase::new_property | ( | const property_id_t< T > & | i | ) | [inline] |
分配对象上的资源空间
| id | 资源 ID |
确认没有此性质
| void* details::PropertyTableBase::new_property | ( | u_int | i | ) | [private] |
根据 id 号来分配和释放资源
| PropertyTableBase& details::PropertyTableBase::operator= | ( | const PropertyTableBase & | pt | ) | [inline, private] |
拷贝算子
friend class ::PropertyTable [friend] |
| void _free_property_id | ( | property_id_t< T > & | i | ) | [friend] |
释放一个资源 ID
| id | 被释放的资源 ID |
此资源已经释放过了
| void _new_property_id | ( | property_id_t< T > & | i | ) | [friend] |
申请一个资源 ID
| id | 申请到的资源 ID 会写在其中 |
搜索空闲 ID
根据 id 号释放资源
本对象的性质在全局表中的位置
prop_tbl_t details::PropertyTableBase::_prop_tbl [static, private] |
全局的性质表
1.7.6.1