Back to index

easystroke  0.5.5.1
Public Member Functions | Protected Member Functions | Private Attributes
Fun2< X, Y, Z > Class Template Reference

#include <var.h>

Inheritance diagram for Fun2< X, Y, Z >:
Inheritance graph
[legend]
Collaboration diagram for Fun2< X, Y, Z >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Fun2 (sigc::slot< Z, X, Y > f_, Out< X > &inX_, Out< Y > &inY_)
virtual Z get () const
virtual void notify ()
void connect (Base *s)

Protected Member Functions

void update ()

Private Attributes

sigc::slot< Z, X, Y > f
Out< X > & inX
Out< Y > & inY

Detailed Description

template<class X, class Y, class Z>
class Fun2< X, Y, Z >

Definition at line 112 of file var.h.


Constructor & Destructor Documentation

template<class X, class Y, class Z>
Fun2< X, Y, Z >::Fun2 ( sigc::slot< Z, X, Y >  f_,
Out< X > &  inX_,
Out< Y > &  inY_ 
) [inline]

Definition at line 117 of file var.h.

                                                              : f(f_), inX(inX_), inY(inY_) {
              inX.connect(this);
              inY.connect(this);
       }

Here is the call graph for this function:


Member Function Documentation

void Out< Z >::connect ( Base s) [inline, inherited]

Definition at line 54 of file var.h.

{ out.insert(s); }
template<class X, class Y, class Z>
virtual Z Fun2< X, Y, Z >::get ( ) const [inline, virtual]

Implements Out< Z >.

Definition at line 121 of file var.h.

{ return f(inX.get(), inY.get()); }

Here is the call graph for this function:

template<class X, class Y, class Z>
virtual void Fun2< X, Y, Z >::notify ( ) [inline, virtual]

Implements Base.

Definition at line 122 of file var.h.

Here is the call graph for this function:

void Out< Z >::update ( ) [inline, protected, inherited]

Definition at line 49 of file var.h.

                     {
              for (std::set<Base *>::iterator i = out.begin(); i != out.end(); i++)
                     (*i)->notify();
       }

Here is the caller graph for this function:


Member Data Documentation

template<class X, class Y, class Z>
sigc::slot<Z, X, Y> Fun2< X, Y, Z >::f [private]

Definition at line 113 of file var.h.

template<class X, class Y, class Z>
Out<X>& Fun2< X, Y, Z >::inX [private]

Definition at line 114 of file var.h.

template<class X, class Y, class Z>
Out<Y>& Fun2< X, Y, Z >::inY [private]

Definition at line 115 of file var.h.


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