cgma
Chain Class Reference

#include <Chain.hpp>

Inheritance diagram for Chain:
GroupingEntity TopologyEntity

List of all members.

Public Member Functions

 Chain ()
virtual ~Chain ()
DagType dag_type () const
RefVertexstart_vertex ()
RefVertexend_vertex ()
CoVertexstart_co_vertex ()
CoVertexend_co_vertex ()

Private Member Functions

 Chain (const Chain &)
void operator= (const Chain &)

Detailed Description

Definition at line 32 of file Chain.hpp.


Constructor & Destructor Documentation

Definition at line 63 of file Chain.cpp.

{
}
Chain::~Chain ( ) [virtual]

Definition at line 76 of file Chain.cpp.

{
}
Chain::Chain ( const Chain ) [private]

Member Function Documentation

DagType Chain::dag_type ( ) const [inline, virtual]

Implements TopologyEntity.

Definition at line 42 of file Chain.hpp.

{ return DagType::chain_type(); }

Definition at line 131 of file Chain.cpp.

{
    // Get last CoVertex in chain
  SenseEntity* se_ptr = get_last_sense_entity_ptr();
  return static_cast<CoVertex*>(se_ptr);
}

Definition at line 102 of file Chain.cpp.

{
    // Get last CoVertex in chain
  SenseEntity* se_ptr = get_last_sense_entity_ptr();
  if (!se_ptr)
    return 0;
  
    // Get RefVertex from CoVertex
  BasicTopologyEntity* bte_ptr = se_ptr->get_basic_topology_entity_ptr();
  return static_cast<RefVertex*>(bte_ptr);
}
void Chain::operator= ( const Chain ) [private]

Definition at line 124 of file Chain.cpp.

{
    // Get first CoVertex in chain
  SenseEntity* se_ptr = get_first_sense_entity_ptr();
  return static_cast<CoVertex*>(se_ptr);
}

Definition at line 90 of file Chain.cpp.

{
    // Get first CoVertex in chain
  SenseEntity* se_ptr = get_first_sense_entity_ptr();
  if (!se_ptr)
    return 0;
  
    // Get RefVertex from CoVertex
  BasicTopologyEntity* bte_ptr = se_ptr->get_basic_topology_entity_ptr();
  return static_cast<RefVertex*>(bte_ptr);
}

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