AFEPack
公有类型 | 公有�员 | �有�员 | �有属性
MPI::MemoryReclaimer< HFOREST >模�类�考

#include <MPI_MemoryReclaimer.h>

继承图,类MPI::MemoryReclaimer< HFOREST >
MemoryReclaimer< HFOREST::dim, HFOREST::dow >

所有�员的列表。

公有类型

enum  { dim = HFOREST::dim, dow = HFOREST::dow }
enum  { dim = HFOREST::dim, dow = HFOREST::dow }
typedef HFOREST forest_t
typedef ::MemoryReclaimer< dim,
dow > 
base_t
typedef FOREST tree_t
typedef BirdView< tree_t > ir_mesh_t

公有�员

 MemoryReclaimer ()
 MemoryReclaimer (forest_t &tree)
virtual ~MemoryReclaimer ()
 MemoryReclaimer ()
 MemoryReclaimer (tree_t &_h_tree)
virtual ~MemoryReclaimer ()
void setGeometryTree (tree_t &_h_tree)
void addIrregularMesh (ir_mesh_t &_ir_mesh)
void clear ()
void reclaim ()

�有�员

template<int D>
void reclaimHGeometry (HGeometry< D, dow > *p_geo) const
virtual void reclaimHGeometry (void *p_geo, int D) const
void reclaimIrregularMesh (ir_mesh_t &m)
void initialTreeLabel ()
void labelIrregularMesh (ir_mesh_t &m)
void reclaimTreeMemory ()
template<class GEO >
bool is_shared_geometry (const GEO &g) const
template<int D>
void labelHGeometry (HGeometry< D, dow > &g, int lab) const
template<int D>
void labelHGeometryRecursively (HGeometry< D, dow > &g, int lab) const
template<int D>
int relabelHGeometryRecursively (HGeometry< D, dow > &g) const
template<int D>
int reclaimHGeometryRecursively (HGeometry< D, dow > &g) const
template<int D>
void reclaimHGeometry (HGeometry< D, dow > *p_geo) const

�有属性

tree_t * h_tree
std::list< ir_mesh_t * > ir_mesh

template<class HFOREST>
class MPI::MemoryReclaimer< HFOREST >


�员类型定义文档

template<class HFOREST >
typedef ::MemoryReclaimer<dim,dow> MPI::MemoryReclaimer< HFOREST >::base_t
template<class HFOREST >
typedef HFOREST MPI::MemoryReclaimer< HFOREST >::forest_t
template<class HFOREST >
typedef BirdView<tree_t> MPI::MemoryReclaimer< HFOREST >::ir_mesh_t
template<class HFOREST >
typedef FOREST MPI::MemoryReclaimer< HFOREST >::tree_t

�员枚举类型文档

template<class HFOREST >
anonymous enum
枚举值:
dim 
dow 
template<class HFOREST >
anonymous enum
枚举值:
dim 
dow 

构造��构函数文档

template<class HFOREST >
MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer ( ) [inline]
template<class HFOREST >
MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer ( forest_t &  tree) [inline]
template<class HFOREST >
virtual MPI::MemoryReclaimer< HFOREST >::~MemoryReclaimer ( ) [inline, virtual]
template<class HFOREST >
MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer ( ) [inline]
template<class HFOREST >
MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer ( tree_t &  _h_tree) [inline]
template<class HFOREST >
virtual MPI::MemoryReclaimer< HFOREST >::~MemoryReclaimer ( ) [inline, virtual]

�员函数文档

template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::addIrregularMesh ( ir_mesh_t &  _ir_mesh) [inline]

¼Ó½øÒ»¸ö²Î¼Ó²Ù×÷µÄIrregularMesh¡£

template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::clear ( ) [inline]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::initialTreeLabel ( ) [inline, private]
template<class HFOREST >
template<class GEO >
bool MPI::MemoryReclaimer< HFOREST >::is_shared_geometry ( const GEO &  g) const [inline, private]
template<class HFOREST >
template<int D>
void MPI::MemoryReclaimer< HFOREST >::labelHGeometry ( HGeometry< D, dow > &  g,
int  lab 
) const [inline, private]
template<class HFOREST >
template<int D>
void MPI::MemoryReclaimer< HFOREST >::labelHGeometryRecursively ( HGeometry< D, dow > &  g,
int  lab 
) const [inline, private]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::labelIrregularMesh ( ir_mesh_t &  m) [inline, private]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::reclaim ( ) [inline]

HGeometryTreeÖмäµÄËùÓм¸ºÎÌåÏ໥Ë÷Òý£¬³ÉΪһ¸ö·Ç³£¸´ÔÓµÄÍøÂç½á¹¹¡£ ΪÁË»ØÊÕÄڴ棬ÎÒÃÇʹÓÃÏÂÃæµÄ²½ÖèÀ´ÊµÏÖ£º

1. ¶Ôÿ¸öIrregularMeshÖв»ÓõÄÄÚ´æ½øÐлØÊÕ¡£Õâ¸ö²Ù×÷ÊǷdz£¼òµ¥µÄ£¬ ÒòΪÎÒÃÇÖ»ÐèÒª°Ñÿ¸öÒ¶×Ó½ÚµãµÄ×ÓÊ÷ͨͨɾ³ý¾Í¹»ÁË£¬ÊµÏÖÔÚº¯Êý reclaimIrregularMeshÕâ¸öº¯ÊýÖС£

2. ½«Õû¸öHGeometryTreeÖеÄËùÓм¸ºÎÌåʹÓÃindex=-1×ö±êʶ£¬Õâ¸ö²Ù×÷ÔÚ initialTreeLabelÖнøÐС£

3. ½«ËùÓеÄIrregularMeshÖÐË÷Òý¹ýµÄµ¥ÔªÓõ½µÄ¼¸ºÎÌå¶¼ÖØÐ±êʶΪ1£¬ Õâ¸ö²Ù×÷ÔÚ labelIrregularMesh ÖÐ×öµ½¡£

4. ÔÚÕû¸öHGeometryTreeÖеļ¸ºÎÌå½øÐбéÀú£ºÈç¹ûÒ»¸ö¼¸ºÎÌåµÄ±êʶΪ-1£¬ Ôò¸Ã¼¸ºÎÌåÓ¦¸Ã±»É¾³ý¡£ÔÚÕâ¸ö¼¸ºÎÌåµÚÒ»´Î±»Ë÷Òýµ½µÄʱºò£¬ÎÒÃǾͽ« Æä±êʶÐÞ¸ÄΪ-2£¬²¢·µ»Ø-1±íʾÊǵÚÒ»´ÎË÷Òýµ½Ëü¡£Èç¹û±êʶΪ1£¬ÄÇô Õâ¸ö¼¸ºÎÌåÕýÔÚ±»Ä³¸öIrregularMeshʹÓã¬ÎÒÃDz»×öʲô¡£Èç¹ûÒ»¸ö¼¸ ºÎÌå±êʶΪ-2£¬ÄÇôÕâ¸ö¼¸ºÎÌåÒѾ­ÊÇÖÁÉÙµÚ¶þ´Î±»Ë÷Òýµ½ÁË£¬ÄÇô¾ÍÇÐ ¶Ï¶ÔÆä½øÐÐÕâ´ÎË÷ÒýµÄÁªÏµ£¬½«¶ÔÆä½øÐÐË÷ÒýµÄÄǸöÖ¸ÕëÉèΪ NULL¡£¾­ ¹ýÕâ¸ö²Ù×÷£¬HGeometryTreeÖÐÔ­±¾ÊǸöÍø×´½á¹¹µÄÊý¾Ý£¬ÄǸöÐèÒª±»É¾ ³ýµÄ²¿·Ö£¬ÒѾ­±»²ð³ÉΪÁËÊ÷×´½á¹¹£»

5. ÔÚÕû¸öHGeometryTreeÖеļ¸ºÎÌå½øÐбéÀú£¬Èç¹ûÒ»¸ö¼¸ºÎÌåµÄ±êʶΪ-2£¬ ÎÒÃǾͽ«Æäɾ³ý¡£4ºÍ5Á½²½¶¼ÊÇÔÚ reclaimTreeMemory ÖÐʵÏֵģ»

ÏȶԸ÷¸öIrregularMeshµÄ²»Ê¹ÓÃÄÚ´æ½øÐлØÊÕ

½«ËùÓÐ×é¼þ±ê־Ϊ -1

¶ÔʹÓÃÖеÄ×é¼þ±êʶΪ 1

¶ÔÄÚ´æ½øÐлØÊÕ

�载MemoryReclaimer< HFOREST::dim, HFOREST::dow >。

template<class HFOREST >
virtual void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry ( void *  p_geo,
int  D 
) const [inline, private, virtual]
template<class HFOREST >
template<int D>
void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry ( HGeometry< D, dow > *  p_geo) const [inline, private]
template<class HFOREST >
template<int D>
void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry ( HGeometry< D, dow > *  p_geo) const [inline, private]
template<class HFOREST >
template<int D>
int MPI::MemoryReclaimer< HFOREST >::reclaimHGeometryRecursively ( HGeometry< D, dow > &  g) const [inline, private]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::reclaimIrregularMesh ( ir_mesh_t &  m) [inline, private]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::reclaimTreeMemory ( ) [inline, private]
template<class HFOREST >
template<int D>
int MPI::MemoryReclaimer< HFOREST >::relabelHGeometryRecursively ( HGeometry< D, dow > &  g) const [inline, private]
template<class HFOREST >
void MPI::MemoryReclaimer< HFOREST >::setGeometryTree ( tree_t &  _h_tree) [inline]

ÉèÖýøÐÐÄÚ´æ»ØÊÕ²Ù×÷µÄHGeometryTree¡£


�员数�文档

template<class HFOREST >
tree_t* MPI::MemoryReclaimer< HFOREST >::h_tree [private]
template<class HFOREST >
std::list<ir_mesh_t *> MPI::MemoryReclaimer< HFOREST >::ir_mesh [private]

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