coal  3.0.1
Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library
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
Main namespace.
Definition: broadphase_bruteforce.h:44
size_t computeMemoryFootprint(const T &object)
Returns the memory footpring of the input object. For POD objects, this function returns the result o...
Definition: memory.h:24
static size_t run(const T &)
Definition: memory.h:13