VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtSubjectBinder Class Reference

Base class for DtSubjectObservers that allow "delayed virtual construction via functors". More...

Inheritance diagram for makVrv::DtSubjectBinder:
Inheritance graph
[legend]

Public Member Functions

void bind (DtDe &de)
 Note: do not give this class a CTOR.

Protected Types

typedef boost::function< void(DtDe &)> BindFunction
typedef std::list< BindFunctionBindFunctionList

Protected Attributes

BindFunctionList myBindFunctionList

Detailed Description

Base class for DtSubjectObservers that allow "delayed virtual construction via functors".

Basically, this class is has a list of functors that get executed after the creation of the DtSubjectObserver. In this way, it acts as if you could have virtual functions in your ctor. This was neccessary in order to have the DtSubjectObservers automatically connect to activated subjects. To do that, we needed to call a the virtual method slot_activate() after the contruction of the observer. The observer adds the functor to this list and the logic calls bind() after creation. The logic's ctor is protected and can only be created via a creator method that calls bind().

Member Typedef Documentation

typedef boost::function<void (DtDe&)> makVrv::DtSubjectBinder::BindFunction
protected

Member Function Documentation

void makVrv::DtSubjectBinder::bind ( DtDe de)

Note: do not give this class a CTOR.

Using the auto generated CTOR makes it so that we don't have to call it in the ctor initialization list.

Member Data Documentation

BindFunctionList makVrv::DtSubjectBinder::myBindFunctionList
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)