SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::surf::PropertyHolder Class Reference

Detailed Description

a PropertyHolder can be given a set of textual properties

Common PropertyHolders are elements of the platform file, such as Host, Link or Storage.

#include <PropertyHolder.hpp>

Inheritance diagram for simgrid::surf::PropertyHolder:
simgrid::simix::ActorImpl simgrid::surf::HostImpl simgrid::surf::LinkImpl simgrid::surf::StorageImpl simgrid::surf::LinkL07 simgrid::surf::LinkNS3 simgrid::surf::NetworkCm02Link simgrid::surf::StorageN11

Public Member Functions

 PropertyHolder ()=default
 
 ~PropertyHolder ()
 
const char * getProperty (std::string key)
 Return the property associated to the provided key (or nullptr if not existing) More...
 
void setProperty (std::string id, std::string value)
 Change the value of a given key in the property set. More...
 
std::map< std::string, std::string > * getProperties ()
 Return the whole set of properties. More...
 

Constructor & Destructor Documentation

◆ PropertyHolder()

simgrid::surf::PropertyHolder::PropertyHolder ( )
default

◆ ~PropertyHolder()

simgrid::surf::PropertyHolder::~PropertyHolder ( )

Member Function Documentation

◆ getProperty()

const char * simgrid::surf::PropertyHolder::getProperty ( std::string  key)

Return the property associated to the provided key (or nullptr if not existing)

◆ setProperty()

void simgrid::surf::PropertyHolder::setProperty ( std::string  id,
std::string  value 
)

Change the value of a given key in the property set.

◆ getProperties()

std::map< std::string, std::string > * simgrid::surf::PropertyHolder::getProperties ( )

Return the whole set of properties.

Don't mess with it, dude!


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