![]() |
Lumiera 0.pre.04
»edit your freedom«
|
unit test LinkedElements_test More...
Go to the source code of this file.
unit test LinkedElements_test
Definition in file linked-elements-test.cpp.
#include "lib/test/run.hpp"#include "lib/test/test-helper.hpp"#include "lib/util.hpp"#include "lib/allocation-cluster.hpp"#include "lib/linked-elements.hpp"#include "lib/test/tracking-dummy.hpp"#include "lib/iter-source.hpp"#include <memory>Namespaces | |
| namespace | lib |
| Implementation namespace for support and library code. | |
| namespace | lib::test |
| Unit tests for the Lumiera support library. | |
| namespace | lib::test::anonymous_namespace{linked-elements-test.cpp} |
Typedefs | |
| using | List = LinkedElements< Nummy > |
| default case: ownership for heap allocated nodes | |
| using | ListNotOwner = LinkedElements< Nummy, linked_elements::NoOwnership > |
| managing existing node elements without taking ownership | |
Classes | |
| struct | Nummy |
| Test-Element, supporting intrusive linked list storage. More... | |
| struct | Num< I > |
| to demonstrate holding subclasses More... | |
| class | NummyGenerator |
| Helper to produce a pre-determined series of objects to populate a LinkedElements list. More... | |
| class | Populator |
| Iterator-Frontend to generate this series of objects. More... | |
| class | LinkedElements_test |
| struct | LinkedElements_test::UseAllocationCluster |
| Policy to use an Allocation cluster, but also to invoke all object destructors. More... | |
Functions | |
| LUMIERA_ERROR_DEFINE (PROVOKED_FAILURE, "provoked failure") | |
| void | __triggerErrorAt (int i) |
| void | __triggerError_reset () |
| uint | sum (uint n) |
| LAUNCHER (LinkedElements_test, "unit common") | |
Variables | |
| const uint | NUM_ELEMENTS = 500 |
| int | exception_trigger = -1 |