Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::ClusterArrayBase< Value, WithDefault > Class Template Reference

RegisteredArray for labeling the clusters of a ClusterGraph. More...

#include <ogdf/cluster/ClusterGraph.h>

+ Inheritance diagram for ogdf::ClusterArrayBase< Value, WithDefault >:

Public Member Functions

 ClusterArrayBase ()=default
 Default Constructor.
 
 ClusterArrayBase (const ClusterGraph &C, const Value &def, int size)
 Creates a new cluster array with initial capacity size.
 
ClusterGraphgraphOf () const
 Returns a pointer to the associated cluster graph.
 
- Public Member Functions inherited from ogdf::RegisteredArray< ClusterGraph, Value, WithDefault >
 RegisteredArray ()
 Creates a new registered array associated with no registry.
 
 RegisteredArray (const ClusterGraph &base)
 Creates a new registered array associated with the matching registry of base.
 
 RegisteredArray (const ClusterGraph &base, const Value &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def.
 
 RegisteredArray (const ClusterGraph *base)
 Creates a new registered array associated with the matching registry of base.
 
 RegisteredArray (const ClusterGraph *base, const Value &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def.
 
void init (const ClusterGraph &base)
 Reinitializes the array. Associates the array with the matching registry of base.
 
void init (const ClusterGraph &base, const Value &new_default)
 Reinitializes the array with default value new_default.
 
void init (const ClusterGraph *base, const Value &new_default)
 
void init (const ClusterGraph *base=nullptr)
 Reinitializes the array. Associates the array with the matching registry of base.
 

Private Types

using RA = RegisteredArray< ClusterGraph, Value, WithDefault >
 

Detailed Description

template<class Value, bool WithDefault>
class ogdf::ClusterArrayBase< Value, WithDefault >

RegisteredArray for labeling the clusters of a ClusterGraph.

Definition at line 972 of file ClusterGraph.h.

Member Typedef Documentation

◆ RA

template<class Value , bool WithDefault>
using ogdf::ClusterArrayBase< Value, WithDefault >::RA = RegisteredArray<ClusterGraph, Value, WithDefault>
private

Definition at line 973 of file ClusterGraph.h.

Constructor & Destructor Documentation

◆ ClusterArrayBase() [1/2]

template<class Value , bool WithDefault>
ogdf::ClusterArrayBase< Value, WithDefault >::ClusterArrayBase ( )
default

Default Constructor.

◆ ClusterArrayBase() [2/2]

template<class Value , bool WithDefault>
ogdf::ClusterArrayBase< Value, WithDefault >::ClusterArrayBase ( const ClusterGraph C,
const Value &  def,
int  size 
)
inline

Creates a new cluster array with initial capacity size.

Definition at line 982 of file ClusterGraph.h.

Member Function Documentation

◆ graphOf()

template<class Value , bool WithDefault>
ClusterGraph * ogdf::ClusterArrayBase< Value, WithDefault >::graphOf ( ) const
inline

Returns a pointer to the associated cluster graph.

Definition at line 987 of file ClusterGraph.h.


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