MOAB: Mesh Oriented datABase
(version 5.3.1)
|
#include <ExtraDataUser.hpp>
Public Member Functions | |
ExtraUserData (PatchData &patch, ExtraDataUser< T > *owner, ExtraUserData< T > *next, const T &data) | |
ExtraUserData (PatchData &patch, ExtraDataUser< T > *owner, ExtraUserData< T > *next) | |
virtual void | notify_patch_destroyed () |
Notify that the owning PatchData is being destroyed. | |
virtual void | notify_new_patch () |
Notify that the patch (mesh) in the PatchData is changing. | |
virtual void | notify_sub_patch (PatchData &sub_patch, const size_t *vtx_index_map, const size_t *elm_index_map, MsqError &err) |
Nofity that a subpatch is being created from this patch. | |
Public Attributes | |
ExtraDataUser< T > * | dataOwner |
ExtraUserData< T > * | userNext |
T | userData |
Definition at line 90 of file ExtraDataUser.hpp.
MBMesquite::ExtraUserData< T >::ExtraUserData | ( | PatchData & | patch, |
ExtraDataUser< T > * | owner, | ||
ExtraUserData< T > * | next, | ||
const T & | data | ||
) | [inline] |
MBMesquite::ExtraUserData< T >::ExtraUserData | ( | PatchData & | patch, |
ExtraDataUser< T > * | owner, | ||
ExtraUserData< T > * | next | ||
) | [inline] |
Definition at line 102 of file ExtraDataUser.hpp.
void MBMesquite::ExtraUserData< T >::notify_new_patch | ( | ) | [virtual] |
Notify that the patch (mesh) in the PatchData is changing.
Notify attached ExtraData that the PatchData is being changed to contain an new patch (set of mesh entities.)
Implements MBMesquite::ExtraData.
Definition at line 122 of file ExtraDataUser.hpp.
{ dataOwner->notify_new_patch( *get_patch_data(), userData ); }
void MBMesquite::ExtraUserData< T >::notify_patch_destroyed | ( | ) | [virtual] |
Notify that the owning PatchData is being destroyed.
Notify an ExtraData object that the patch it is attached to is being destroyed. The ExtraData will have been removed from the PatchData before being notified. Therefore this->get_patch_data() will return NULL.
ExtraData instances will also be notified via this method and removed and removed from the PatchData if the attached MBMesquite::Mesh or MBMesquite::MeshDomain instance is changed.
Implements MBMesquite::ExtraData.
Definition at line 116 of file ExtraDataUser.hpp.
{ dataOwner->notify_patch_destroyed( this ); }
void MBMesquite::ExtraUserData< T >::notify_sub_patch | ( | PatchData & | sub_patch, |
const size_t * | vertex_index_map, | ||
const size_t * | element_index_map, | ||
MsqError & | err | ||
) | [virtual] |
Nofity that a subpatch is being created from this patch.
sub_patch | The new, populated subpatch |
vertex_index_map | The indices in the original patch for each vertex in the subpatch. |
element_index_map | The indices in the original patch for each element in the subpatch. |
Implements MBMesquite::ExtraData.
Definition at line 128 of file ExtraDataUser.hpp.
{ dataOwner->notify_sub_patch( *get_patch_data(), userData, sub, vertex_map, element_map, err ); }
ExtraDataUser< T >* MBMesquite::ExtraUserData< T >::dataOwner |
Definition at line 93 of file ExtraDataUser.hpp.
T MBMesquite::ExtraUserData< T >::userData |
Definition at line 95 of file ExtraDataUser.hpp.
Referenced by MBMesquite::ExtraDataUser< T >::notify_patch_destroyed().
ExtraUserData< T >* MBMesquite::ExtraUserData< T >::userNext |
Definition at line 94 of file ExtraDataUser.hpp.
Referenced by MBMesquite::ExtraDataUser< T >::get_data_ptr(), and MBMesquite::ExtraDataUser< T >::notify_patch_destroyed().