|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <cstdint>#include <memory>#include <set>#include <utility>#include <type_traits>#include <ki_any.h>Go to the source code of this file.
Classes | |
| struct | NoDefaultCtor |
| struct | combined |
| struct | LocationAware |
| struct | X |
| struct | X2 |
| struct | X3 |
| struct | wrapper |
| struct | A |
| struct | Bad |
| struct | Bad2 |
| struct | Good |
| struct | X_e |
| struct | X2_e |
| class | any |
| A type-safe container of any type. More... | |
Variables | |
| static int | move_count = 0 |
| bool | moved = false |
| bool | copied = false |
| std::set< const void * > | live_objects |
| bool | should_throw = false |
| int | del_count = 0 |
| ValueType ki::any_cast | ( | const any & | any | ) |
Access the contained object.
| ValueType | A const-reference or CopyConstructible type. |
| any | The object to access. |
| bad_any_cast | If any.type() != typeid(remove_reference_t<ValueType>) |
Definition at line 445 of file ki_any.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_1 | ) |
Definition at line 119 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_2 | ) |
Definition at line 147 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_3 | ) |
Definition at line 171 of file test_ki_any.cpp.
References any_cast(), m2, m3, and move_count.
| BOOST_AUTO_TEST_CASE | ( | AnyCast_4 | ) |
Definition at line 190 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_5 | ) |
Definition at line 203 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_6 | ) |
Definition at line 215 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_7 | ) |
Definition at line 248 of file test_ki_any.cpp.
References any_cast(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Assign_1 | ) |
Definition at line 599 of file test_ki_any.cpp.
References ki::any::has_value(), live_objects, and ki::any::reset().
| BOOST_AUTO_TEST_CASE | ( | Assign_2 | ) |
Definition at line 614 of file test_ki_any.cpp.
References live_objects.
| BOOST_AUTO_TEST_CASE | ( | Assign_3 | ) |
Definition at line 633 of file test_ki_any.cpp.
References ki::any::has_value(), live_objects, ki::any::reset(), and ki::any::swap().
| BOOST_AUTO_TEST_CASE | ( | Assign_4 | ) |
Definition at line 648 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_5 | ) |
Definition at line 663 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_6 | ) |
Definition at line 678 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_7 | ) |
Definition at line 693 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Assign_8 | ) |
Definition at line 706 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_Alignment | ) |
Definition at line 518 of file test_ki_any.cpp.
References any_cast(), and stored_internally().
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_1 | ) |
Definition at line 419 of file test_ki_any.cpp.
References moved.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_2 | ) |
Definition at line 430 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_3 | ) |
Definition at line 442 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_4 | ) |
Definition at line 455 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_5 | ) |
Definition at line 470 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_1 | ) |
Definition at line 370 of file test_ki_any.cpp.
References any_cast(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_2 | ) |
Definition at line 485 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | Construction_Pair | ) |
Definition at line 492 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | Construction_Wrapper | ) |
Definition at line 548 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Emplace_1 | ) |
Definition at line 778 of file test_ki_any.cpp.
References any_cast(), ki::any::emplace(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Exceptions | ) |
Definition at line 747 of file test_ki_any.cpp.
References any_cast(), del_count, ki::any::has_value(), and should_throw.
| BOOST_AUTO_TEST_CASE | ( | MakeAny | ) |
Definition at line 309 of file test_ki_any.cpp.
References any_cast(), and ki::make_any().
| BOOST_AUTO_TEST_CASE | ( | Modifiers | ) |
Definition at line 354 of file test_ki_any.cpp.
References ki::any::has_value(), ki::any::reset(), and ki::any::swap().
| BOOST_AUTO_TEST_CASE | ( | NonTrivialType_1 | ) |
Definition at line 280 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | NonTrivialType_2 | ) |
Definition at line 287 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | NonTrivialType_3 | ) |
Definition at line 300 of file test_ki_any.cpp.
References swap.
| BOOST_AUTO_TEST_CASE | ( | Swap | ) |
Definition at line 344 of file test_ki_any.cpp.
References ki::any::has_value(), and swap.
| BOOST_AUTO_TEST_CASE | ( | TypeObserver | ) |
Definition at line 333 of file test_ki_any.cpp.
References ki::any::type().
| bool stored_internally | ( | void * | obj, |
| const ki::any & | a ) |
Definition at line 509 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
| bool copied = false |
Definition at line 402 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), BOARD::CopyVariant(), CLI::GIT_MERGEDRIVER_COMMAND::doPerform(), IMPORT_PROJ_HELPER::ImportIndividualFile(), IMPORT_PROJ_HELPER::ImportPadsFiles(), KIGFX::RENDER_THREAD::RenderGeometryInto(), MULTICHANNEL_TOOL::UpdateLinkedLayouts(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
| int del_count = 0 |
Definition at line 738 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Good::~Good().
| std::set<const void*> live_objects |
Definition at line 591 of file test_ki_any.cpp.
Referenced by A::A(), A::A(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and A::~A().
|
static |
Definition at line 169 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
| bool moved = false |
Definition at line 401 of file test_ki_any.cpp.
Referenced by BOARD_CONSTRAINT_ADAPTER::Apply(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), MULTICHANNEL_TOOL::hideMovedRatsnest(), MULTICHANNEL_TOOL::HighlightRepeatAreas(), moveSelectionBy(), SCH_MOVE_TOOL::moveSelectionToSheet(), SYMBOL_IMPORT_RECONCILER::Reconcile(), KIGFX::VIEW::ReorderLayerData(), EAGLE_BIN_PARSER::resolveSchLibraries(), KIGFX::RhiGridMovedOnly(), TARGET3001_SCH_BUILDER::separateSignals(), MULTICHANNEL_TOOL::UpdateRepeatPreview(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
| bool should_throw = false |
Definition at line 724 of file test_ki_any.cpp.
Referenced by Bad::Bad(), Bad2::Bad2(), and BOOST_AUTO_TEST_CASE().