| 
    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 | 
| class | A | 
| struct | combined | 
| struct | LocationAware | 
| struct | X | 
| struct | X2 | 
| struct | X3 | 
| struct | wrapper | 
| 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 446 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 117 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_2 | ) | 
Definition at line 145 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_3 | ) | 
Definition at line 169 of file test_ki_any.cpp.
References any_cast(), m2, m3, and move_count.
| BOOST_AUTO_TEST_CASE | ( | AnyCast_4 | ) | 
Definition at line 188 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_5 | ) | 
Definition at line 201 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_6 | ) | 
Definition at line 213 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | AnyCast_7 | ) | 
Definition at line 246 of file test_ki_any.cpp.
References any_cast(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Assign_1 | ) | 
Definition at line 597 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 612 of file test_ki_any.cpp.
References live_objects.
| BOOST_AUTO_TEST_CASE | ( | Assign_3 | ) | 
Definition at line 631 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 646 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_5 | ) | 
Definition at line 661 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_6 | ) | 
Definition at line 676 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Assign_7 | ) | 
Definition at line 691 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Assign_8 | ) | 
Definition at line 704 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_Alignment | ) | 
Definition at line 516 of file test_ki_any.cpp.
References any_cast(), and stored_internally().
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_1 | ) | 
Definition at line 417 of file test_ki_any.cpp.
References moved.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_2 | ) | 
Definition at line 428 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_3 | ) | 
Definition at line 440 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_4 | ) | 
Definition at line 453 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_Basic_5 | ) | 
Definition at line 468 of file test_ki_any.cpp.
References ki::any::has_value().
| BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_1 | ) | 
Definition at line 368 of file test_ki_any.cpp.
References any_cast(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_2 | ) | 
Definition at line 483 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | Construction_Pair | ) | 
Definition at line 490 of file test_ki_any.cpp.
References any_cast().
| BOOST_AUTO_TEST_CASE | ( | Construction_Wrapper | ) | 
Definition at line 546 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | Emplace_1 | ) | 
Definition at line 776 of file test_ki_any.cpp.
References any_cast(), ki::any::emplace(), and ki::any::type().
| BOOST_AUTO_TEST_CASE | ( | Exceptions | ) | 
Definition at line 745 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 307 of file test_ki_any.cpp.
References any_cast(), and ki::make_any().
| BOOST_AUTO_TEST_CASE | ( | Modifiers | ) | 
Definition at line 352 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 278 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | NonTrivialType_2 | ) | 
Definition at line 285 of file test_ki_any.cpp.
| BOOST_AUTO_TEST_CASE | ( | NonTrivialType_3 | ) | 
Definition at line 298 of file test_ki_any.cpp.
References swap.
| BOOST_AUTO_TEST_CASE | ( | Swap | ) | 
Definition at line 342 of file test_ki_any.cpp.
References ki::any::has_value(), and swap.
| BOOST_AUTO_TEST_CASE | ( | TypeObserver | ) | 
Definition at line 331 of file test_ki_any.cpp.
References ki::any::type().
| bool stored_internally | ( | void * | obj, | 
| const ki::any & | a ) | 
Definition at line 507 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
| bool copied = false | 
Definition at line 400 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(), MULTICHANNEL_TOOL::copyRuleAreaContents(), IMPORT_PROJ_HELPER::ImportIndividualFile(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
| int del_count = 0 | 
Definition at line 736 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Good::~Good().
| std::set<const void*> live_objects | 
Definition at line 589 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 167 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
| bool moved = false | 
Definition at line 399 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(), SCH_MOVE_TOOL::moveSelectionToSheet(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
| bool should_throw = false | 
Definition at line 722 of file test_ki_any.cpp.
Referenced by Bad::Bad(), Bad2::Bad2(), and BOOST_AUTO_TEST_CASE().