Emergency 20 Dokumentation  4.1.0
Functions
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)
template<typename T >
std::size_t qsf::memory::calculateMemoryConsumption ( const std::deque< T > &  v)
template<typename T >
std::size_t qsf::memory::calculateMemoryConsumption ( const std::auto_ptr< T > &  p)
template<typename Key , typename Value >
std::size_t qsf::memory::calculateMemoryConsumption ( const boost::container::flat_map< Key, Value > &  map)
template<typename Key , typename Value >
std::size_t qsf::memory::calculateMemoryConsumption ( const boost::container::flat_multimap< Key, Value > &  map)
template<typename Key , typename Value >
std::size_t qsf::memory::estimateMemoryConsumption ( const std::map< Key, Value > &  map)
template<typename Key , typename Value >
std::size_t qsf::memory::estimateMemoryConsumption ( const std::multimap< Key, Value > &  map)
void qsf::memory::printReadableSize ( std::size_t  bytes,
std::ostream &  outputStream 
)