Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::internal::EdgeArrayBase1< Value, WithDefault > Class Template Reference

RegisteredArray for edges of a graph. More...

#include <ogdf/basic/Graph_d.h>

+ Inheritance diagram for ogdf::internal::EdgeArrayBase1< Value, WithDefault >:

Public Member Functions

Value & operator() (adjEntry adj)
 Returns a reference to the element associated with the edge corresponding to adj. More...
 
const Value & operator() (adjEntry adj) const
 Returns a const reference to the element associated with the edge corresponding to adj. More...
 
Value & operator[] (adjEntry adj)
 Returns a reference to the element associated with the edge corresponding to adj. More...
 
const Value & operator[] (adjEntry adj) const
 Returns a const reference to the element associated with the edge corresponding to adj. More...
 
- Public Member Functions inherited from ogdf::internal::GraphRegisteredArray< EdgeElement, Value, WithDefault >
GraphgraphOf () const
 Returns a pointer to the associated graph. More...
 
- Public Member Functions inherited from ogdf::RegisteredArray< GraphRegistry< EdgeElement >, Value, WithDefault, Graph >
 RegisteredArray ()
 Creates a new registered array associated with no registry. More...
 
 RegisteredArray (const Graph &base)
 Creates a new registered array associated with the matching registry of base. More...
 
 RegisteredArray (const Graph &base, const Value &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def. More...
 
 RegisteredArray (const Graph *base)
 Creates a new registered array associated with the matching registry of base. More...
 
 RegisteredArray (const Graph *base, const Value &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def. More...
 
void init (const Graph &base)
 Reinitializes the array. Associates the array with the matching registry of base. More...
 
void init (const Graph &base, const Value &new_default)
 Reinitializes the array with default value new_default. More...
 
void init (const Graph *base, const Value &new_default)
 
void init (const Graph *base=nullptr)
 Reinitializes the array. Associates the array with the matching registry of base. More...
 

Private Types

using GRA = GraphRegisteredArray< EdgeElement, Value, WithDefault >
 

Detailed Description

template<typename Value, bool WithDefault>
class ogdf::internal::EdgeArrayBase1< Value, WithDefault >

RegisteredArray for edges of a graph.

Definition at line 676 of file Graph_d.h.

Member Typedef Documentation

◆ GRA

template<typename Value , bool WithDefault>
using ogdf::internal::EdgeArrayBase1< Value, WithDefault >::GRA = GraphRegisteredArray<EdgeElement, Value, WithDefault>
private

Definition at line 677 of file Graph_d.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename Value , bool WithDefault>
Value& ogdf::internal::EdgeArrayBase1< Value, WithDefault >::operator() ( adjEntry  adj)
inline

Returns a reference to the element associated with the edge corresponding to adj.

Definition at line 707 of file Graph_d.h.

◆ operator()() [2/2]

template<typename Value , bool WithDefault>
const Value& ogdf::internal::EdgeArrayBase1< Value, WithDefault >::operator() ( adjEntry  adj) const
inline

Returns a const reference to the element associated with the edge corresponding to adj.

Definition at line 700 of file Graph_d.h.

◆ operator[]() [1/2]

template<typename Value , bool WithDefault>
Value& ogdf::internal::EdgeArrayBase1< Value, WithDefault >::operator[] ( adjEntry  adj)
inline

Returns a reference to the element associated with the edge corresponding to adj.

Definition at line 693 of file Graph_d.h.

◆ operator[]() [2/2]

template<typename Value , bool WithDefault>
const Value& ogdf::internal::EdgeArrayBase1< Value, WithDefault >::operator[] ( adjEntry  adj) const
inline

Returns a const reference to the element associated with the edge corresponding to adj.

Definition at line 686 of file Graph_d.h.


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