eigenpy 3.12.0
Bindings between Numpy and Eigen using Boost.Python
Loading...
Searching...
No Matches
expose.hpp
1/*
2 * Copyright 2019 INRIA
3 */
4
5#ifndef __eigenpy_expose_hpp__
6#define __eigenpy_expose_hpp__
7
8#include "eigenpy/registration.hpp"
9
10namespace eigenpy {
14template <typename T>
15struct call {
16 static inline void expose() { T::expose(); }
17};
18
22template <typename T>
23inline void expose() {
24 if (!register_symbolic_link_to_registered_type<T>()) call<T>::expose();
25}
26} // namespace eigenpy
27
28#endif // ifndef __eigenpy_expose_hpp__
void expose()
Call the expose function of a given type T.
Definition expose.hpp:23
bool register_symbolic_link_to_registered_type()
Symlink to the current scope the already registered class T.
Allows a template specialization.
Definition expose.hpp:15