9 #include "boost/type_traits/remove_reference.hpp" 10 #include "boost/type_traits/remove_const.hpp" 12 namespace vdj_pipe{
namespace detail{
23 Result(Obj::*MemFunPtr)()
const 27 typedef typename boost::remove_const<
28 typename boost::remove_reference<Result>::type
31 explicit Getter(Stor
const& stor) : stor_(stor) {}
32 Result
operator()(
const Id
id)
const {
return (stor_[
id].*MemFunPtr)();}
Getter(Stor const &stor)
Definition: get_by_id.hpp:31
Stor const & stor_
Definition: get_by_id.hpp:34
Result operator()(const Id id) const
Definition: get_by_id.hpp:32
boost::remove_const< typename boost::remove_reference< Result >::type >::type result_type
Definition: get_by_id.hpp:29
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
Extract object by its ID and apply member function.
Definition: get_by_id.hpp:25