Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::RegisteredArray< Registry, bool, WithDefault, Base > Class Template Reference

Specialization to work around vector<bool>. More...

#include <ogdf/basic/RegisteredArray.h>

+ Inheritance diagram for ogdf::RegisteredArray< Registry, bool, WithDefault, Base >:

Public Types

using const_iterator = RegisteredArrayIterator< BRA, typename RA::key_iterator, true >
 
using iterator = RegisteredArrayIterator< BRA, typename RA::key_iterator, false >
 
using key_type = typename RA::key_type
 
using value_const_ref_type = const bool &
 
using value_ref_type = bool &
 
using value_type = bool
 

Public Member Functions

iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
iterator end ()
 
const_iterator end () const
 
value_ref_type getDefault ()
 
value_const_ref_type getDefault () const
 
value_ref_type operator() (key_type key)
 
value_const_ref_type operator() (key_type key) const
 
value_ref_type operator[] (int idx)
 
value_const_ref_type operator[] (int idx) const
 
value_ref_type operator[] (key_type key)
 
value_const_ref_type operator[] (key_type key) const
 
- Public Member Functions inherited from ogdf::RegisteredArray< Registry, unsigned char, WithDefault, Base >
 RegisteredArray ()
 Creates a new registered array associated with no registry. More...
 
 RegisteredArray (const Base &base)
 Creates a new registered array associated with the matching registry of base. More...
 
 RegisteredArray (const Base &base, const unsigned char &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def. More...
 
 RegisteredArray (const Base *base)
 Creates a new registered array associated with the matching registry of base. More...
 
 RegisteredArray (const Base *base, const unsigned char &def)
 Creates a new registered array associated with the matching registry of base and initializes all values with def. More...
 
void init (const Base &base)
 Reinitializes the array. Associates the array with the matching registry of base. More...
 
void init (const Base &base, const unsigned char &new_default)
 Reinitializes the array with default value new_default. More...
 
void init (const Base *base, const unsigned char &new_default)
 
void init (const Base *base=nullptr)
 Reinitializes the array. Associates the array with the matching registry of base. More...
 

Private Types

using BRA = RegisteredArray< Registry, bool, WithDefault, Base >
 
using RA = RegisteredArray< Registry, unsigned char, WithDefault, Base >
 

Detailed Description

template<class Registry, bool WithDefault, class Base>
class ogdf::RegisteredArray< Registry, bool, WithDefault, Base >

Specialization to work around vector<bool>.

Definition at line 881 of file RegisteredArray.h.

Member Typedef Documentation

◆ BRA

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::BRA = RegisteredArray<Registry, bool, WithDefault, Base>
private

Definition at line 884 of file RegisteredArray.h.

◆ const_iterator

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::const_iterator = RegisteredArrayIterator<BRA, typename RA::key_iterator, true>

Definition at line 894 of file RegisteredArray.h.

◆ iterator

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::iterator = RegisteredArrayIterator<BRA, typename RA::key_iterator, false>

Definition at line 893 of file RegisteredArray.h.

◆ key_type

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::key_type = typename RA::key_type

Definition at line 889 of file RegisteredArray.h.

◆ RA

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::RA = RegisteredArray<Registry, unsigned char, WithDefault, Base>
private

Definition at line 883 of file RegisteredArray.h.

◆ value_const_ref_type

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::value_const_ref_type = const bool&

Definition at line 891 of file RegisteredArray.h.

◆ value_ref_type

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::value_ref_type = bool&

Definition at line 892 of file RegisteredArray.h.

◆ value_type

template<class Registry , bool WithDefault, class Base >
using ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::value_type = bool

Definition at line 890 of file RegisteredArray.h.

Member Function Documentation

◆ begin() [1/2]

template<class Registry , bool WithDefault, class Base >
iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::begin ( )
inline

Definition at line 926 of file RegisteredArray.h.

◆ begin() [2/2]

template<class Registry , bool WithDefault, class Base >
const_iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::begin ( ) const
inline

Definition at line 931 of file RegisteredArray.h.

◆ cbegin()

template<class Registry , bool WithDefault, class Base >
const_iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::cbegin ( ) const
inline

Definition at line 936 of file RegisteredArray.h.

◆ cend()

template<class Registry , bool WithDefault, class Base >
const_iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::cend ( ) const
inline

Definition at line 951 of file RegisteredArray.h.

◆ end() [1/2]

template<class Registry , bool WithDefault, class Base >
iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::end ( )
inline

Definition at line 941 of file RegisteredArray.h.

◆ end() [2/2]

template<class Registry , bool WithDefault, class Base >
const_iterator ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::end ( ) const
inline

Definition at line 946 of file RegisteredArray.h.

◆ getDefault() [1/2]

template<class Registry , bool WithDefault, class Base >
value_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::getDefault ( )
inline

Definition at line 920 of file RegisteredArray.h.

◆ getDefault() [2/2]

template<class Registry , bool WithDefault, class Base >
value_const_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::getDefault ( ) const
inline

Definition at line 922 of file RegisteredArray.h.

◆ operator()() [1/2]

template<class Registry , bool WithDefault, class Base >
value_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator() ( key_type  key)
inline

Definition at line 908 of file RegisteredArray.h.

◆ operator()() [2/2]

template<class Registry , bool WithDefault, class Base >
value_const_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator() ( key_type  key) const
inline

Definition at line 904 of file RegisteredArray.h.

◆ operator[]() [1/4]

template<class Registry , bool WithDefault, class Base >
value_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator[] ( int  idx)
inline

Definition at line 916 of file RegisteredArray.h.

◆ operator[]() [2/4]

template<class Registry , bool WithDefault, class Base >
value_const_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator[] ( int  idx) const
inline

Definition at line 912 of file RegisteredArray.h.

◆ operator[]() [3/4]

template<class Registry , bool WithDefault, class Base >
value_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator[] ( key_type  key)
inline

Definition at line 900 of file RegisteredArray.h.

◆ operator[]() [4/4]

template<class Registry , bool WithDefault, class Base >
value_const_ref_type ogdf::RegisteredArray< Registry, bool, WithDefault, Base >::operator[] ( key_type  key) const
inline

Definition at line 896 of file RegisteredArray.h.


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