WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Static Public Member Functions | List of all members
wrench::PointerUtil Class Reference

A helper class that implements useful smart pointer operations. More...

#include <PointerUtil.h>

Static Public Member Functions

template<class T >
static void moveSharedPtrFromSetToSet (typename std::set< std::shared_ptr< T >>::iterator it, std::set< std::shared_ptr< T >> *from, std::set< std::shared_ptr< T >> *to)
 A helper method to move a shared_ptr from a set to another. More...
 
template<class T >
static void moveUniquePtrFromSetToSet (typename std::set< std::unique_ptr< T >>::iterator it, std::set< std::unique_ptr< T >> *from, std::set< std::unique_ptr< T >> *to)
 A helper method to move a unique_ptr from a set to another. More...
 

Detailed Description

A helper class that implements useful smart pointer operations.

Member Function Documentation

◆ moveSharedPtrFromSetToSet()

template<class T >
static void wrench::PointerUtil::moveSharedPtrFromSetToSet ( typename std::set< std::shared_ptr< T >>::iterator  it,
std::set< std::shared_ptr< T >> *  from,
std::set< std::shared_ptr< T >> *  to 
)
inlinestatic

A helper method to move a shared_ptr from a set to another.

Template Parameters
templateclass
Parameters
ititerator
frompointer to the set in which the object is
topointer to the set to which the object should be moved

◆ moveUniquePtrFromSetToSet()

template<class T >
static void wrench::PointerUtil::moveUniquePtrFromSetToSet ( typename std::set< std::unique_ptr< T >>::iterator  it,
std::set< std::unique_ptr< T >> *  from,
std::set< std::unique_ptr< T >> *  to 
)
inlinestatic

A helper method to move a unique_ptr from a set to another.

Template Parameters
templateclass
Parameters
ititerator
frompointer to the set in which the object is
topointer to the set to which the object should be moved

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