AFEPack
|
#include <PropertyTable.h>
公有成员 | |
PropertyTable & | operator= (const PropertyTable &ptp) |
注意:拷贝算子啥都不做的! | |
template<class T > | |
bool | has_property (const property_id_t< T > &id) const |
template<class T > | |
T * | new_property (const property_id_t< T > &id) const |
template<class T > | |
T * | get_property (const property_id_t< T > &id) const |
template<class T > | |
void | free_property (const property_id_t< T > &id) const |
void | clear_property () |
PropertyTable () | |
构造函数和析构函数 | |
PropertyTable (const PropertyTable &ptp) | |
注意:拷贝构造函数实际上不做任何拷贝! | |
~PropertyTable () | |
私有类型 | |
typedef details::PropertyTableBase | Base |
私有属性 | |
void * | p_tbl |
本类用来将性质表始终做成可写的。对于几何体这样的对象来说,如果直接从 性质表派生,则当我们得到一个有 const 修饰符这样的对象的时候,就不能改 变其性质表,我们通过本类来做一个包装,使得被 const 修饰符修饰的对象也 能获得可写的性质表。
typedef details::PropertyTableBase PropertyTable::Base [private] |
PropertyTable::PropertyTable | ( | ) | [inline] |
构造函数和析构函数
PropertyTable::PropertyTable | ( | const PropertyTable & | ptp | ) | [inline] |
注意:拷贝构造函数实际上不做任何拷贝!
PropertyTable::~PropertyTable | ( | ) | [inline] |
void PropertyTable::clear_property | ( | ) | [inline] |
void PropertyTable::free_property | ( | const property_id_t< T > & | id | ) | const [inline] |
释放对象上的资源指针
id | 资源 ID |
T* PropertyTable::get_property | ( | const property_id_t< T > & | id | ) | const [inline] |
获取对象上的资源指针
id | 资源 ID |
bool PropertyTable::has_property | ( | const property_id_t< T > & | id | ) | const [inline] |
检查对象上的资源空间
id | 资源 ID |
T* PropertyTable::new_property | ( | const property_id_t< T > & | id | ) | const [inline] |
分配对象上的资源空间
id | 资源 ID |
PropertyTable& PropertyTable::operator= | ( | const PropertyTable & | ptp | ) | [inline] |
注意:拷贝算子啥都不做的!
void* PropertyTable::p_tbl [private] |