Registered arrays with default values.
More...
#include <ogdf/basic/RegisteredArray.h>
|
void | copyEntry (int toIndex, int fromIndex) override |
| Copies the entry stored at oldIndex to newIndex . More...
|
|
void | resize (int size, bool shrink) override |
|
template<class Registry, class Value>
class ogdf::internal::RegisteredArrayWithDefault< Registry, Value >
Registered arrays with default values.
Extends the functionality of RegisteredArrayWithoutDefault by adding the possibility to set a specific default value for new keys added to the registry.
- Precondition
- Type Value must be copy-constructible.
- Template Parameters
-
Registry | The class which manages the registered keys. Must provide the functions defined in class RegistryBase. |
Value | The type of the stored data. |
- See also
- RegistryBase, RegisteredArrayWithoutDefault, RegisteredArrayWithoutDefaultOrIndexAccess, RegisteredArray
Definition at line 638 of file RegisteredArray.h.
◆ RA
template<class Registry , class Value >
◆ RegisteredArrayWithDefault() [1/6]
template<class Registry , class Value >
Creates a new registered array associated with no registry and a default-constructed default value.
Definition at line 649 of file RegisteredArray.h.
◆ RegisteredArrayWithDefault() [2/6]
template<class Registry , class Value >
Creates a new registered array associated with registry
and a default-constructed default value.
Definition at line 652 of file RegisteredArray.h.
◆ RegisteredArrayWithDefault() [3/6]
template<class Registry , class Value >
Creates a new registered array associated with no registry and default value def
.
Definition at line 658 of file RegisteredArray.h.
◆ RegisteredArrayWithDefault() [4/6]
template<class Registry , class Value >
Creates a new registered array associated with registry
and default value def
.
Definition at line 661 of file RegisteredArray.h.
◆ RegisteredArrayWithDefault() [5/6]
template<class Registry , class Value >
Creates a new registered array associated with no registry and default value def
.
Definition at line 668 of file RegisteredArray.h.
◆ RegisteredArrayWithDefault() [6/6]
template<class Registry , class Value >
Creates a new registered array associated with registry
and default value def
.
Definition at line 671 of file RegisteredArray.h.
◆ copyEntry()
template<class Registry , class Value >
◆ fillWithDefault()
template<class Registry , class Value >
Overwrites all values with the current default value.
Definition at line 690 of file RegisteredArray.h.
◆ getDefault() [1/2]
template<class Registry , class Value >
◆ getDefault() [2/2]
template<class Registry , class Value >
◆ resize()
template<class Registry , class Value >
◆ setDefault() [1/2]
template<class Registry , class Value >
◆ setDefault() [2/2]
template<class Registry , class Value >
◆ m_default
template<class Registry , class Value >
The documentation for this class was generated from the following file: