AFEPack
组合类型 | 公有类型 | 公有成员 | 私有成员 | 私有属性 | 静态私有属性 | 友元
details::PropertyTableBase类参考

#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 ()

私有成员

PropertyTableBaseoperator= (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 prop_tbl_list_t::iterator details::PropertyTableBase::prop_tbl_list_iterator_t

每一个性质使用一个全局的 std::list 类型来存储及其遍历器类型


构造及析构函数文档

构造函数和析构函数使用私有保护,避免被直接使用

virtual details::PropertyTableBase::~PropertyTableBase ( ) [private, virtual]

成员函数文档

释放对象上的所有资源指针。

template<class T >
void details::PropertyTableBase::free_property ( const property_id_t< T > &  i) [inline]

释放对象上的资源指针

参数:
id资源 ID

确认有此性质

根据 id 号分配资源

template<class T >
T* details::PropertyTableBase::get_property ( const property_id_t< T > &  i) const [inline]

获取对象上的资源指针

参数:
id资源 ID
返回:
资源的指针
template<class T >
bool details::PropertyTableBase::has_property ( const property_id_t< T > &  i,
prop_iter_const_iter_t iter 
) const [inline, private]
template<class T >
bool details::PropertyTableBase::has_property ( const property_id_t< T > &  i,
prop_iter_iter_t iter 
) [inline, private]
template<class T >
bool details::PropertyTableBase::has_property ( const property_id_t< T > &  i) const [inline]

返回此对象是否具有该性质资源

参数:
i性质资源 ID
返回:
逻辑值
template<class T >
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]
template<class T >
void _free_property_id ( property_id_t< T > &  i) [friend]

释放一个资源 ID

参数:
id被释放的资源 ID

此资源已经释放过了

template<class T >
void _new_property_id ( property_id_t< T > &  i) [friend]

申请一个资源 ID

参数:
id申请到的资源 ID 会写在其中
返回:
是否申请到

搜索空闲 ID


成员数据文档

根据 id 号释放资源

本对象的性质在全局表中的位置

全局的性质表


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