jigdo API

IOSource< SomeIO > Class Template Reference

In your job class, use the template to generate a public member:. More...

#include <job.hh>

Inheritance diagram for IOSource< SomeIO >:

NoCopy

List of all members.


Public Member Functions

 IOSource ()
 ~IOSource ()
 Does not delete the listeners.
void addListener (SomeIO &l)
 Add an IO object which listens to calls going via this IOSource.
const IList< SomeIO > & listeners () const
IList< SomeIO > & listeners ()
bool empty () const

Detailed Description

template<class SomeIO>
class IOSource< SomeIO >

In your job class, use the template to generate a public member:.

    class MyJob {
    public:
      class IO { ... };
      IOSource<IO> io;
      MyJob(IO* ioPtr, ...) : io(), ... { io.addListener(ioPtr); ... }
    };

    

Constructor & Destructor Documentation

template<class SomeIO>
IOSource< SomeIO >::IOSource (  )  [inline]

template<class SomeIO>
IOSource< SomeIO >::~IOSource (  )  [inline]

Does not delete the listeners.


Member Function Documentation

template<class SomeIO>
void IOSource< SomeIO >::addListener ( SomeIO &  l  )  [inline]

Add an IO object which listens to calls going via this IOSource.

NB, this adds l to the *front* of the list, so it will be called before listeners that were registered earlier.

template<class SomeIO>
const IList<SomeIO>& IOSource< SomeIO >::listeners (  )  const [inline]

template<class SomeIO>
IList<SomeIO>& IOSource< SomeIO >::listeners (  )  [inline]

template<class SomeIO>
bool IOSource< SomeIO >::empty (  )  const [inline]


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

Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6