Back to index

easystroke  0.5.5.1
Public Member Functions | Protected Member Functions
PrefDB::PrefSource< T > Struct Template Reference
Inheritance diagram for PrefDB::PrefSource< T >:
Inheritance graph
[legend]
Collaboration diagram for PrefDB::PrefSource< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PrefSource ()
 PrefSource (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 ()

Detailed Description

template<class T>
struct PrefDB::PrefSource< T >

Definition at line 106 of file prefdb.h.


Constructor & Destructor Documentation

template<class T >
PrefDB::PrefSource< T >::PrefSource ( )

Definition at line 147 of file prefdb.h.

: Source<T>() { prefs.watch(*this); }
template<class T>
PrefDB::PrefSource< T >::PrefSource ( x_)

Definition at line 148 of file prefdb.h.

: Source<T>(x_) { prefs.watch(*this); }

Here is the call graph for this function:


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, inherited]

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, inherited]

Implements Base.

Definition at line 81 of file var.h.

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

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, inherited]

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, inherited]

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, inherited]

Definition at line 77 of file var.h.

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

Here is the caller graph for this function:


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