Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::ArrayLevel Class Reference

The simple implementation of LevelBase interface. More...

#include <ogdf/layered/BlockOrder.h>

+ Inheritance diagram for ogdf::ArrayLevel:

Public Member Functions

 ArrayLevel (const Array< node > &nodes)
 
 ArrayLevel (unsigned int size)
 
int high () const override
 Returns the maximal array index (= size()-1). More...
 
const nodeoperator[] (int i) const override
 Returns the node at position i. More...
 
nodeoperator[] (int i) override
 Returns the node at position i. More...
 
int size () const override
 Returns the number of nodes on this level. More...
 
- Public Member Functions inherited from ogdf::LevelBase
virtual ~LevelBase ()
 

Private Attributes

Array< nodem_nodes
 

Detailed Description

The simple implementation of LevelBase interface.

Definition at line 44 of file BlockOrder.h.

Constructor & Destructor Documentation

◆ ArrayLevel() [1/2]

ogdf::ArrayLevel::ArrayLevel ( unsigned int  size)
inlineexplicit

Definition at line 49 of file BlockOrder.h.

◆ ArrayLevel() [2/2]

ogdf::ArrayLevel::ArrayLevel ( const Array< node > &  nodes)
inlineexplicit

Definition at line 51 of file BlockOrder.h.

Member Function Documentation

◆ high()

int ogdf::ArrayLevel::high ( ) const
inlineoverridevirtual

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

Implements ogdf::LevelBase.

Definition at line 59 of file BlockOrder.h.

◆ operator[]() [1/2]

const node& ogdf::ArrayLevel::operator[] ( int  i) const
inlineoverridevirtual

Returns the node at position i.

Implements ogdf::LevelBase.

Definition at line 53 of file BlockOrder.h.

◆ operator[]() [2/2]

node& ogdf::ArrayLevel::operator[] ( int  i)
inlineoverridevirtual

Returns the node at position i.

Implements ogdf::LevelBase.

Definition at line 55 of file BlockOrder.h.

◆ size()

int ogdf::ArrayLevel::size ( ) const
inlineoverridevirtual

Returns the number of nodes on this level.

Implements ogdf::LevelBase.

Definition at line 57 of file BlockOrder.h.

Member Data Documentation

◆ m_nodes

Array<node> ogdf::ArrayLevel::m_nodes
private

Definition at line 46 of file BlockOrder.h.


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