Emergency 2017 Dokumentation  v3.0.1
qsf::memory Namespace Reference

Functions

template<typename T >
std::size_t calculateMemoryConsumption (const std::vector< T > &v)
 
template<typename T >
std::size_t calculateMemoryConsumption (const std::deque< T > &v)
 
template<typename T >
std::size_t calculateMemoryConsumption (const std::auto_ptr< T > &p)
 
template<typename Key , typename Value >
std::size_t calculateMemoryConsumption (const boost::container::flat_map< Key, Value > &map)
 
template<typename Key , typename Value >
std::size_t calculateMemoryConsumption (const boost::container::flat_multimap< Key, Value > &map)
 
template<typename Key , typename Value >
std::size_t estimateMemoryConsumption (const std::map< Key, Value > &map)
 
template<typename Key , typename Value >
std::size_t estimateMemoryConsumption (const std::multimap< Key, Value > &map)
 
void printReadableSize (std::size_t bytes, std::ostream &outputStream)
 

Function Documentation

template<typename T >
std::size_t qsf::memory::calculateMemoryConsumption ( const std::vector< T > &  v)

Definition at line 29 of file MemoryDebugHelper.h.

template<typename T >
std::size_t qsf::memory::calculateMemoryConsumption ( const std::deque< T > &  v)

Definition at line 36 of file MemoryDebugHelper.h.

template<typename T >
std::size_t qsf::memory::calculateMemoryConsumption ( const std::auto_ptr< T > &  p)

Definition at line 43 of file MemoryDebugHelper.h.

template<typename Key , typename Value >
std::size_t qsf::memory::calculateMemoryConsumption ( const boost::container::flat_map< Key, Value > &  map)

Definition at line 50 of file MemoryDebugHelper.h.

template<typename Key , typename Value >
std::size_t qsf::memory::calculateMemoryConsumption ( const boost::container::flat_multimap< Key, Value > &  map)

Definition at line 57 of file MemoryDebugHelper.h.

template<typename Key , typename Value >
std::size_t qsf::memory::estimateMemoryConsumption ( const std::map< Key, Value > &  map)

Definition at line 64 of file MemoryDebugHelper.h.

template<typename Key , typename Value >
std::size_t qsf::memory::estimateMemoryConsumption ( const std::multimap< Key, Value > &  map)

Definition at line 71 of file MemoryDebugHelper.h.

void qsf::memory::printReadableSize ( std::size_t  bytes,
std::ostream &  outputStream 
)