|
sprint 1-alpha
|
handles reference between const string list and index associa a delle stringhe allocate dall'utente un indice interno Al momento attuale non viene eseguita nessuna indicizzazione particolare e la ricerca è sequenziale all'interno della lista More...
#include <alias.h>
Public Member Functions | |
| alias (const char *static_name) | |
| inizialize an alias with a name | |
| alias (const alias &src) | |
| bool | allocate (int _alias) |
| reserve memory for alias | |
| const char ** | list () const |
| return the inner list | |
| int | operator[] (const char *strtocompare) const |
| int | append (const char *string) |
| add a new element to list | |
| unsigned int | memoryused () |
| return the memory used | |
| const char * | operator[] (int i) |
| bool | save (const char *file) |
| save the alias list on file | |
| bool | load (const char *file) |
| load the alias list from file | |
Public Attributes | |
| const char * | name |
Protected Attributes | |
| const char ** | ptr |
| the string list | |
| unsigned int | n_alias |
| current alias count | |
| unsigned int | n_max_alias |
| capacity | |
handles reference between const string list and index associa a delle stringhe allocate dall'utente un indice interno Al momento attuale non viene eseguita nessuna indicizzazione particolare e la ricerca è sequenziale all'interno della lista
| const char* sprint::alias::operator[] | ( | int | i | ) |
convert an index to string
| int sprint::alias::operator[] | ( | const char * | strtocompare | ) | const |
convert a string to index
1.7.4