7 void Clock<Type>::setBreak(ClockOffset cycle, Type *obj) {
8 ClockListIt it = objects.begin();
9 while( it != objects.end() ) {
10 if( it->first >= cycle )
16 objects.insert( it, std::make_pair(cycle, obj) );
20 void Clock<Type>::clearBreak(Type *obj) {
21 ClockListIt it = objects.begin();
22 while( it != objects.end() ) {
23 if( it->second == obj )
29 if( it != objects.end() )
34 void Clock<Type>::clearBreak(ClockOffset cycle) {
35 ClockListIt it = objects.begin();
36 while( it != objects.end() ) {
37 if( it->first >= cycle )
43 if( (it != objects.end()) && (it->first == cycle) )
48 void Clock<Type>::reassignBreak(ClockOffset oldCycle, ClockOffset newCycle,
51 ClockListIt it = objects.begin();
52 while( it != objects.end() ) {
53 if( it->first >= oldCycle )
59 if( (it != objects.end()) && (it->first == oldCycle) ) {
61 setBreak( newCycle, obj );
66 void Clock<Type>::reassignBreak(Type *obj, ClockOffset newCycle) {
68 setBreak( newCycle, obj );
72 void Clock<Type>::step() {
75 ClockListIt it = objects.begin();
76 while( it != objects.end() ) {
77 if( it->first >= value )
80 Type *obj = it->second;
85 objects.erase( objects.begin(), it );
89 void Clock<Type>::clearAll() {
94 void Clock<Type>::reassignBreakDelta(ClockOffset delta, Type *obj) {
96 setBreakDelta(delta, obj);