Choreonoid  1.5
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cnoid::MultiSeq< ElementType, Allocator > Class Template Reference

#include <MultiSeq.h>

Inheritance diagram for cnoid::MultiSeq< ElementType, Allocator >:
cnoid::Deque2D< ElementType, Allocator > cnoid::AbstractMultiSeq cnoid::AbstractSeq

Public Types

typedef Deque2D< ElementType, Allocator > Container
 
typedef Container::Element Element
 
typedef boost::shared_ptr< MultiSeqTypePtr
 
typedef Container::Row Frame
 
typedef Container::Column Part
 
- Public Types inherited from cnoid::Deque2D< ElementType, Allocator >
typedef ElementType Element
 

Public Member Functions

 MultiSeq (const char *seqType)
 
 MultiSeq (const char *seqType, int numFrames, int numParts)
 
 MultiSeq (const MultiSeqType &org)
 
virtual ~MultiSeq ()
 
MultiSeqTypeoperator= (const MultiSeqType &rhs)
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs)
 
virtual AbstractSeqPtr cloneSeq () const
 
void copySeqProperties (const MultiSeqType &source)
 
virtual void setDimension (int newNumFrames, int newNumParts, bool clearNewElements=false)
 
virtual double getFrameRate () const
 
double frameRate () const
 
virtual void setFrameRate (double frameRate)
 
const double timeStep () const
 
virtual void setNumParts (int newNumParts, bool clearNewElements=false)
 
virtual int getNumFrames () const
 
int numFrames () const
 
virtual void setNumFrames (int newNumFrames, bool clearNewElements=false)
 
void clearFrames ()
 
virtual int getNumParts () const
 
int numParts () const
 
double timeLength () const
 
void setOffsetTimeFrame (int frameOffset)
 
int offsetTimeFrame () const
 
virtual int getOffsetTimeFrame () const
 
int frameOfTime (double time) const
 
double timeOfFrame (int frame) const
 
const Part part (int index) const
 
Part part (int index)
 
Frame frame (int index)
 
const Frame frame (int index) const
 
void popFrontFrame ()
 
Frame appendFrame ()
 
int clampFrameIndex (int frameIndex)
 
- Public Member Functions inherited from cnoid::Deque2D< ElementType, Allocator >
iterator begin ()
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator cend () const
 
 Deque2D ()
 
 Deque2D (int rowSize, int colSize)
 
 Deque2D (const Deque2D< ElementType, Allocator > &org)
 
Deque2DTypeoperator= (const Deque2DType &rhs)
 
virtual ~Deque2D ()
 
bool empty () const
 
void resize (int newRowSize, int newColSize)
 
void resizeColumn (int newColSize)
 
int rowSize () const
 
void resizeRow (int newRowSize)
 
int colSize () const
 
void clear ()
 
const Elementoperator() (int rowIndex, int colIndex) const
 
Elementoperator() (int rowIndex, int colIndex)
 
const Elementat (int rowIndex, int colIndex) const
 
Elementat (int rowIndex, int colIndex)
 
Row operator[] (int rowIndex)
 
const Row operator[] (int rowIndex) const
 
Row row (int rowIndex)
 
const Row row (int rowIndex) const
 
Row last ()
 
const Row last () const
 
Column column (int colIndex)
 
const Column column (int colIndex) const
 
Row append ()
 
void pop_back ()
 
void pop_front (int numRows)
 
void pop_front ()
 
- Public Member Functions inherited from cnoid::AbstractMultiSeq
 AbstractMultiSeq (const char *seqType)
 
 AbstractMultiSeq (const AbstractMultiSeq &org)
 
virtual ~AbstractMultiSeq ()
 
AbstractMultiSeqoperator= (const AbstractMultiSeq &rhs)
 
void copySeqProperties (const AbstractMultiSeq &source)
 
virtual int partIndex (const std::string &partLabel) const
 
virtual const std::string & partLabel (int partIndex) const
 
- Public Member Functions inherited from cnoid::AbstractSeq
virtual ~AbstractSeq ()
 
void copySeqProperties (const AbstractSeq &source)
 
const std::string & seqType () const
 
double getTimeStep () const
 
void setTimeStep (double timeStep)
 
double getTimeOfFrame (int frame)
 
double getOffsetTime () const
 
void setTimeLength (double length, bool clearNewElements=false)
 
double getTimeLength () const
 
const std::string & seqContentName ()
 
virtual void setSeqContentName (const std::string &content)
 
bool readSeq (const Mapping &archive)
 
bool writeSeq (YAMLWriter &writer)
 
const std::string & seqMessage () const
 

Protected Member Functions

virtual ElementType defaultValue () const
 
- Protected Member Functions inherited from cnoid::AbstractMultiSeq
virtual bool doWriteSeq (YAMLWriter &writer)
 
bool readSeqPartLabels (const Mapping &archive, SetPartLabelFunction setPartLabel)
 
bool writeSeqPartLabels (YAMLWriter &writer)
 
- Protected Member Functions inherited from cnoid::AbstractSeq
 AbstractSeq (const char *seqType)
 
 AbstractSeq (const AbstractSeq &org)
 
virtual bool doReadSeq (const Mapping &archive)
 
bool checkSeqContent (const Mapping &archive, const std::string contentName, bool throwEx=false)
 
void clearSeqMessage ()
 
void addSeqMessage (const std::string &message)
 

Protected Attributes

double frameRate_
 
int offsetTimeFrame_
 

Additional Inherited Members

- Static Public Member Functions inherited from cnoid::AbstractSeq
static const double defaultFrameRate ()
 
- Protected Types inherited from cnoid::AbstractMultiSeq
typedef boost::function< void(const std::string &label, int index)> SetPartLabelFunction
 

Member Typedef Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef Deque2D<ElementType, Allocator> cnoid::MultiSeq< ElementType, Allocator >::Container
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef Container::Element cnoid::MultiSeq< ElementType, Allocator >::Element
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef Container::Row cnoid::MultiSeq< ElementType, Allocator >::Frame
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef Container::Column cnoid::MultiSeq< ElementType, Allocator >::Part
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
typedef boost::shared_ptr< MultiSeqType > cnoid::MultiSeq< ElementType, Allocator >::Ptr

Constructor & Destructor Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::MultiSeq< ElementType, Allocator >::MultiSeq ( const char *  seqType)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::MultiSeq< ElementType, Allocator >::MultiSeq ( const char *  seqType,
int  numFrames,
int  numParts 
)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
cnoid::MultiSeq< ElementType, Allocator >::MultiSeq ( const MultiSeqType org)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual cnoid::MultiSeq< ElementType, Allocator >::~MultiSeq ( )
inlinevirtual

Member Function Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Frame cnoid::MultiSeq< ElementType, Allocator >::appendFrame ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::clampFrameIndex ( int  frameIndex)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::MultiSeq< ElementType, Allocator >::clearFrames ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual AbstractSeqPtr cnoid::MultiSeq< ElementType, Allocator >::cloneSeq ( ) const
inlinevirtual
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::MultiSeq< ElementType, Allocator >::copySeqProperties ( const MultiSeqType source)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual ElementType cnoid::MultiSeq< ElementType, Allocator >::defaultValue ( ) const
inlineprotectedvirtual
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Frame cnoid::MultiSeq< ElementType, Allocator >::frame ( int  index)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const Frame cnoid::MultiSeq< ElementType, Allocator >::frame ( int  index) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::frameOfTime ( double  time) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
double cnoid::MultiSeq< ElementType, Allocator >::frameRate ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual double cnoid::MultiSeq< ElementType, Allocator >::getFrameRate ( ) const
inlinevirtual

Implements cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual int cnoid::MultiSeq< ElementType, Allocator >::getNumFrames ( ) const
inlinevirtual

Implements cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual int cnoid::MultiSeq< ElementType, Allocator >::getNumParts ( ) const
inlinevirtual
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual int cnoid::MultiSeq< ElementType, Allocator >::getOffsetTimeFrame ( ) const
inlinevirtual

Reimplemented from cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::numFrames ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::numParts ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::offsetTimeFrame ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
MultiSeqType& cnoid::MultiSeq< ElementType, Allocator >::operator= ( const MultiSeqType rhs)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual AbstractSeq& cnoid::MultiSeq< ElementType, Allocator >::operator= ( const AbstractSeq rhs)
inlinevirtual

Reimplemented from cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const Part cnoid::MultiSeq< ElementType, Allocator >::part ( int  index) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
Part cnoid::MultiSeq< ElementType, Allocator >::part ( int  index)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::MultiSeq< ElementType, Allocator >::popFrontFrame ( )
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual void cnoid::MultiSeq< ElementType, Allocator >::setDimension ( int  newNumFrames,
int  newNumParts,
bool  clearNewElements = false 
)
inlinevirtual
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual void cnoid::MultiSeq< ElementType, Allocator >::setFrameRate ( double  frameRate)
inlinevirtual

Implements cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual void cnoid::MultiSeq< ElementType, Allocator >::setNumFrames ( int  newNumFrames,
bool  clearNewElements = false 
)
inlinevirtual

Implements cnoid::AbstractSeq.

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
virtual void cnoid::MultiSeq< ElementType, Allocator >::setNumParts ( int  newNumParts,
bool  clearNewElements = false 
)
inlinevirtual
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
void cnoid::MultiSeq< ElementType, Allocator >::setOffsetTimeFrame ( int  frameOffset)
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
double cnoid::MultiSeq< ElementType, Allocator >::timeLength ( ) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
double cnoid::MultiSeq< ElementType, Allocator >::timeOfFrame ( int  frame) const
inline
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
const double cnoid::MultiSeq< ElementType, Allocator >::timeStep ( ) const
inline

Member Data Documentation

template<typename ElementType, typename Allocator = std::allocator<ElementType>>
double cnoid::MultiSeq< ElementType, Allocator >::frameRate_
protected
template<typename ElementType, typename Allocator = std::allocator<ElementType>>
int cnoid::MultiSeq< ElementType, Allocator >::offsetTimeFrame_
protected

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