cgma
DagNodeRow Class Reference

#include <DagDrawingTool.hpp>

List of all members.

Public Member Functions

 DagNodeRow (DLIList< TopologyEntity * > &node_list)
 ~DagNodeRow ()
int length () const
TopologyEntity *& operator[] (int index)

Protected Attributes

TopologyEntity ** array_
int length_

Detailed Description

Definition at line 25 of file DagDrawingTool.hpp.


Constructor & Destructor Documentation

Definition at line 629 of file DagDrawingTool.cpp.

{
    length_ = node_list.size();
    array_ = 0;
    if( length_ > 0 )
    {
        array_ = new TopologyEntity*[length_];
        node_list.reset();
        for( int i = 0; i < length_; i++ )
            array_[i] = node_list.get_and_step();
    }
}

Definition at line 642 of file DagDrawingTool.cpp.

{
    if( array_ ) delete [] array_;
    array_ = 0;
    length_ = 0;
}

Member Function Documentation

int DagNodeRow::length ( ) const [inline]

Definition at line 32 of file DagDrawingTool.hpp.

{ return length_; }
TopologyEntity *& DagNodeRow::operator[] ( int  index)

Definition at line 649 of file DagDrawingTool.cpp.

{
    assert( (index >= 0) && (index < length_) );
    return array_[index];
}

Member Data Documentation

Definition at line 36 of file DagDrawingTool.hpp.

int DagNodeRow::length_ [protected]

Definition at line 37 of file DagDrawingTool.hpp.


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