eXperiment robotics framework

tpn::MemberBinding< T, M > Class Template Reference

#include <Binding.hpp>

Inheritance diagram for tpn::MemberBinding< T, M >:

Inheritance graph
[legend]
Collaboration diagram for tpn::MemberBinding< T, M >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemberBinding (const std::string &name, M T::*offset)
 MemberBinding (const std::string &name, boost::function< const M(T *)> getter, boost::function< void(T *, const M &)> setter)
std::string GetName ()

Protected Attributes

std::string m_name
bool m_functions
M T::* m_offset
boost::function< M(T *) m_getter )
boost::function< void(T
*, const M &) 
m_setter )


Detailed Description

template<typename T, typename M>
class tpn::MemberBinding< T, M >

Definition at line 67 of file Binding.hpp.


Constructor & Destructor Documentation

template<typename T, typename M>
tpn::MemberBinding< T, M >::MemberBinding ( const std::string &  name,
M T::*  offset 
) [inline]

Definition at line 70 of file Binding.hpp.

template<typename T, typename M>
tpn::MemberBinding< T, M >::MemberBinding ( const std::string &  name,
boost::function< const M(T *)>  getter,
boost::function< void(T *, const M &)>  setter 
) [inline]

Definition at line 72 of file Binding.hpp.


Member Function Documentation

template<typename T, typename M>
std::string tpn::MemberBinding< T, M >::GetName (  )  [inline]

Definition at line 75 of file Binding.hpp.

References tpn::MemberBinding< T, M >::m_name.


Member Data Documentation

template<typename T, typename M>
std::string tpn::MemberBinding< T, M >::m_name [protected]

Definition at line 78 of file Binding.hpp.

Referenced by tpn::MemberBinding< T, M >::GetName().

template<typename T, typename M>
bool tpn::MemberBinding< T, M >::m_functions [protected]

Definition at line 80 of file Binding.hpp.

template<typename T, typename M>
M T::* tpn::MemberBinding< T, M >::m_offset [protected]

Definition at line 81 of file Binding.hpp.

template<typename T, typename M>
boost::function<M (T*) tpn::MemberBinding< T, M >::m_getter) [protected]

Definition at line 82 of file Binding.hpp.

template<typename T, typename M>
boost::function<void (T*, const M&) tpn::MemberBinding< T, M >::m_setter) [protected]

Definition at line 83 of file Binding.hpp.


The documentation for this class was generated from the following file:

The miarn project - written by Joao Xavier