cgma
|
Public Member Functions | |
DLT_IdTable () | |
~DLT_IdTable () | |
int | find_id (TopologyEntity *ME_ptr) |
Private Attributes | |
TopologyEntity * | ME_ptrs_ [500] |
int | current_insert_pos |
Definition at line 687 of file DagDrawingTool.cpp.
DLT_IdTable::DLT_IdTable | ( | ) | [inline] |
Definition at line 690 of file DagDrawingTool.cpp.
{ current_insert_pos = 0; }
DLT_IdTable::~DLT_IdTable | ( | ) | [inline] |
Definition at line 691 of file DagDrawingTool.cpp.
{ }
int DLT_IdTable::find_id | ( | TopologyEntity * | ME_ptr | ) |
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; }
int DLT_IdTable::current_insert_pos [private] |
Definition at line 697 of file DagDrawingTool.cpp.
TopologyEntity* DLT_IdTable::ME_ptrs_[500] [private] |
Definition at line 696 of file DagDrawingTool.cpp.