2016-08-08 14:00:14 +00:00
|
|
|
export interface IObjectmapForEachFunction {
|
2016-07-31 12:36:28 +00:00
|
|
|
(itemArg: any): void;
|
|
|
|
}
|
2016-08-08 14:00:14 +00:00
|
|
|
export interface IObjectmapFindFunction {
|
|
|
|
(itemArg: any): boolean;
|
|
|
|
}
|
2016-07-30 22:54:46 +00:00
|
|
|
/**
|
|
|
|
* allows keeping track of objects
|
|
|
|
*/
|
|
|
|
export declare class Objectmap {
|
|
|
|
private objectArray;
|
2016-08-07 16:08:52 +00:00
|
|
|
/**
|
|
|
|
* returns a new instance
|
|
|
|
*/
|
|
|
|
constructor();
|
2016-07-31 12:36:28 +00:00
|
|
|
/**
|
|
|
|
* add object to Objectmap
|
|
|
|
*/
|
2016-07-30 22:54:46 +00:00
|
|
|
add(objectArg: any): void;
|
2016-07-31 12:36:28 +00:00
|
|
|
/**
|
|
|
|
* remove object from Objectmap
|
|
|
|
*/
|
2016-07-30 22:54:46 +00:00
|
|
|
remove(objectArg: any): void;
|
2016-07-31 12:36:28 +00:00
|
|
|
/**
|
|
|
|
* check if object is in Objectmap
|
|
|
|
*/
|
2016-07-30 22:54:46 +00:00
|
|
|
checkForObject(objectArg: any): number;
|
2016-08-08 14:00:14 +00:00
|
|
|
/**
|
|
|
|
* find object
|
|
|
|
*/
|
|
|
|
find(findFunction: IObjectmapFindFunction): any;
|
2016-07-31 12:36:28 +00:00
|
|
|
/**
|
|
|
|
* run function for each item in Objectmap
|
|
|
|
*/
|
2016-08-08 14:00:14 +00:00
|
|
|
forEach(functionArg: IObjectmapForEachFunction): void;
|
2016-07-31 12:36:28 +00:00
|
|
|
/**
|
|
|
|
* wipe Objectmap
|
|
|
|
*/
|
2016-07-30 22:54:46 +00:00
|
|
|
wipe(): void;
|
|
|
|
}
|