Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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).
 
virtual const nodeoperator[] (int i) const =0
 Returns the node at position i.
 
virtual nodeoperator[] (int i)=0
 Returns the node at position i.
 
virtual int size () const =0
 Returns the number of nodes on this level.
 

Detailed Description

Representation of levels in hierarchies.

See also
Hierarchy, SugiyamaLayout

Definition at line 43 of file CrossingMinInterfaces.h.

Constructor & Destructor Documentation

◆ ~LevelBase()

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

Definition at line 46 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::ArrayLevel, and ogdf::Level.

◆ operator[]() [1/2]

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

Returns the node at position i.

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

◆ operator[]() [2/2]

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

Returns the node at position i.

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

◆ size()

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

Returns the number of nodes on this level.

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


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