|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
C::build(items...) builds the container that C{items...} builds, with the insertion rules of C, but forwarding the items: rvalues are moved and any type convertible to the item type is accepted.
More...
#include <gtest/gtest.h>#include <memory>#include <stdexcept>#include <string>#include <type_traits>#include <utility>#include <vector>#include <ahFunctional.H>#include <al-domain.H>#include <htlist.H>#include <tpl_array.H>#include <tpl_arrayHeap.H>#include <tpl_arrayQueue.H>#include <tpl_arrayStack.H>#include <tpl_dynArray.H>#include <tpl_dynArrayHeap.H>#include <tpl_dynBinHeap.H>#include <tpl_dynDlist.H>#include <tpl_dynListQueue.H>#include <tpl_dynListStack.H>#include <tpl_dynMapOhash.H>#include <tpl_dynMapTree.H>#include <tpl_dynSetHash.H>#include <tpl_dynSetTree.H>#include <tpl_dynSkipList.H>#include <tpl_dynTreap.H>#include <tpl_dynarray_set.H>#include <tpl_hash.H>#include <tpl_odhash.H>#include <tpl_olhash.H>Go to the source code of this file.
Concepts | |
| concept | @825::Buildable |
| concept | @825::Can_Nappend |
| concept | @825::Can_Ninsert |
Functions | |
| TEST (ContainerBuild, ContainersBuildTheirOwnType) | |
| TEST (ContainerBuild, DerivedClassesBuildThemselves) | |
| TEST (ContainerBuild, SequencesKeepTheArgumentOrder) | |
| TEST (ContainerBuild, ArrayBuildOfOneIntegerIsOneItem) | |
| TEST (ContainerBuild, StacksEndWithTheLastItemOnTop) | |
| TEST (ContainerBuild, QueuesEndWithTheFirstItemInFront) | |
| TEST (ContainerBuild, SetsKeepOneItemPerKey) | |
| TEST (ContainerBuild, MapsKeepTheFirstOfTwoEqualKeys) | |
| TEST (ContainerBuild, HeapsKeepEveryItem) | |
| TEST (ContainerBuild, NoItemsBuildsAnEmptyContainer) | |
| TEST (ContainerBuild, MoveOnlyItems) | |
| TEST (ContainerBuild, RvaluesAreMovedAndLvaluesCopiedOnce) | |
| TEST (ContainerBuild, ItemsConvertWithoutNarrowingErrors) | |
| TEST (ContainerBuild, OnlyItemsAreAccepted) | |
| TEST (ContainerBuild, ThrowingItemLeavesNothingBehind) | |
| TEST (ContainerBuild, NappendAndNinsertForwardTheirItems) | |
| TEST (ContainerBuild, NappendKeepsTheArgumentOrderAndNinsertFollowsInsert) | |
| TEST (ContainerBuild, NappendAndNinsertCountTheItemsAdded) | |
| TEST (ContainerBuild, NappendAndNinsertKeepTheItemsAddedBeforeAThrow) | |
| TEST (ContainerBuild, NappendAndNinsertConvertAndMoveTheirItems) | |
| TEST (ContainerBuild, BuildFunctionsForwardTheirItems) | |
| TEST (ContainerBuild, AppendInContainerTreatsEveryArgumentAsAnItem) | |
C::build(items...) builds the container that C{items...} builds, with the insertion rules of C, but forwarding the items: rvalues are moved and any type convertible to the item type is accepted.
A class derived from a container builds itself, not its base.
Definition in file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| AppendInContainerTreatsEveryArgumentAsAnItem | |||
| ) |
Definition at line 516 of file container_build_test.cc.
References Aleph::append_in_container().
| TEST | ( | ContainerBuild | , |
| ArrayBuildOfOneIntegerIsOneItem | |||
| ) |
Definition at line 223 of file container_build_test.cc.
References Aleph::Array< T >::create_reserved().
| TEST | ( | ContainerBuild | , |
| BuildFunctionsForwardTheirItems | |||
| ) |
Definition at line 503 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| ContainersBuildTheirOwnType | |||
| ) |
Definition at line 146 of file container_build_test.cc.
References FunctionalMethods< Container, T >::build().
| TEST | ( | ContainerBuild | , |
| DerivedClassesBuildThemselves | |||
| ) |
Definition at line 160 of file container_build_test.cc.
References Aleph::AlDomain< T >::build(), Aleph::DynArray_Set< T, Equal >::build(), Aleph::MapOpenHash< Key, Data, Cmp, HashTable >::build(), Aleph::DynMapTree< Key, Data, Tree, Compare >::build(), Aleph::DynMapBinTree< Key, Type, Compare >::build(), Aleph::DynMapAvlTree< Key, Type, Compare >::build(), Aleph::DynMapRbTree< Key, Type, Compare >::build(), Aleph::DynMapRandTree< Key, Type, Compare >::build(), Aleph::DynMapTreap< Key, Type, Compare >::build(), Aleph::DynMapTreapRk< Key, Type, Compare >::build(), Aleph::DynMapSplayTree< Key, Type, Compare >::build(), Aleph::DynSetLhash< Key, Cmp >::build(), Aleph::DynSetLinHash< Key, Cmp >::build(), Aleph::DynMapHashTable< Key, Data, HashTable, Cmp >::build(), Aleph::DynSetBinTree< Key, Compare >::build(), Aleph::DynSetAvlTree< Key, Compare >::build(), Aleph::DynSetSplayTree< Key, Compare >::build(), Aleph::DynSetSplayRkTree< Key, Compare >::build(), Aleph::DynSetRandTree< Key, Compare >::build(), Aleph::DynSetTreap< Key, Compare >::build(), Aleph::DynSetTreapRk< Key, Compare >::build(), Aleph::DynSetAvlRkTree< Key, Compare >::build(), Aleph::DynSetRbTree< Key, Compare >::build(), Aleph::DynSetTdRbTree< Key, Compare >::build(), Aleph::DynSetRbRkTree< Key, Compare >::build(), Aleph::DynSetTdRbRkTree< Key, Compare >::build(), Aleph::DynSetHtdRbTree< Key, Compare >::build(), Aleph::DynSetHtdRbRkTree< Key, Compare >::build(), Aleph::DynTreapTree< Key, Type, Compare >::build(), Aleph::HashSet< Key, HashSetTable, Cmp >::build(), and Aleph::HashMap< Key, Data, HashMapTable, Cmp >::build().
| TEST | ( | ContainerBuild | , |
| HeapsKeepEveryItem | |||
| ) |
Definition at line 313 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| ItemsConvertWithoutNarrowingErrors | |||
| ) |
Definition at line 367 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| MapsKeepTheFirstOfTwoEqualKeys | |||
| ) |
Definition at line 293 of file container_build_test.cc.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::build(), and Aleph::DynMapHashTable< Key, Data, HashTable, Cmp >::build().
| TEST | ( | ContainerBuild | , |
| MoveOnlyItems | |||
| ) |
Definition at line 339 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| NappendAndNinsertConvertAndMoveTheirItems | |||
| ) |
Definition at line 477 of file container_build_test.cc.
References FunctionalMethods< Container, T >::nappend(), and FunctionalMethods< Container, T >::ninsert().
| TEST | ( | ContainerBuild | , |
| NappendAndNinsertCountTheItemsAdded | |||
| ) |
Definition at line 427 of file container_build_test.cc.
References Aleph::append_in_container(), Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::insert_in_container(), FunctionalMethods< Container, T >::nappend(), FunctionalMethods< Container, T >::ninsert(), Aleph::DynSetTree< Key, Tree, Compare >::size(), and Aleph::DynList< T >::size().
| TEST | ( | ContainerBuild | , |
| NappendAndNinsertForwardTheirItems | |||
| ) |
Definition at line 400 of file container_build_test.cc.
References Aleph::DynList< T >::get_first(), Aleph::DynList< T >::get_last(), FunctionalMethods< Container, T >::nappend(), FunctionalMethods< Container, T >::ninsert(), and Aleph::DynList< T >::size().
| TEST | ( | ContainerBuild | , |
| NappendAndNinsertKeepTheItemsAddedBeforeAThrow | |||
| ) |
Definition at line 466 of file container_build_test.cc.
References FunctionalMethods< Container, T >::nappend(), and FunctionalMethods< Container, T >::ninsert().
| TEST | ( | ContainerBuild | , |
| NappendKeepsTheArgumentOrderAndNinsertFollowsInsert | |||
| ) |
Definition at line 410 of file container_build_test.cc.
References FunctionalMethods< Container, T >::nappend(), and FunctionalMethods< Container, T >::ninsert().
| TEST | ( | ContainerBuild | , |
| NoItemsBuildsAnEmptyContainer | |||
| ) |
Definition at line 328 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| OnlyItemsAreAccepted | |||
| ) |
Definition at line 376 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| QueuesEndWithTheFirstItemInFront | |||
| ) |
Definition at line 251 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| RvaluesAreMovedAndLvaluesCopiedOnce | |||
| ) |
Definition at line 355 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| SequencesKeepTheArgumentOrder | |||
| ) |
Definition at line 211 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| SetsKeepOneItemPerKey | |||
| ) |
Definition at line 269 of file container_build_test.cc.
References Aleph::size().
| TEST | ( | ContainerBuild | , |
| StacksEndWithTheLastItemOnTop | |||
| ) |
Definition at line 234 of file container_build_test.cc.
| TEST | ( | ContainerBuild | , |
| ThrowingItemLeavesNothingBehind | |||
| ) |
Definition at line 388 of file container_build_test.cc.