CompositeRange< TYPE > Class Template Reference

#include <CompositeRange.h>

Inheritance diagram for CompositeRange< TYPE >:
Undoable

List of all members.

Public Member Functions

 CompositeRange ()
 ~CompositeRange ()
UndoMemento GetMemento ()
void ProcVector (std::vector< UndoMemento > vum)

Detailed Description

template<class TYPE>
class CompositeRange< TYPE >

Id
CompositeRange.h,v 1.3 2005/07/21 20:26:36 bv Exp

Definition at line 27 of file CompositeRange.h.


Constructor & Destructor Documentation

template<class TYPE>
CompositeRange< TYPE >::CompositeRange (  )  [inline]

Definition at line 33 of file CompositeRange.h.

00033 { }

template<class TYPE>
CompositeRange< TYPE >::~CompositeRange (  )  [inline]

Definition at line 34 of file CompositeRange.h.

00034 { }


Member Function Documentation

template<class TYPE>
UndoMemento CompositeRange< TYPE >::GetMemento ( void   )  [inline, virtual]

Implements Undoable.

Definition at line 37 of file CompositeRange.h.

References CompositeRange< TYPE >::ProcVector(), and size.

00037                              {
00038         using namespace SigC;
00039         using namespace std;
00040 
00041         vector<UndoMemento> vum;
00042         for (unsigned int ind = 0; ind < this->size(); ++ind) {
00043             Ptr<Range<double> > r = (*this)[ind];
00044             vum.push_back(bind(slot(*r, &Range<double>::SetState),r->GetState()));
00045         }
00046         return bind(slot(*this,&CompositeRange::ProcVector),vum);
00047     }

template<class TYPE>
void CompositeRange< TYPE >::ProcVector ( std::vector< UndoMemento vum  )  [inline]

Definition at line 49 of file CompositeRange.h.

Referenced by CompositeRange< TYPE >::GetMemento().

00049                                                 {
00050         for (unsigned int ind = 0; ind < vum.size(); ++ind) {
00051 //            std::cerr << "Undoing : " << ind << endl;
00052             vum[ind]();
00053         }
00054     }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1