XBT_PUBLIC_CLASS Actor {
friend Mailbox;
friend simgrid::simix::ActorImpl;
- smx_actor_t pimpl_ = nullptr;
+ simix::ActorImpl* pimpl_ = nullptr;
/** Wrap a (possibly non-copyable) single-use task into a `std::function` */
template<class F, class... Args>
}
const char* Link::name()
{
- return pimpl_->getName();
+ return this->pimpl_->getName();
}
bool Link::isUsed()
{
- return pimpl_->isUsed();
+ return this->pimpl_->isUsed();
}
double Link::latency()
{
- return pimpl_->latency();
+ return this->pimpl_->latency();
}
double Link::bandwidth()
{
- return pimpl_->bandwidth();
+ return this->pimpl_->bandwidth();
}
int Link::sharingPolicy()
{
- return pimpl_->sharingPolicy();
+ return this->pimpl_->sharingPolicy();
}
void Link::turnOn()
void* Link::getData()
{
- return pimpl_->getData();
+ return this->pimpl_->getData();
}
void Link::setData(void* d)
{
* @details A Link represents the link between two [hosts](\ref simgrid::surf::HostImpl)
*/
class LinkImpl : public simgrid::surf::Resource, public simgrid::surf::PropertyHolder {
- public:
- /** @brief Constructor of LMM links */
- LinkImpl(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint);
-
- /* Link destruction logic */
- /**************************/
protected:
+ LinkImpl(simgrid::surf::NetworkModel* model, const char* name, lmm_constraint_t constraint);
~LinkImpl() override;
public:
void destroy(); // Must be called instead of the destructor