Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
ConstructorStats Class Reference

#include <constructor_stats.h>

Public Member Functions

int alive ()
 
void copy_created (void *inst)
 
void created (void *inst)
 
void default_created (void *inst)
 
void destroyed (void *inst)
 
void move_created (void *inst)
 
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 ConstructorStatsget (std::type_index type)
 
template<typename T >
static ConstructorStatsget ()
 
static ConstructorStatsget (py::object class_)
 

Public Attributes

int copy_assignments = 0
 
int copy_constructions = 0
 
int default_constructions = 0
 
int move_assignments = 0
 
int move_constructions = 0
 

Protected Attributes

std::unordered_map< void *, int_instances
 
std::list< std::string > _values
 

Detailed Description

Definition at line 73 of file constructor_stats.h.

Member Function Documentation

int ConstructorStats::alive ( )
inline

Definition at line 127 of file constructor_stats.h.

void ConstructorStats::copy_created ( void *  inst)
inline

Definition at line 84 of file constructor_stats.h.

void ConstructorStats::created ( void *  inst)
inline

Definition at line 99 of file constructor_stats.h.

void ConstructorStats::default_created ( void *  inst)
inline

Definition at line 94 of file constructor_stats.h.

void ConstructorStats::destroyed ( void *  inst)
inline

Definition at line 103 of file constructor_stats.h.

static void ConstructorStats::gc ( )
inlinestatic

Definition at line 110 of file constructor_stats.h.

static ConstructorStats& ConstructorStats::get ( std::type_index  type)
inlinestatic

Definition at line 154 of file constructor_stats.h.

template<typename T >
static ConstructorStats& ConstructorStats::get ( )
inlinestatic

Definition at line 160 of file constructor_stats.h.

static ConstructorStats& ConstructorStats::get ( py::object  class_)
inlinestatic

Definition at line 168 of file constructor_stats.h.

void ConstructorStats::move_created ( void *  inst)
inline

Definition at line 89 of file constructor_stats.h.

void ConstructorStats::value ( )
inline

Definition at line 136 of file constructor_stats.h.

template<typename T , typename... Tmore>
void ConstructorStats::value ( const T v,
Tmore &&...  args 
)
inline

Definition at line 138 of file constructor_stats.h.

py::list ConstructorStats::values ( )
inline

Definition at line 146 of file constructor_stats.h.

Member Data Documentation

std::unordered_map<void*, int> ConstructorStats::_instances
protected

Definition at line 75 of file constructor_stats.h.

std::list<std::string> ConstructorStats::_values
protected

Definition at line 76 of file constructor_stats.h.

int ConstructorStats::copy_assignments = 0

Definition at line 81 of file constructor_stats.h.

int ConstructorStats::copy_constructions = 0

Definition at line 79 of file constructor_stats.h.

int ConstructorStats::default_constructions = 0

Definition at line 78 of file constructor_stats.h.

int ConstructorStats::move_assignments = 0

Definition at line 82 of file constructor_stats.h.

int ConstructorStats::move_constructions = 0

Definition at line 80 of file constructor_stats.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:47