68 void set_val (
string key,
s_int32 value);
85 pair<string, s_int32> next ();
98 s_int32& operator[] (
string key);
103 hash_map<string, s_int32>
data;
104 hash_map<string, s_int32>::iterator i;
114 typedef hash_map<string, s_int32>::iterator
iterator;
124 return data.begin ();
171 void set_val (
const char * key,
storage* val);
180 storage* get_val (
const char * key);
187 void erase (
const char * key);
205 bool operator()(
const char* s1,
const char* s2)
const 207 return strcmp (s1, s2) < 0;
211 map<const char*, storage*, ltstr>
data;
212 map<const char*, storage*, ltstr>::iterator i;
226 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.