|
cgma
|
#include <TDVGFacetOwner.hpp>
Public Member Functions | |
| TDVGFacetOwner (PartitionEntity *owner) | |
| PartitionEntity * | owner () const |
Static Public Member Functions | |
| static int | is_vg_facet_owner (const ToolData *td) |
| static PartitionEntity * | get (ToolDataUser *user) |
| static void | set (ToolDataUser *user, PartitionEntity *owner) |
| static void | remove (ToolDataUser *user) |
Private Attributes | |
| PartitionEntity * | mOwner |
Definition at line 9 of file TDVGFacetOwner.hpp.
| TDVGFacetOwner::TDVGFacetOwner | ( | PartitionEntity * | owner | ) | [inline] |
Definition at line 14 of file TDVGFacetOwner.hpp.
: mOwner( owner ) {}
| PartitionEntity * TDVGFacetOwner::get | ( | ToolDataUser * | user | ) | [static] |
Definition at line 4 of file TDVGFacetOwner.cpp.
{
ToolData* td = user->get_TD( &is_vg_facet_owner );
return td ? dynamic_cast<TDVGFacetOwner*>(td)->owner() : 0;
}
| static int TDVGFacetOwner::is_vg_facet_owner | ( | const ToolData * | td | ) | [inline, static] |
Definition at line 17 of file TDVGFacetOwner.hpp.
{ return !! dynamic_cast<const TDVGFacetOwner*>(td); }
| PartitionEntity* TDVGFacetOwner::owner | ( | ) | const [inline] |
Definition at line 20 of file TDVGFacetOwner.hpp.
{ return mOwner; }
| void TDVGFacetOwner::remove | ( | ToolDataUser * | user | ) | [static] |
Definition at line 24 of file TDVGFacetOwner.cpp.
{
delete user->remove_TD( &is_vg_facet_owner );
}
| void TDVGFacetOwner::set | ( | ToolDataUser * | user, |
| PartitionEntity * | owner | ||
| ) | [static] |
Definition at line 10 of file TDVGFacetOwner.cpp.
{
ToolData* td = user->get_TD( &is_vg_facet_owner );
if( td )
{
dynamic_cast<TDVGFacetOwner*>(td)->mOwner = owner;
}
else
{
td = new TDVGFacetOwner( owner );
user->add_TD( td );
}
}
PartitionEntity* TDVGFacetOwner::mOwner [private] |
Definition at line 29 of file TDVGFacetOwner.hpp.