#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/tests/constructor_stats.h>
Public Member Functions | |
void | copy_created (void *inst) |
void | move_created (void *inst) |
void | default_created (void *inst) |
void | created (void *inst) |
void | destroyed (void *inst) |
int | alive () |
void | value () |
template<typename T , typename... Tmore> | |
void | value (const T &v, Tmore &&...args) |
py::list | values () |
void | copy_created (void *inst) |
void | move_created (void *inst) |
void | default_created (void *inst) |
void | created (void *inst) |
void | destroyed (void *inst) |
int | alive () |
void | value () |
template<typename T , typename... Tmore> | |
void | value (const T &v, Tmore &&...args) |
py::list | values () |
Static Public Member Functions | |
static void | gc () |
static ConstructorStats & | get (std::type_index type) |
template<typename T > | |
static ConstructorStats & | get () |
static ConstructorStats & | get (py::object class_) |
static void | gc () |
static ConstructorStats & | get (std::type_index type) |
template<typename T > | |
static ConstructorStats & | get () |
static ConstructorStats & | get (py::object class_) |
Public Attributes | |
int | default_constructions = 0 |
int | copy_constructions = 0 |
int | move_constructions = 0 |
int | copy_assignments = 0 |
int | move_assignments = 0 |
Protected Attributes | |
std::unordered_map< void *, int > | _instances |
std::list< std::string > | _values |
Definition at line 75 of file constructor_stats.h.
|
inline |
Definition at line 131 of file constructor_stats.h.
References _instances, and gc().
Referenced by bind_ConstructorStats(), and TEST_SUBMODULE().
|
inline |
Definition at line 131 of file constructor_stats.h.
References _instances, and gc().
|
inline |
Definition at line 88 of file constructor_stats.h.
References copy_constructions, and created().
|
inline |
Definition at line 88 of file constructor_stats.h.
References copy_constructions, and created().
|
inline |
Definition at line 103 of file constructor_stats.h.
References _instances.
Referenced by copy_created(), default_created(), and move_created().
|
inline |
Definition at line 103 of file constructor_stats.h.
References _instances.
|
inline |
Definition at line 98 of file constructor_stats.h.
References created(), and default_constructions.
|
inline |
Definition at line 98 of file constructor_stats.h.
References created(), and default_constructions.
|
inline |
Definition at line 105 of file constructor_stats.h.
References _instances.
|
inline |
Definition at line 105 of file constructor_stats.h.
References _instances.
|
inlinestatic |
Definition at line 113 of file constructor_stats.h.
References globals().
Referenced by alive(), bind_ConstructorStats(), get(), and TEST_SUBMODULE().
|
inlinestatic |
Definition at line 113 of file constructor_stats.h.
References globals().
|
inlinestatic |
Definition at line 170 of file constructor_stats.h.
Referenced by bind_ConstructorStats(), and get().
|
inlinestatic |
Definition at line 170 of file constructor_stats.h.
|
inlinestatic |
Definition at line 178 of file constructor_stats.h.
References get(), internals::registered_types_cpp, and internals::registered_types_py.
|
inlinestatic |
Definition at line 178 of file constructor_stats.h.
References get(), internals::registered_types_cpp, and internals::registered_types_py.
|
inlinestatic |
Definition at line 163 of file constructor_stats.h.
Referenced by test_eigen::assert_keeps_alive(), test_eigen_matrix::assert_keeps_alive(), test_methods_and_attributes::test_cyclic_gc(), test_methods_and_attributes::test_dynamic_attributes(), test_eigen::test_eigen_keepalive(), test_eigen_matrix::test_eigen_keepalive(), test_buffers::test_from_python(), test_smart_ptr::test_holder_with_addressof_operator(), test_factory_constructors::test_init_factory_basic(), test_factory_constructors::test_init_factory_casting(), test_class::test_instance(), test_class::test_instance_new(), test_smart_ptr::test_large_holder(), test_methods_and_attributes::test_methods_and_attributes(), test_smart_ptr::test_move_only_holder(), test_smart_ptr::test_move_only_holder_with_addressof_operator(), test_class::test_obj_class_name(), test_operator_overloading::test_operator_overloading(), test_opaque_types::test_pointers(), test_modules::test_reference_internal(), test_sequences_and_iterators::test_sequence(), test_smart_ptr::test_shared_ptr_and_references(), test_smart_ptr::test_shared_ptr_from_this_and_references(), test_smart_ptr::test_smart_ptr(), test_stl::test_stl_ownership(), test_buffers::test_to_python(), test_smart_ptr::test_unique_deleter(), test_smart_ptr::test_unique_nodelete(), test_smart_ptr::test_unique_nodelete4a(), and test_stl::test_variant_monostate().
|
inlinestatic |
Definition at line 163 of file constructor_stats.h.
|
inline |
Definition at line 93 of file constructor_stats.h.
References created(), and move_constructions.
|
inline |
Definition at line 93 of file constructor_stats.h.
References created(), and move_constructions.
|
inline |
Definition at line 142 of file constructor_stats.h.
Referenced by value().
|
inline |
Definition at line 142 of file constructor_stats.h.
|
inline |
Definition at line 145 of file constructor_stats.h.
|
inline |
Definition at line 145 of file constructor_stats.h.
|
inline |
Definition at line 153 of file constructor_stats.h.
References _values.
Referenced by bind_ConstructorStats().
|
inline |
Definition at line 153 of file constructor_stats.h.
References _values.
|
protected |
Definition at line 77 of file constructor_stats.h.
Referenced by alive(), created(), and destroyed().
|
protected |
Definition at line 79 of file constructor_stats.h.
int ConstructorStats::copy_assignments = 0 |
Definition at line 85 of file constructor_stats.h.
Referenced by bind_ConstructorStats().
int ConstructorStats::copy_constructions = 0 |
Definition at line 83 of file constructor_stats.h.
Referenced by bind_ConstructorStats(), and copy_created().
int ConstructorStats::default_constructions = 0 |
Definition at line 82 of file constructor_stats.h.
Referenced by bind_ConstructorStats(), and default_created().
int ConstructorStats::move_assignments = 0 |
Definition at line 86 of file constructor_stats.h.
Referenced by bind_ConstructorStats().
int ConstructorStats::move_constructions = 0 |
Definition at line 84 of file constructor_stats.h.
Referenced by bind_ConstructorStats(), and move_created().