coal/serialization/memory.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2021 INRIA
3 //
4 
5 #ifndef COAL_SERIALIZATION_MEMORY_H
6 #define COAL_SERIALIZATION_MEMORY_H
7 
8 namespace coal {
9 
10 namespace internal {
11 template <typename T>
13  static size_t run(const T &) { return sizeof(T); }
14 };
15 } // namespace internal
16 
23 template <typename T>
24 size_t computeMemoryFootprint(const T &object) {
26 }
27 
28 } // namespace coal
29 
30 #endif // ifndef COAL_SERIALIZATION_MEMORY_H
coal::internal::memory_footprint_evaluator
Definition: coal/serialization/memory.h:12
coal
Main namespace.
Definition: coal/broadphase/broadphase_bruteforce.h:44
coal::internal::memory_footprint_evaluator::run
static size_t run(const T &)
Definition: coal/serialization/memory.h:13
coal::computeMemoryFootprint
size_t computeMemoryFootprint(const T &object)
Returns the memory footpring of the input object. For POD objects, this function returns the result o...
Definition: coal/serialization/memory.h:24


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58