Abstract base class for registered arrays. More...
#include <ogdf/basic/RegisteredArray.h>
Inheritance diagram for ogdf::internal::RegisteredArrayBase< Registry >:Public Member Functions | |
| RegisteredArrayBase ()=default | |
| Creates a registered array associated with no registry. | |
| RegisteredArrayBase (const RegisteredArrayBase< Registry > ©) | |
Creates a registered array associated with the same registry as copy. | |
| RegisteredArrayBase (RegisteredArrayBase< Registry > &&move_from) noexcept | |
Moves the registration of move_from to this registered array. | |
| virtual | ~RegisteredArrayBase () noexcept |
| Destructor. | |
| virtual void | copyEntry (int newIndex, int oldIndex)=0 |
Copies the entry stored at oldIndex to newIndex. | |
| RegisteredArrayBase & | operator= (const RegisteredArrayBase< Registry > ©) |
| Assignment operator. | |
| RegisteredArrayBase & | operator= (RegisteredArrayBase< Registry > &&move_from) noexcept |
| Assignment operator (move semantics). | |
| const Registry * | registeredAt () const |
| Returns a pointer to the associated registry. | |
| virtual void | resize (int size, bool shrink)=0 |
Resizes the registered array to size. The array will only shrink if shrink is true. | |
| virtual void | swapEntries (int index1, int index2)=0 |
Swaps the entries stored at index1 and index2. | |
| void | unregister () noexcept |
| Clears the array and associates it with no registry. | |
Protected Member Functions | |
| void | moveRegister (RegisteredArrayBase< Registry > &move_from) |
Moves array registration from move_from to this array. | |
| void | reregister (const Registry *registry) |
| Associates the array with a new registry. | |
Private Types | |
| using | registration_iterator_type = typename Registry::registration_iterator_type |
| using | registry_type = Registry |
Private Attributes | |
| const Registry * | m_pRegistry = nullptr |
| registration_iterator_type | m_registration |
Abstract base class for registered arrays.
Defines the interface for event handling used by the registry.
| Registry | The class which manages the registered keys. Must provide the functions defined in class RegistryBase. |
Definition at line 308 of file RegisteredArray.h.
|
private |
Definition at line 310 of file RegisteredArray.h.
|
private |
Definition at line 309 of file RegisteredArray.h.
|
default |
Creates a registered array associated with no registry.
|
inline |
Creates a registered array associated with the same registry as copy.
Definition at line 320 of file RegisteredArray.h.
|
inlinenoexcept |
Moves the registration of move_from to this registered array.
Definition at line 323 of file RegisteredArray.h.
|
inlinevirtualnoexcept |
Destructor.
Definition at line 340 of file RegisteredArray.h.
|
pure virtual |
Copies the entry stored at oldIndex to newIndex.
Implemented in ogdf::internal::RegisteredArrayWithoutDefaultOrIndexAccess< Registry, Value >.
|
inlineprotected |
Moves array registration from move_from to this array.
Definition at line 376 of file RegisteredArray.h.
|
inline |
Assignment operator.
Definition at line 328 of file RegisteredArray.h.
|
inlinenoexcept |
Assignment operator (move semantics).
Definition at line 334 of file RegisteredArray.h.
|
inline |
Returns a pointer to the associated registry.
Definition at line 391 of file RegisteredArray.h.
|
inlineprotected |
Associates the array with a new registry.
Definition at line 363 of file RegisteredArray.h.
|
pure virtual |
Resizes the registered array to size. The array will only shrink if shrink is true.
Implemented in ogdf::internal::RegisteredArrayWithoutDefaultOrIndexAccess< Registry, Value >.
|
pure virtual |
Swaps the entries stored at index1 and index2.
Implemented in ogdf::internal::RegisteredArrayWithoutDefaultOrIndexAccess< Registry, Value >.
|
inlinenoexcept |
Clears the array and associates it with no registry.
Definition at line 356 of file RegisteredArray.h.
|
private |
Definition at line 313 of file RegisteredArray.h.
|
private |
Definition at line 312 of file RegisteredArray.h.