cgma
TDVGFacetOwner Class Reference

#include <TDVGFacetOwner.hpp>

Inheritance diagram for TDVGFacetOwner:
ToolData

List of all members.

Public Member Functions

 TDVGFacetOwner (PartitionEntity *owner)
PartitionEntityowner () const

Static Public Member Functions

static int is_vg_facet_owner (const ToolData *td)
static PartitionEntityget (ToolDataUser *user)
static void set (ToolDataUser *user, PartitionEntity *owner)
static void remove (ToolDataUser *user)

Private Attributes

PartitionEntitymOwner

Detailed Description

Definition at line 9 of file TDVGFacetOwner.hpp.


Constructor & Destructor Documentation

Definition at line 14 of file TDVGFacetOwner.hpp.

      : mOwner( owner ) {}

Member Function Documentation

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); }

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 );
  }
}

Member Data Documentation

Definition at line 29 of file TDVGFacetOwner.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines