Program Listing for File expose.hpp
↰ Return to documentation for file (include/eigenpy/expose.hpp
)
/*
* Copyright 2019 INRIA
*/
#ifndef __eigenpy_expose_hpp__
#define __eigenpy_expose_hpp__
#include "eigenpy/registration.hpp"
namespace eigenpy {
template <typename T>
struct call {
static inline void expose() { T::expose(); }
};
template <typename T>
inline void expose() {
if (!register_symbolic_link_to_registered_type<T>()) call<T>::expose();
}
} // namespace eigenpy
#endif // ifndef __eigenpy_expose_hpp__