AFEPack
公有成员 | 私有类型 | 私有属性
PropertyTable类参考

#include <PropertyTable.h>

类PropertyTable继承关系图:
HGeometryBase HElement< DIM, DOW > HGeometry< DIM, DOW > HGeometry< 0, DOW > HGeometry< 1, DOW > HGeometry< 2, DOW > HGeometry< 3, DOW >

所有成员的列表。

公有成员

PropertyTableoperator= (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 修饰符修饰的对象也 能获得可写的性质表。


成员类型定义文档


构造及析构函数文档

构造函数和析构函数

PropertyTable::PropertyTable ( const PropertyTable ptp) [inline]

注意:拷贝构造函数实际上不做任何拷贝!


成员函数文档

void PropertyTable::clear_property ( ) [inline]
template<class T >
void PropertyTable::free_property ( const property_id_t< T > &  id) const [inline]

释放对象上的资源指针

参数:
id资源 ID
template<class T >
T* PropertyTable::get_property ( const property_id_t< T > &  id) const [inline]

获取对象上的资源指针

参数:
id资源 ID
返回:
资源的指针
template<class T >
bool PropertyTable::has_property ( const property_id_t< T > &  id) const [inline]

检查对象上的资源空间

参数:
id资源 ID
返回:
是否有相应的资源
template<class T >
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]

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