Electroneum
size_logger Class Reference

Public Member Functions

 ~size_logger ()
 
void add (const char *type, size_t size)
 

Detailed Description

Definition at line 51 of file object_sizes.cpp.

Constructor & Destructor Documentation

◆ ~size_logger()

size_logger::~size_logger ( )
inline

Definition at line 54 of file object_sizes.cpp.

55  {
56  for (const auto &i: types)
57  std::cout << std::to_string(i.first) << "\t" << i.second << std::endl;
58  }
std::string to_string(t_connection_type type)
Here is the call graph for this function:

Member Function Documentation

◆ add()

void size_logger::add ( const char *  type,
size_t  size 
)
inline

Definition at line 59 of file object_sizes.cpp.

59 { types.insert(std::make_pair(size, type)); }

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