|
sprint 1-alpha
|
associate string and index è un map tra stringhe e interi More...
#include <alias_map.h>
Classes | |
| struct | ltstr |
Public Member Functions | |
| AliasMap (const char *_name=NULL) | |
| AliasMap (const AliasMap &src) | |
| bool | push (const char *string, int val) |
| inserisce una coppia stringa = valore | |
| int | operator[] (const char *string) |
| cerca stringa nel map e se non lo trova restituisce comunque atoi della stringa | |
| const char * | operator[] (int value) |
| bool | load (const char *file) |
| un file di coppie chiave = valore | |
| bool | save (const char *file) |
Protected Member Functions | |
| void | resize (unsigned int __new_size) |
associate string and index è un map tra stringhe e interi
| const char* sprint::alias_map::operator[] | ( | int | value | ) |
cerca il valore unico e restituisce l'alias associato, o al massimo la conversione in stringa di tale valore
1.7.4