cgma
DLT_IdTable Class Reference

List of all members.

Public Member Functions

 DLT_IdTable ()
 ~DLT_IdTable ()
int find_id (TopologyEntity *ME_ptr)

Private Attributes

TopologyEntityME_ptrs_ [500]
int current_insert_pos

Detailed Description

Definition at line 687 of file DagDrawingTool.cpp.


Constructor & Destructor Documentation

Definition at line 690 of file DagDrawingTool.cpp.

Definition at line 691 of file DagDrawingTool.cpp.

{ }

Member Function Documentation

Definition at line 784 of file DagDrawingTool.cpp.

{
  ME_ptr = CAST_TO( ME_ptr, TopologyEntity );
  if( ME_ptr == NULL ) return -1;
  
  for( int i = 0; i < current_insert_pos; i++ )
  {
    if( ME_ptrs_[i] == ME_ptr ) return i + 1;
  }
  if( current_insert_pos == 500 ) return -1;
  ME_ptrs_[ current_insert_pos ] = ME_ptr;
  current_insert_pos++;
  return current_insert_pos;
}

Member Data Documentation

Definition at line 697 of file DagDrawingTool.cpp.

Definition at line 696 of file DagDrawingTool.cpp.


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