Back to index

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

#include <var.h>

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

List of all members.

Public Member Functions

 Fun (sigc::slot< Y, X > f_, Out< X > &in_)
virtual Y get () const
virtual void notify ()
void connect (Base *s)

Protected Member Functions

void update ()

Private Attributes

sigc::slot< Y, X > f
Out< X > & in

Detailed Description

template<class X, class Y>
class Fun< X, Y >

Definition at line 99 of file var.h.


Constructor & Destructor Documentation

template<class X , class Y >
Fun< X, Y >::Fun ( sigc::slot< Y, X >  f_,
Out< X > &  in_ 
) [inline]

Definition at line 103 of file var.h.

: f(f_), in(in_) { in.connect(this); }

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 54 of file var.h.

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

Implements Out< Y >.

Definition at line 104 of file var.h.

{ return f(in.get()); }

Here is the call graph for this function:

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

Implements Base.

Definition at line 105 of file var.h.

Here is the call graph for this function:

void Out< Y >::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 >
sigc::slot<Y, X> Fun< X, Y >::f [private]

Definition at line 100 of file var.h.

template<class X , class Y >
Out<X>& Fun< X, Y >::in [private]

Definition at line 101 of file var.h.


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