Choreonoid  1.8
Classes | Public Types | Public Member Functions | List of all members
cnoid::CloneMap Class Reference

#include <CloneMap.h>

Classes

class  FlagId
 

Public Types

typedef std::function< Referenced *(const Referenced *org)> CloneFunction
 

Public Member Functions

 CloneMap ()
 
 CloneMap (const CloneFunction &cloneFunction)
 
 CloneMap (const CloneMap &org)
 
virtual ~CloneMap ()
 
void clear ()
 
void setClone (const Referenced *org, Referenced *clone)
 
template<class ObjectType >
ObjectType * findClone (const ObjectType *org)
 
template<class ObjectType >
ObjectType * findClone (ref_ptr< ObjectType > org)
 
template<class ObjectType >
ObjectType * getClone (const ObjectType *org)
 
template<class ObjectType >
ObjectType * getClone (ref_ptr< ObjectType > org)
 
template<class ObjectType >
ObjectType * getClone (const ObjectType *org, std::function< ObjectType *(const ObjectType *org)> cloneFunction)
 
template<class ObjectType >
ObjectType * getClone (ref_ptr< ObjectType > org, std::function< ObjectType *(const ObjectType *org)> cloneFunction)
 
template<class ObjectType >
ObjectType * findCloneOrReplaceLater (const ObjectType *org, std::function< void(ObjectType *clone)> replaceFunction)
 
void replacePendingObjects ()
 
void setOriginalAsClone (const Referenced *org)
 
bool flag (int id) const
 
void setFlag (int id, bool on)
 

Member Typedef Documentation

◆ CloneFunction

typedef std::function<Referenced*(const Referenced* org)> cnoid::CloneMap::CloneFunction

Constructor & Destructor Documentation

◆ CloneMap() [1/3]

CloneMap::CloneMap ( )

◆ CloneMap() [2/3]

CloneMap::CloneMap ( const CloneFunction cloneFunction)

◆ CloneMap() [3/3]

CloneMap::CloneMap ( const CloneMap org)

◆ ~CloneMap()

CloneMap::~CloneMap ( )
virtual

Member Function Documentation

◆ clear()

void CloneMap::clear ( )

◆ findClone() [1/2]

template<class ObjectType >
ObjectType* cnoid::CloneMap::findClone ( const ObjectType *  org)
inline

◆ findClone() [2/2]

template<class ObjectType >
ObjectType* cnoid::CloneMap::findClone ( ref_ptr< ObjectType >  org)
inline

◆ findCloneOrReplaceLater()

template<class ObjectType >
ObjectType* cnoid::CloneMap::findCloneOrReplaceLater ( const ObjectType *  org,
std::function< void(ObjectType *clone)>  replaceFunction 
)
inline

◆ flag()

bool cnoid::CloneMap::flag ( int  id) const
inline

◆ getClone() [1/4]

template<class ObjectType >
ObjectType* cnoid::CloneMap::getClone ( const ObjectType *  org)
inline

◆ getClone() [2/4]

template<class ObjectType >
ObjectType* cnoid::CloneMap::getClone ( const ObjectType *  org,
std::function< ObjectType *(const ObjectType *org)>  cloneFunction 
)
inline

◆ getClone() [3/4]

template<class ObjectType >
ObjectType* cnoid::CloneMap::getClone ( ref_ptr< ObjectType >  org)
inline

◆ getClone() [4/4]

template<class ObjectType >
ObjectType* cnoid::CloneMap::getClone ( ref_ptr< ObjectType >  org,
std::function< ObjectType *(const ObjectType *org)>  cloneFunction 
)
inline

◆ replacePendingObjects()

void CloneMap::replacePendingObjects ( )

◆ setClone()

void CloneMap::setClone ( const Referenced org,
Referenced clone 
)

◆ setFlag()

void cnoid::CloneMap::setFlag ( int  id,
bool  on 
)
inline

◆ setOriginalAsClone()

void CloneMap::setOriginalAsClone ( const Referenced org)

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