72 void set_val (
string key,
s_int32 value);
89 pair<string, s_int32> next ();
102 s_int32& operator[] (
string key);
107 hash_map<string, s_int32>
data;
108 hash_map<string, s_int32>::iterator i;
118 typedef hash_map<string, s_int32>::iterator
iterator;
128 return data.begin ();
175 void set_val (
const char * key,
storage* val);
184 storage* get_val (
const char * key);
191 void erase (
const char * key);
209 bool operator()(
const char* s1,
const char* s2)
const 211 return strcmp (s1, s2) < 0;
215 map<const char*, storage*, ltstr>
data;
216 map<const char*, storage*, ltstr>::iterator i;
230 template <
class mytype>
#define s_int32
32 bits long signed integer
Declares some basic types.
u_int32 size() const
Returns the size (number of elements) of the storage.
#define u_int32
32 bits long unsigned integer
#define u_int8
8 bits long unsigned integer
Stores objects of any kind.
storage()
Default constructor.
objects()
Default constructor.
Declares the hash<string> type, to be able to declare hash_maps with strings as keys.
iterator end()
Returns an iterator to the end of the storage.
hash_map< string, s_int32 >::iterator iterator
Storage iterator, similar to STL iterator.
iterator begin()
Returns an iterator to the beginning of the storage.
The global container for access to all the different game objects from within a script.