SimGrid  3.17
Versatile Simulation of Distributed Systems
simgrid::s4u::Storage Class Reference

#include <Storage.hpp>

Public Member Functions

 Storage (surf::StorageImpl *pimpl)
 
virtual ~Storage ()=default
 
const char * getName ()
 
const char * getType ()
 
HostgetHost ()
 
sg_size_t getSize ()
 
sg_size_t getSizeFree ()
 Retrieve the total amount of space of this storage element. More...
 
sg_size_t getSizeUsed ()
 
std::map< std::string, std::string > * getProperties ()
 
const char * getProperty (const char *key)
 
void setProperty (const char *key, const char *value)
 
std::map< std::string, sg_size_t > * getContent ()
 
void setUserdata (void *data)
 
voidgetUserdata ()
 
surf::StorageImplgetImpl ()
 

Static Public Member Functions

static StoragebyName (std::string name)
 Retrieve a Storage by its name. More...
 

Public Attributes

Hostattached_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...
 

Constructor & Destructor Documentation

◆ Storage()

simgrid::s4u::Storage::Storage ( surf::StorageImpl pimpl)
inlineexplicit

◆ ~Storage()

virtual simgrid::s4u::Storage::~Storage ( )
virtualdefault

Member Function Documentation

◆ byName()

Storage * simgrid::s4u::Storage::byName ( std::string  name)
static

Retrieve a Storage by its name.

It must exist in the platform file

◆ getName()

const char * simgrid::s4u::Storage::getName ( )

◆ getType()

const char * simgrid::s4u::Storage::getType ( )

◆ getHost()

Host * simgrid::s4u::Storage::getHost ( )

◆ getSize()

sg_size_t simgrid::s4u::Storage::getSize ( )

◆ getSizeFree()

sg_size_t simgrid::s4u::Storage::getSizeFree ( )

Retrieve the total amount of space of this storage element.

◆ getSizeUsed()

sg_size_t simgrid::s4u::Storage::getSizeUsed ( )

◆ getProperties()

std::map< std::string, std::string > * simgrid::s4u::Storage::getProperties ( )

◆ getProperty()

const char * simgrid::s4u::Storage::getProperty ( const char *  key)

◆ setProperty()

void simgrid::s4u::Storage::setProperty ( const char *  key,
const char *  value 
)

◆ getContent()

std::map< std::string, sg_size_t > * simgrid::s4u::Storage::getContent ( )

◆ setUserdata()

void simgrid::s4u::Storage::setUserdata ( void data)
inline

◆ getUserdata()

void* simgrid::s4u::Storage::getUserdata ( )
inline

◆ getImpl()

surf::StorageImpl* simgrid::s4u::Storage::getImpl ( )
inline

Member Data Documentation

◆ onCreation

simgrid::xbt::signal< void(s4u::Storage &)> simgrid::s4u::Storage::onCreation
static

Callback signal fired when a new Link is created.

◆ onDestruction

simgrid::xbt::signal< void(s4u::Storage &)> simgrid::s4u::Storage::onDestruction
static

Callback signal fired when a Link is destroyed.

◆ attached_to_

Host* simgrid::s4u::Storage::attached_to_ = nullptr

The documentation for this class was generated from the following files: