lik/ts/lik.looptracker.ts

19 lines
363 B
TypeScript
Raw Normal View History

2018-07-15 14:04:27 +00:00
import * as plugins from './lik.plugins';
2017-07-05 12:29:08 +00:00
2018-07-15 14:04:27 +00:00
import { Objectmap } from './lik.objectmap';
2017-07-05 12:29:08 +00:00
export class LoopTracker<T> {
referenceObjectMap = new Objectmap<any>();
constructor() {
2017-07-05 12:29:08 +00:00
// nothing here
}
/**
* checks and tracks an object
* @param objectArg
*/
checkAndTrack(objectArg: T) {
return this.referenceObjectMap.add(objectArg);
2017-07-05 12:29:08 +00:00
}
}