#include "pybind11_tests.h"#include <list>#include <sstream>#include <typeindex>#include <unordered_map>Go to the source code of this file.
Classes | |
| class | ConstructorStats |
Functions | |
| template<class T > | |
| void | track_copy_created (T *inst) |
| template<class T > | |
| void | track_move_created (T *inst) |
| template<class T , typename... Values> | |
| void | track_copy_assigned (T *, Values &&...values) |
| template<class T , typename... Values> | |
| void | track_move_assigned (T *, Values &&...values) |
| template<class T , typename... Values> | |
| void | track_default_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | track_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | track_destroyed (T *inst) |
| template<class T , typename... Values> | |
| void | track_values (T *, Values &&...values) |
| const char * | format_ptrs (const char *p) |
| Don't cast pointers to Python, print them as strings. More... | |
| template<typename T > | |
| py::str | format_ptrs (T *p) |
| template<typename T > | |
| auto | format_ptrs (T &&x) -> decltype(std::forward< T >(x)) |
| template<class T , typename... Output> | |
| void | print_constr_details (T *inst, const std::string &action, Output &&...output) |
| template<class T , typename... Values> | |
| void | print_copy_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_move_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_copy_assigned (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_move_assigned (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_default_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_created (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_destroyed (T *inst, Values &&...values) |
| template<class T , typename... Values> | |
| void | print_values (T *inst, Values &&...values) |
|
inline |
Don't cast pointers to Python, print them as strings.
Definition at line 260 of file constructor_stats.h.
Referenced by print_constr_details().
| auto format_ptrs | ( | T && | x | ) | -> decltype(std::forward<T>(x)) |
Definition at line 266 of file constructor_stats.h.
| py::str format_ptrs | ( | T * | p | ) |
Definition at line 262 of file constructor_stats.h.
| void print_constr_details | ( | T * | inst, |
| const std::string & | action, | ||
| Output &&... | output | ||
| ) |
Definition at line 271 of file constructor_stats.h.
References format_ptrs().
Referenced by print_copy_assigned(), print_copy_created(), print_created(), print_default_created(), print_destroyed(), print_move_assigned(), print_move_created(), and print_values().
| void print_copy_assigned | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 294 of file constructor_stats.h.
References print_constr_details(), and track_copy_assigned().
Referenced by CopyOnlyInt::operator=(), DestructionTester::operator=(), ExampleMandA::operator=(), MoveOrCopyInt::operator=(), ref< T >::operator=(), Vector2::operator=(), and TEST_SUBMODULE().
| void print_copy_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 282 of file constructor_stats.h.
References print_constr_details(), and track_copy_created().
Referenced by CopyOnlyInt::CopyOnlyInt(), DestructionTester::DestructionTester(), ExampleMandA::ExampleMandA(), ExampleVirt::ExampleVirt(), Movable::Movable(), MoveOrCopyInt::MoveOrCopyInt(), Object::Object(), PyTF6::PyTF6(), PyTF7::PyTF7(), ref< T >::ref(), TEST_SUBMODULE(), TestFactory6::TestFactory6(), TestFactory7::TestFactory7(), and Vector2::Vector2().
| void print_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 309 of file constructor_stats.h.
References print_constr_details(), and track_created().
Referenced by CopyOnlyInt::CopyOnlyInt(), ExampleMandA::ExampleMandA(), ExampleVirt::ExampleVirt(), Movable::Movable(), MoveOnlyInt::MoveOnlyInt(), MoveOrCopyInt::MoveOrCopyInt(), NonCopyable::NonCopyable(), PyTF6::PyTF6(), PyTF7::PyTF7(), ref< T >::ref(), TEST_SUBMODULE(), TestFactory1::TestFactory1(), TestFactory2::TestFactory2(), TestFactory3::TestFactory3(), TestFactory4::TestFactory4(), TestFactory5::TestFactory5(), TestFactory6::TestFactory6(), TestFactory7::TestFactory7(), and Vector2::Vector2().
| void print_default_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 304 of file constructor_stats.h.
References print_constr_details(), and track_default_created().
Referenced by CopyOnlyInt::CopyOnlyInt(), DestructionTester::DestructionTester(), ExampleMandA::ExampleMandA(), MoveOnlyInt::MoveOnlyInt(), MoveOrCopyInt::MoveOrCopyInt(), Object::Object(), ref< T >::ref(), TEST_SUBMODULE(), TestFactory1::TestFactory1(), TestFactory2::TestFactory2(), TestFactory3::TestFactory3(), and TestFactory4::TestFactory4().
| void print_destroyed | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 314 of file constructor_stats.h.
References print_constr_details(), and track_destroyed().
Referenced by TEST_SUBMODULE(), CopyOnlyInt::~CopyOnlyInt(), DestructionTester::~DestructionTester(), ExampleMandA::~ExampleMandA(), ExampleVirt::~ExampleVirt(), Movable::~Movable(), MoveOnlyInt::~MoveOnlyInt(), MoveOrCopyInt::~MoveOrCopyInt(), NonCopyable::~NonCopyable(), Object::~Object(), PyTF6::~PyTF6(), PyTF7::~PyTF7(), ref< T >::~ref(), TestFactory1::~TestFactory1(), TestFactory2::~TestFactory2(), TestFactory3::~TestFactory3(), TestFactory4::~TestFactory4(), TestFactory5::~TestFactory5(), TestFactory6::~TestFactory6(), TestFactory7::~TestFactory7(), and Vector2::~Vector2().
| void print_move_assigned | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 299 of file constructor_stats.h.
References print_constr_details(), and track_move_assigned().
Referenced by DestructionTester::operator=(), ExampleMandA::operator=(), MoveOnlyInt::operator=(), MoveOrCopyInt::operator=(), ref< T >::operator=(), TestFactory2::operator=(), TestFactory3::operator=(), Vector2::operator=(), and TEST_SUBMODULE().
| void print_move_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 288 of file constructor_stats.h.
References print_constr_details(), and track_move_created().
Referenced by DestructionTester::DestructionTester(), ExampleMandA::ExampleMandA(), ExampleVirt::ExampleVirt(), MoveOnlyInt::MoveOnlyInt(), MoveOrCopyInt::MoveOrCopyInt(), PyTF6::PyTF6(), PyTF7::PyTF7(), ref< T >::ref(), TEST_SUBMODULE(), TestFactory6::TestFactory6(), TestFactory7::TestFactory7(), and Vector2::Vector2().
| void print_values | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 319 of file constructor_stats.h.
References print_constr_details(), and track_values().
Referenced by ref< T >::operator=().
| void track_copy_assigned | ( | T * | , |
| Values &&... | values | ||
| ) |
Definition at line 227 of file constructor_stats.h.
Referenced by ref< T >::operator=(), and print_copy_assigned().
| void track_copy_created | ( | T * | inst | ) |
Definition at line 219 of file constructor_stats.h.
Referenced by print_copy_created(), ref< T >::ref(), and TEST_SUBMODULE().
| void track_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 245 of file constructor_stats.h.
Referenced by print_created(), and ref< T >::ref().
| void track_default_created | ( | T * | inst, |
| Values &&... | values | ||
| ) |
Definition at line 239 of file constructor_stats.h.
Referenced by print_default_created(), ref< T >::ref(), and TEST_SUBMODULE().
| void track_destroyed | ( | T * | inst | ) |
Definition at line 251 of file constructor_stats.h.
Referenced by print_destroyed(), TEST_SUBMODULE(), and ref< T >::~ref().
| void track_move_assigned | ( | T * | , |
| Values &&... | values | ||
| ) |
Definition at line 233 of file constructor_stats.h.
Referenced by ref< T >::operator=(), and print_move_assigned().
| void track_move_created | ( | T * | inst | ) |
Definition at line 223 of file constructor_stats.h.
Referenced by print_move_created(), ref< T >::ref(), and TEST_SUBMODULE().
| void track_values | ( | T * | , |
| Values &&... | values | ||
| ) |
Definition at line 255 of file constructor_stats.h.
Referenced by ref< T >::operator=(), and print_values().