#include <indexRemapper.h>
Public Member Functions | |
IndexRemapper () | |
~IndexRemapper () | |
void | clear () |
Removes all mappings from the object. | |
void | add_mapping (int from, int to) |
Adds a mapping from the integer 'from' to 'to'. | |
bool | in_map (int from) const |
Returns true if the given 'from' integer has been assigned a mapping, false if it has not. | |
int | map_from (int from) const |
Returns the integer that the given 'from' integer had been set to map to, or the same integer if nothing had been set for it. | |
Private Attributes | |
map< int, int > | _map_int |
It's used in this package to resequence some or all of the index numbers in the database to a different sequence.
This class is just a wrapper around STL map. The only reason it exists is because Microsoft can't export STL map outside of the DLL.
Definition at line 50 of file indexRemapper.h.
|
Definition at line 33 of file indexRemapper.cxx. |
|
Definition at line 44 of file indexRemapper.cxx. References _map_int. |
|
Adds a mapping from the integer 'from' to 'to'.
Definition at line 69 of file indexRemapper.cxx. Referenced by InterrogateDatabase::add_function(). |
|
Removes all mappings from the object.
Definition at line 56 of file indexRemapper.cxx. References _map_int. Referenced by InterrogateDatabase::add_function(). |
|
Returns true if the given 'from' integer has been assigned a mapping, false if it has not.
Definition at line 84 of file indexRemapper.cxx. |
|
Returns the integer that the given 'from' integer had been set to map to, or the same integer if nothing had been set for it.
Definition at line 101 of file indexRemapper.cxx. Referenced by InterrogateType::input(), InterrogateManifest::input(), InterrogateFunctionWrapper::input(), InterrogateFunction::input(), and InterrogateElement::input(). |
|
Definition at line 62 of file indexRemapper.h. Referenced by clear(), and ~IndexRemapper(). |