#include <CompositeRange.h>
Inheritance diagram for CompositeRange< TYPE >:

Public Member Functions | |
| CompositeRange () | |
| ~CompositeRange () | |
| UndoMemento | GetMemento () |
| void | ProcVector (std::vector< UndoMemento > vum) |
Midad/Util
Contact: bv@bnl.gov
Created on: Mon Sep 23 13:01:12 2002
Definition at line 27 of file CompositeRange.h.
|
|||||||||
|
Definition at line 33 of file CompositeRange.h. 00033 { }
|
|
|||||||||
|
Definition at line 34 of file CompositeRange.h. 00034 { }
|
|
||||||||||
|
Implements Undoable. Definition at line 37 of file CompositeRange.h. References CompositeRange< TYPE >::ProcVector(), and UndoMemento. 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 }
|
|
||||||||||
|
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 }
|
1.3.9.1