Back to index

easystroke  0.5.5.1
Public Member Functions | Protected Member Functions | Private Attributes
Source< T > Class Template Reference

#include <var.h>

Inheritance diagram for Source< T >:
Inheritance graph
[legend]
Collaboration diagram for Source< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Source ()
 Source (T x_)
virtual void set (const T x_)
virtual T get () const
const T & ref () const
T & write_ref (Atomic &a)
virtual void notify ()
T & unsafe_ref ()
void connect (Base *s)

Protected Member Functions

void update ()

Private Attributes

x

Detailed Description

template<class T>
class Source< T >

Definition at line 65 of file var.h.


Constructor & Destructor Documentation

template<class T>
Source< T >::Source ( ) [inline]

Definition at line 68 of file var.h.

{}
template<class T>
Source< T >::Source ( x_) [inline]

Definition at line 69 of file var.h.

: x(x_) {}

Member Function Documentation

template<class T>
void Out< T >::connect ( Base s) [inline, inherited]

Definition at line 54 of file var.h.

{ out.insert(s); }

Here is the caller graph for this function:

template<class T>
virtual T Source< T >::get ( ) const [inline, virtual]

Implements Out< T >.

Definition at line 74 of file var.h.

{ return x; }

Here is the caller graph for this function:

template<class T>
virtual void Source< T >::notify ( ) [inline, virtual]

Implements Base.

Definition at line 81 of file var.h.

template<class T>
const T& Source< T >::ref ( ) const [inline]

Definition at line 75 of file var.h.

{ return x; }

Here is the caller graph for this function:

template<class T>
virtual void Source< T >::set ( const T  x_) [inline, virtual]

Implements In< T >.

Definition at line 70 of file var.h.

                                    {
              x = x_;
              Out<T>::update();
       }

Here is the caller graph for this function:

template<class T>
T& Source< T >::unsafe_ref ( ) [inline]

Definition at line 83 of file var.h.

{ return x; }

Here is the caller graph for this function:

template<class T>
void Out< T >::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:

template<class T>
T& Source< T >::write_ref ( Atomic a) [inline]

Definition at line 77 of file var.h.

                               {
              a.defer(this);
              return x;
       }

Here is the caller graph for this function:


Member Data Documentation

template<class T>
T Source< T >::x [private]

Definition at line 66 of file var.h.


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