creaContours_lib
|
#include <PrefixMaxKeyGenerator.h>
Public Member Functions | |
PrefixMaxKeyGenerator () | |
~PrefixMaxKeyGenerator () | |
bool | addKeyThing (std::string theName, std::string thePrefix, int theMax=0) |
void | removeKeyThing (std::string theName) |
bool | existsKeyThing (std::string theName) |
void | updateMaxTo (std::string theName, int posibleMax) |
bool | generateKeyOf (std::string theName, std::string &theInputString) |
bool | generateKeyOf (std::string theName, int posibleMax, std::string &theInputString) |
bool | getPrefixOf (std::string theName, std::string &theInputString) |
int | getCurrentMaxOf (std::string theName) |
int | getTotalThingsNumber () |
void | clear () |
Private Attributes | |
int | numberOfKeyThings |
std::map< std::string, KeyThing > | keyThings |
Definition at line 45 of file PrefixMaxKeyGenerator.h.
PrefixMaxKeyGenerator::PrefixMaxKeyGenerator | ( | ) |
Definition at line 44 of file PrefixMaxKeyGenerator.cxx.
References numberOfKeyThings.
PrefixMaxKeyGenerator::~PrefixMaxKeyGenerator | ( | ) |
Definition at line 52 of file PrefixMaxKeyGenerator.cxx.
References clear().
bool PrefixMaxKeyGenerator::addKeyThing | ( | std::string | theName, |
std::string | thePrefix, | ||
int | theMax = 0 |
||
) |
Definition at line 69 of file PrefixMaxKeyGenerator.cxx.
References keyThings.
Referenced by OutlineModelManager::OutlineModelManager().
void PrefixMaxKeyGenerator::clear | ( | ) |
Definition at line 213 of file PrefixMaxKeyGenerator.cxx.
References keyThings, and numberOfKeyThings.
Referenced by OutlineModelManager::clean(), and ~PrefixMaxKeyGenerator().
bool PrefixMaxKeyGenerator::existsKeyThing | ( | std::string | theName | ) |
Definition at line 93 of file PrefixMaxKeyGenerator.cxx.
References keyThings.
bool PrefixMaxKeyGenerator::generateKeyOf | ( | std::string | theName, |
std::string & | theInputString | ||
) |
Definition at line 120 of file PrefixMaxKeyGenerator.cxx.
References KeyThing::getPrefix(), KeyThing::getValue(), and keyThings.
Referenced by OutlineModelManager::addAxe(), OutlineModelManager::addImageSection(), OutlineModelManager::addImageSource(), and OutlineModelManager::addOutline().
bool PrefixMaxKeyGenerator::generateKeyOf | ( | std::string | theName, |
int | posibleMax, | ||
std::string & | theInputString | ||
) |
Definition at line 143 of file PrefixMaxKeyGenerator.cxx.
References KeyThing::getPrefix(), KeyThing::getValue(), keyThings, and KeyThing::setValue().
int PrefixMaxKeyGenerator::getCurrentMaxOf | ( | std::string | theName | ) |
Definition at line 190 of file PrefixMaxKeyGenerator.cxx.
References KeyThing::getValue(), and keyThings.
bool PrefixMaxKeyGenerator::getPrefixOf | ( | std::string | theName, |
std::string & | theInputString | ||
) |
Definition at line 172 of file PrefixMaxKeyGenerator.cxx.
References KeyThing::getPrefix(), and keyThings.
int PrefixMaxKeyGenerator::getTotalThingsNumber | ( | ) |
Definition at line 205 of file PrefixMaxKeyGenerator.cxx.
References keyThings.
void PrefixMaxKeyGenerator::removeKeyThing | ( | std::string | theName | ) |
Definition at line 82 of file PrefixMaxKeyGenerator.cxx.
References keyThings.
void PrefixMaxKeyGenerator::updateMaxTo | ( | std::string | theName, |
int | posibleMax | ||
) |
Definition at line 103 of file PrefixMaxKeyGenerator.cxx.
References keyThings.
|
private |
Definition at line 155 of file PrefixMaxKeyGenerator.h.
Referenced by addKeyThing(), clear(), existsKeyThing(), generateKeyOf(), getCurrentMaxOf(), getPrefixOf(), getTotalThingsNumber(), removeKeyThing(), and updateMaxTo().
|
private |
Definition at line 150 of file PrefixMaxKeyGenerator.h.
Referenced by clear(), and PrefixMaxKeyGenerator().