#ifndef __JDAQSIZEOF__ #define __JDAQSIZEOF__ #include "JLang/JSTDTypes.hh" /** * \author mdejong */ namespace KM3NETDAQ { /** * Get size of object. * * Note that this method strictly applies to elements inside the given std::vector which are not containers by themselves. * * \param object object * \return number of bytes */ template inline size_t getSizeof(const std::vector& object) { return sizeof(int) + object.size() * getSizeof(); } } #endif