SimGrid
3.18
Versatile Simulation of Distributed Systems
|
Storage structure of MSG (msg_storage_t) and associated functions, inspired from POSIX.
(msg_storage_t) and the functions for managing it.
Typedefs | |
typedef sg_storage_t | msg_storage_t |
Storage datatype. More... | |
Functions | |
const char * | MSG_storage_get_name (msg_storage_t storage) |
Returns the name of the msg_storage_t. More... | |
xbt_dict_t | MSG_storage_get_properties (msg_storage_t storage) |
Returns a xbt_dict_t consisting of the list of properties assigned to this storage. More... | |
void | MSG_storage_set_property_value (msg_storage_t storage, const char *name, char *value) |
Change the value of a given storage property. More... | |
msg_storage_t | MSG_storage_get_by_name (const char *name) |
Finds a msg_storage_t using its name. More... | |
xbt_dynar_t | MSG_storages_as_dynar () |
Returns a dynar containing all the storage elements declared at a given point of time. More... | |
typedef sg_storage_t msg_storage_t |
Storage datatype.
You should consider this as an opaque object.
const char* MSG_storage_get_name | ( | msg_storage_t | storage | ) |
Returns the name of the msg_storage_t.
This functions checks whether a storage is a valid pointer or not and return its name.
xbt_dict_t MSG_storage_get_properties | ( | msg_storage_t | storage | ) |
Returns a xbt_dict_t consisting of the list of properties assigned to this storage.
storage | a storage |
void MSG_storage_set_property_value | ( | msg_storage_t | storage, |
const char * | name, | ||
char * | value | ||
) |
Change the value of a given storage property.
storage | a storage |
name | a property name |
value | what to change the property to |
msg_storage_t MSG_storage_get_by_name | ( | const char * | name | ) |
Finds a msg_storage_t using its name.
name | the name of a storage |
xbt_dynar_t MSG_storages_as_dynar | ( | ) |
Returns a dynar containing all the storage elements declared at a given point of time.