cgma
DagNodeTable Class Reference

#include <DagDrawingTool.hpp>

List of all members.

Public Member Functions

 DagNodeTable (int num_rows)
 ~DagNodeTable ()
int rows () const
DagNodeRowoperator[] (int row)

Protected Attributes

DagNodeRow ** array_
int length_

Detailed Description

Definition at line 40 of file DagDrawingTool.hpp.


Constructor & Destructor Documentation

DagNodeTable::DagNodeTable ( int  num_rows)

Definition at line 659 of file DagDrawingTool.cpp.

{
    if( array_ )
    {
        for( int i = 0; i < length_; i++ )
        {
            if( array_[i] ) 
            {
                delete array_[i];
                array_[i] = 0;
            }
        }
        delete [] array_;
    }
    array_ = 0;
    length_ = 0;
}

Member Function Documentation

DagNodeRow & DagNodeTable::operator[] ( int  row)

Definition at line 677 of file DagDrawingTool.cpp.

{
    assert( (row >= 0) && (row < length_) && array_[row] );
    return *(array_[row]);
}
int DagNodeTable::rows ( ) const [inline]

Definition at line 47 of file DagDrawingTool.hpp.

{ return length_; }

Member Data Documentation

Definition at line 52 of file DagDrawingTool.hpp.

int DagNodeTable::length_ [protected]

Definition at line 53 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