Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::LevelBase Class Referenceabstract

Representation of levels in hierarchies. More...

#include <ogdf/layered/CrossingMinInterfaces.h>

+ Inheritance diagram for ogdf::LevelBase:

Public Member Functions

virtual ~LevelBase ()
 
virtual int high () const =0
 Returns the maximal array index (= size()-1). More...
 
virtual const nodeoperator[] (int i) const =0
 Returns the node at position i. More...
 
virtual nodeoperator[] (int i)=0
 Returns the node at position i. More...
 
virtual int size () const =0
 Returns the number of nodes on this level. More...
 

Detailed Description

Representation of levels in hierarchies.

See also
Hierarchy, SugiyamaLayout

Definition at line 45 of file CrossingMinInterfaces.h.

Constructor & Destructor Documentation

◆ ~LevelBase()

virtual ogdf::LevelBase::~LevelBase ( )
inlinevirtual

Definition at line 48 of file CrossingMinInterfaces.h.

Member Function Documentation

◆ high()

virtual int ogdf::LevelBase::high ( ) const
pure virtual

Returns the maximal array index (= size()-1).

Implemented in ogdf::Level, and ogdf::ArrayLevel.

◆ operator[]() [1/2]

virtual const node& ogdf::LevelBase::operator[] ( int  i) const
pure virtual

Returns the node at position i.

Implemented in ogdf::Level, and ogdf::ArrayLevel.

◆ operator[]() [2/2]

virtual node& ogdf::LevelBase::operator[] ( int  i)
pure virtual

Returns the node at position i.

Implemented in ogdf::Level, and ogdf::ArrayLevel.

◆ size()

virtual int ogdf::LevelBase::size ( ) const
pure virtual

Returns the number of nodes on this level.

Implemented in ogdf::Level, and ogdf::ArrayLevel.


The documentation for this class was generated from the following file: