Back to index

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

#include <var.h>

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

List of all members.

Public Member Functions

 Bijection (sigc::slot< Y, X > f_, sigc::slot< X, Y > g_, IO< X > &in_)
virtual Y get () const
virtual void notify ()
virtual void set (const Y y)
void connect (Base *s)

Protected Member Functions

void update ()

Private Attributes

sigc::slot< Y, X > f
sigc::slot< X, Y > g
IO< X > & in

Detailed Description

template<class X, class Y>
class Bijection< X, Y >

Definition at line 129 of file var.h.


Constructor & Destructor Documentation

template<class X , class Y >
Bijection< X, Y >::Bijection ( sigc::slot< Y, X >  f_,
sigc::slot< X, Y >  g_,
IO< X > &  in_ 
) [inline]

Definition at line 134 of file var.h.

                                                                   : f(f_), g(g_), 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 Bijection< X, Y >::get ( ) const [inline, virtual]

Implements Out< Y >.

Definition at line 137 of file var.h.

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

Here is the call graph for this function:

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

Implements Base.

Definition at line 138 of file var.h.

Here is the call graph for this function:

template<class X , class Y >
virtual void Bijection< X, Y >::set ( const Y  y) [inline, virtual]

Implements In< Y >.

Definition at line 139 of file var.h.

{ in.set(g(y)); }

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> Bijection< X, Y >::f [private]

Definition at line 130 of file var.h.

template<class X , class Y >
sigc::slot<X, Y> Bijection< X, Y >::g [private]

Definition at line 131 of file var.h.

template<class X , class Y >
IO<X>& Bijection< X, Y >::in [private]

Definition at line 132 of file var.h.


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