template <typename OpType, typename OperationTraits, typename CallbackTraits, typename Storage>

class BaseList

Defined at line 527 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

Convenience list wrapper around operation::DoublyLinkedList

<T

>.

The class is not thread-safe.

Protected Members

operation::DoublyLinkedList<NodeType *> list_
size_t size_

Public Methods

void BaseList<OpType, OperationTraits, CallbackTraits, Storage> ()

Defined at line 536 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

void ~BaseList<OpType, OperationTraits, CallbackTraits, Storage> ()

Defined at line 538 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

void BaseList<OpType, OperationTraits, CallbackTraits, Storage> (BaseList<OpType, OperationTraits, CallbackTraits, Storage> && other)

Defined at line 540 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

BaseList<OpType, OperationTraits, CallbackTraits, Storage> & operator= (BaseList<OpType, OperationTraits, CallbackTraits, Storage> && other)

Defined at line 547 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

void push_back (OpType * op)

Adds the operation to the end of the list.

Defined at line 556 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

std::optional<size_t> find (OpType * op)

Returns the index of the given operation in the list, or std::nullopt if none was found.

Defined at line 563 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

std::optional<OpType> begin ()

Returns the operation at the start of the list.

Defined at line 576 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

std::optional<OpType> prev (OpType * op)

Returns the operation in the list before |op|, or std::nullopt if |op| is the

start of the list.

Defined at line 586 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

std::optional<OpType> next (OpType * op)

Returns the operation in the list following |op|, or std::nullopt if |op| is the

end of the list.

Defined at line 598 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

bool erase (OpType * op)

Deletes the first instance of the operation found in the list.

Returns whether an operation was deleted.

Defined at line 610 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

size_t size ()

Returns the number of ops in the list.

Defined at line 620 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

void Release ()

Releases all ops stored in the list.

Defined at line 623 of file ../../src/devices/lib/dev-operation/include/lib/operation/operation.h

Records