include
hpp
fcl
serialization
memory.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2021 INRIA
3
//
4
5
#ifndef HPP_FCL_SERIALIZATION_MEMORY_H
6
#define HPP_FCL_SERIALIZATION_MEMORY_H
7
8
namespace
hpp
{
9
namespace
fcl {
10
11
namespace
internal {
12
template
<
typename
T>
13
struct
memory_footprint_evaluator
{
14
static
size_t
run
(
const
T &) {
return
sizeof
(T); }
15
};
16
}
// namespace internal
17
24
template
<
typename
T>
25
size_t
computeMemoryFootprint
(
const
T &
object
) {
26
return
internal::memory_footprint_evaluator<T>::run
(
object
);
27
}
28
29
}
// namespace fcl
30
}
// namespace hpp
31
32
#endif // ifndef HPP_FCL_SERIALIZATION_MEMORY_H
hpp::fcl::internal::memory_footprint_evaluator::run
static size_t run(const T &)
Definition:
memory.h:14
hpp
Main namespace.
Definition:
broadphase_bruteforce.h:44
hpp::fcl::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:
memory.h:25
hpp::fcl::internal::memory_footprint_evaluator
Definition:
memory.h:13
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14