Choreonoid  1.8
Public Member Functions | Protected Member Functions | Friends | List of all members
cnoid::MprPositionList Class Reference

#include <MprPositionList.h>

Inheritance diagram for cnoid::MprPositionList:
cnoid::ClonableReferenced cnoid::Referenced

Public Member Functions

 MprPositionList ()
 
 ~MprPositionList ()
 
MprPositionListclone () const
 
MprPositionListclone (CloneMap &cloneMap) const
 
void setStringIdEnabled (bool on)
 
bool isStringIdEnabled () const
 
void clear ()
 
int numPositions () const
 
const MprPositionpositionAt (int index) const
 
MprPositionpositionAt (int index)
 
int indexOf (MprPosition *position)
 
MprPositionfindPosition (const GeneralId &id) const
 
bool insert (int index, MprPosition *position)
 
bool append (MprPosition *position)
 
bool replace (int index, MprPosition *position)
 
void removeAt (int index)
 
SignalProxy< void(int index)> sigPositionAdded ()
 
SignalProxy< void(int index, MprPosition *position)> sigPositionRemoved ()
 
SignalProxy< void(int index, int flags)> sigPositionUpdated ()
 
bool resetId (MprPosition *position, const GeneralId &newId)
 
int removeUnreferencedPositions (std::function< bool(MprPosition *position)> isReferenced)
 
void resetIdCounter ()
 
GeneralId createNextId (int prevId=-1)
 
bool read (const Mapping &archive)
 
bool write (Mapping &archive) const
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 MprPositionList (const MprPositionList &org, CloneMap *cloneMap)
 
virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Friends

class MprPosition
 

Constructor & Destructor Documentation

◆ MprPositionList() [1/2]

MprPositionList::MprPositionList ( )

◆ ~MprPositionList()

MprPositionList::~MprPositionList ( )

◆ MprPositionList() [2/2]

MprPositionList::MprPositionList ( const MprPositionList org,
CloneMap cloneMap 
)
protected

Member Function Documentation

◆ append()

bool MprPositionList::append ( MprPosition position)

◆ clear()

void MprPositionList::clear ( )

◆ clone() [1/2]

MprPositionList* cnoid::MprPositionList::clone ( ) const
inline

◆ clone() [2/2]

MprPositionList* cnoid::MprPositionList::clone ( CloneMap cloneMap) const
inline

◆ createNextId()

GeneralId MprPositionList::createNextId ( int  prevId = -1)

◆ doClone()

Referenced * MprPositionList::doClone ( CloneMap cloneMap) const
overrideprotectedvirtual

◆ findPosition()

MprPosition * MprPositionList::findPosition ( const GeneralId id) const

◆ indexOf()

int MprPositionList::indexOf ( MprPosition position)

◆ insert()

bool MprPositionList::insert ( int  index,
MprPosition position 
)

◆ isStringIdEnabled()

bool MprPositionList::isStringIdEnabled ( ) const

◆ numPositions()

int MprPositionList::numPositions ( ) const

◆ positionAt() [1/2]

MprPosition * MprPositionList::positionAt ( int  index)

◆ positionAt() [2/2]

const MprPosition * MprPositionList::positionAt ( int  index) const

◆ read()

bool MprPositionList::read ( const Mapping archive)

◆ removeAt()

void MprPositionList::removeAt ( int  index)

◆ removeUnreferencedPositions()

int MprPositionList::removeUnreferencedPositions ( std::function< bool(MprPosition *position)>  isReferenced)

◆ replace()

bool MprPositionList::replace ( int  index,
MprPosition position 
)

◆ resetId()

bool MprPositionList::resetId ( MprPosition position,
const GeneralId newId 
)
Returns
true if the id is successfully changed. false if the id is not changed because anther coordinate frame with the same id is exists.

◆ resetIdCounter()

void MprPositionList::resetIdCounter ( )

◆ setStringIdEnabled()

void MprPositionList::setStringIdEnabled ( bool  on)

◆ sigPositionAdded()

SignalProxy< void(int index)> MprPositionList::sigPositionAdded ( )

◆ sigPositionRemoved()

SignalProxy< void(int index, MprPosition *position)> MprPositionList::sigPositionRemoved ( )

◆ sigPositionUpdated()

SignalProxy< void(int index, int flags)> MprPositionList::sigPositionUpdated ( )

◆ write()

bool MprPositionList::write ( Mapping archive) const

Friends And Related Function Documentation

◆ MprPosition

friend class MprPosition
friend

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