This class provides a no-op callbacks interface for the ArrayManipulation sorted routines.
More...
#include <sortedArrayManipulation.hpp>
|
T * | incrementSize (T *const curPtr, std::ptrdiff_t const nToAdd) |
| Callback signaling that the size of the array has increased. More...
|
|
void | insert (std::ptrdiff_t const pos) |
| Callback signaling that a value was inserted at the given position. More...
|
|
void | set (std::ptrdiff_t const pos, std::ptrdiff_t const valuePos) |
| Callback signaling that the entry of the array at the first position was set to the value at the second position. More...
|
|
void | insert (std::ptrdiff_t const nLeftToInsert, std::ptrdiff_t const valuePos, std::ptrdiff_t const pos, std::ptrdiff_t const prevPos) |
| Callback signaling that the that the given value was inserted at the given position. Further information is provided in order to make the insertion efficient. More...
|
|
void | remove (std::ptrdiff_t const pos) |
| Callback signaling that an entry was removed from the array at given position. More...
|
|
void | remove (std::ptrdiff_t const nRemoved, std::ptrdiff_t const curPos, std::ptrdiff_t const nextPos) |
| Callback signaling that the given entry was removed from the given position. Further information is provided in order to make the removal efficient. More...
|
|
template<typename T>
class LvArray::sortedArrayManipulation::CallBacks< T >
This class provides a no-op callbacks interface for the ArrayManipulation sorted routines.
- Template Parameters
-
T | The type of the values contained in the array. |
Definition at line 72 of file sortedArrayManipulation.hpp.
◆ incrementSize()
Callback signaling that the size of the array has increased.
- Parameters
-
curPtr | the current pointer to the array. |
nToAdd | the increase in the size of the array. |
- Returns
- a pointer to the array.
Definition at line 83 of file sortedArrayManipulation.hpp.
◆ insert() [1/2]
Callback signaling that a value was inserted at the given position.
- Parameters
-
pos | the position the value was inserted at. |
Definition at line 95 of file sortedArrayManipulation.hpp.
◆ insert() [2/2]
Callback signaling that the that the given value was inserted at the given position. Further information is provided in order to make the insertion efficient.
- Parameters
-
nLeftToInsert | the number of insertions that occur after this one. |
valuePos | the position of the value that was inserted. |
pos | the position in the array the value was inserted at. |
prevPos | the position the previous value was inserted at or the size of the array if it is the first insertion. |
Definition at line 122 of file sortedArrayManipulation.hpp.
◆ remove() [1/2]
Callback signaling that an entry was removed from the array at given position.
- Parameters
-
pos | The position of the entry that was removed. |
Definition at line 138 of file sortedArrayManipulation.hpp.
◆ remove() [2/2]
Callback signaling that the given entry was removed from the given position. Further information is provided in order to make the removal efficient.
- Parameters
-
nRemoved | the number of entries removed, starts at 1. |
curPos | the position in the array the entry was removed at. |
nextPos | the position the next entry will be removed at or the original size of the array if this was the last entry removed. |
Definition at line 150 of file sortedArrayManipulation.hpp.
◆ set()
Callback signaling that the entry of the array at the first position was set to the value at the second position.
- Parameters
-
pos | the position in the array that was set. |
valuePos | the position of the value that the entry in the array was set to. |
Definition at line 105 of file sortedArrayManipulation.hpp.
The documentation for this class was generated from the following file: