mrfioc2  2.3.0
Public Types | Public Member Functions | Public Attributes | List of all members
mrf::detail::unboundProperty< C, P > Class Template Reference

An un-bound, typed scalar property. More...

#include <object.h>

Inheritance diagram for mrf::detail::unboundProperty< C, P >:
Inheritance graph
[legend]
Collaboration diagram for mrf::detail::unboundProperty< C, P >:
Collaboration graph
[legend]

Public Types

typedef void(C::* setter_t) (P)
 
typedef P(C::* getter_t) () const
 

Public Member Functions

 unboundProperty (const char *n, getter_t g, setter_t s)
 
virtual const std::type_info & type () const
 
virtual property< P > * bind (C *)
 Binder for scalar instances. More...
 
- Public Member Functions inherited from mrf::detail::unboundPropertyBase< C >
virtual ~unboundPropertyBase ()
 

Public Attributes

const char *const name
 
getter_t const getter
 
setter_t const setter
 

Detailed Description

template<class C, typename P>
class mrf::detail::unboundProperty< C, P >

An un-bound, typed scalar property.

Definition at line 195 of file object.h.

Member Typedef Documentation

◆ getter_t

template<class C, typename P>
typedef P(C::* mrf::detail::unboundProperty< C, P >::getter_t) () const

Definition at line 199 of file object.h.

◆ setter_t

template<class C, typename P>
typedef void(C::* mrf::detail::unboundProperty< C, P >::setter_t) (P)

Definition at line 198 of file object.h.

Constructor & Destructor Documentation

◆ unboundProperty()

template<class C, typename P>
mrf::detail::unboundProperty< C, P >::unboundProperty ( const char *  n,
getter_t  g,
setter_t  s 
)
inline

Definition at line 205 of file object.h.

206  :name(n), getter(g), setter(s) {}
getter_t const getter
Definition: object.h:202
const char *const name
Definition: object.h:201
setter_t const setter
Definition: object.h:203

Member Function Documentation

◆ bind()

template<class C , typename P >
property< P > * mrf::detail::unboundProperty< C, P >::bind ( C *  inst)
inlinevirtual

Binder for scalar instances.

Implements mrf::detail::unboundPropertyBase< C >.

Definition at line 309 of file object.h.

310 {
311  return new propertyInstance<C,P>(inst,*this);
312 }

◆ type()

template<class C, typename P>
virtual const std::type_info& mrf::detail::unboundProperty< C, P >::type ( ) const
inlinevirtual

Implements mrf::detail::unboundPropertyBase< C >.

Definition at line 208 of file object.h.

208 {return typeid(P);}

Member Data Documentation

◆ getter

template<class C, typename P>
getter_t const mrf::detail::unboundProperty< C, P >::getter

Definition at line 202 of file object.h.

◆ name

template<class C, typename P>
const char* const mrf::detail::unboundProperty< C, P >::name

Definition at line 201 of file object.h.

◆ setter

template<class C, typename P>
setter_t const mrf::detail::unboundProperty< C, P >::setter

Definition at line 203 of file object.h.


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