SimGrid
3.18
Versatile Simulation of Distributed Systems
|
#include <Storage.hpp>
Public Member Functions | |
Storage (surf::StorageImpl *pimpl) | |
virtual | ~Storage ()=default |
std::string const & | getName () const |
Retrieves the name of that storage as a C++ string. More... | |
const char * | getCname () const |
Retrieves the name of that storage as a C string. More... | |
const char * | getType () |
Host * | getHost () |
std::map< std::string, std::string > * | getProperties () |
const char * | getProperty (std::string key) |
void | setProperty (std::string, std::string value) |
void | setUserdata (void *data) |
void * | getUserdata () |
sg_size_t | read (sg_size_t size) |
sg_size_t | write (sg_size_t size) |
surf::StorageImpl * | getImpl () |
![]() | |
Extendable () | |
~Extendable () | |
void * | extension (std::size_t rank) |
U * | extension (Extension< Storage, U > rank) |
U * | extension () |
void | extension_set (std::size_t rank, void *value, bool use_dtor=true) |
void | extension_set (Extension< Storage, U > rank, U *value, bool use_dtor=true) |
void | extension_set (U *p) |
Static Public Member Functions | |
static Storage * | byName (std::string name) |
Retrieve a Storage by its name. More... | |
![]() | |
static size_t | extension_create (void(*deleter)(void *)) |
static Extension< Storage, U > | extension_create (void(*deleter)(void *)) |
static Extension< Storage, U > | extension_create () |
Public Attributes | |
Host * | attached_to_ = nullptr |
Static Public Attributes | |
static simgrid::xbt::signal< void(s4u::Storage &)> | onCreation |
Callback signal fired when a new Link is created. More... | |
static simgrid::xbt::signal< void(s4u::Storage &)> | onDestruction |
Callback signal fired when a Link is destroyed. More... | |
|
inlineexplicit |
|
virtualdefault |
|
static |
Retrieve a Storage by its name.
It must exist in the platform file
const std::string & simgrid::s4u::Storage::getName | ( | ) | const |
Retrieves the name of that storage as a C++ string.
const char * simgrid::s4u::Storage::getCname | ( | ) | const |
Retrieves the name of that storage as a C string.
const char * simgrid::s4u::Storage::getType | ( | ) |
Host * simgrid::s4u::Storage::getHost | ( | ) |
std::map< std::string, std::string > * simgrid::s4u::Storage::getProperties | ( | ) |
const char * simgrid::s4u::Storage::getProperty | ( | std::string | key | ) |
void simgrid::s4u::Storage::setProperty | ( | std::string | key, |
std::string | value | ||
) |
|
inline |
|
inline |
|
static |
Callback signal fired when a new Link is created.
|
static |
Callback signal fired when a Link is destroyed.
Host* simgrid::s4u::Storage::attached_to_ = nullptr |