Choreonoid  1.8
Public Types | Public Member Functions | List of all members
cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType > Class Template Reference

#include <PolymorphicReferencedArray.h>

Inheritance diagram for cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >:
cnoid::PolymorphicReferencedArrayBase< Referenced >

Public Types

typedef PolymorphicReferencedArrayBase< BaseReferencedType > ArrayBase
 
typedef Container::value_type value_type
 
typedef Container::iterator iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::reference reference
 
typedef Container::const_reference const_reference
 

Public Member Functions

 PolymorphicReferencedArray ()
 
template<class RhsReferencedType , class RhsPointerType >
 PolymorphicReferencedArray (const PolymorphicReferencedArray< RhsReferencedType, BaseReferencedType, RhsPointerType > &rhs)
 
virtual ~PolymorphicReferencedArray ()
 
virtual bool try_push_back (BaseReferencedType *obj)
 
bool operator== (const PolymorphicReferencedArray &rhs) const
 
bool operator!= (const PolymorphicReferencedArray &rhs) const
 
template<class RhsReferencedType , class RhsPointerType >
PolymorphicReferencedArrayassign (const PolymorphicReferencedArray< RhsReferencedType, BaseReferencedType, RhsPointerType > &another)
 
template<class RetReferencedType , class RetPointerType >
PolymorphicReferencedArrayoperator<< (const PolymorphicReferencedArray< RetReferencedType, BaseReferencedType, RetPointerType > &rhs)
 
template<class RetReferencedType , class RetPointerType >
bool extractFrom (PolymorphicReferencedArray< RetReferencedType, BaseReferencedType, RetPointerType > &another)
 
template<class RetReferencedType >
PolymorphicReferencedArray extract ()
 
bool empty () const
 
void reserve (size_t size)
 
void resize (size_t size)
 
std::size_t size () const
 
virtual size_t get_size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
PointerType & back ()
 
const PointerType & back () const
 
PointerType & front ()
 
const PointerType & front () const
 
PointerType & operator[] (std::size_t i)
 
const PointerType & operator[] (std::size_t i) const
 
virtual BaseReferencedType * get_element (size_t i)
 
virtual const BaseReferencedType * get_element (size_t i) const
 
void clear ()
 
virtual void clear_elements ()
 
void push_back (const PointerType &obj)
 
void pop_back ()
 
iterator erase (iterator pos)
 
- Public Member Functions inherited from cnoid::PolymorphicReferencedArrayBase< Referenced >
virtual ~PolymorphicReferencedArrayBase ()
 
virtual bool try_push_back (Referenced *obj)=0
 
virtual size_t get_size () const=0
 

Member Typedef Documentation

◆ ArrayBase

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef PolymorphicReferencedArrayBase<BaseReferencedType> cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::ArrayBase

◆ const_iterator

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef Container::const_iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::const_iterator

◆ const_reference

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef Container::const_reference cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::const_reference

◆ iterator

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef Container::iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::iterator

◆ reference

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef Container::reference cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::reference

◆ value_type

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
typedef Container::value_type cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::value_type

Constructor & Destructor Documentation

◆ PolymorphicReferencedArray() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::PolymorphicReferencedArray ( )
inline

◆ PolymorphicReferencedArray() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
template<class RhsReferencedType , class RhsPointerType >
cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::PolymorphicReferencedArray ( const PolymorphicReferencedArray< RhsReferencedType, BaseReferencedType, RhsPointerType > &  rhs)
inline

◆ ~PolymorphicReferencedArray()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::~PolymorphicReferencedArray ( )
inlinevirtual

Member Function Documentation

◆ assign()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
template<class RhsReferencedType , class RhsPointerType >
PolymorphicReferencedArray& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::assign ( const PolymorphicReferencedArray< RhsReferencedType, BaseReferencedType, RhsPointerType > &  another)
inline

◆ back() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::back ( )
inline

◆ back() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
const PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::back ( ) const
inline

◆ begin() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::begin ( )
inline

◆ begin() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
const_iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::begin ( ) const
inline

◆ clear()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::clear ( )
inline

◆ clear_elements()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::clear_elements ( )
inlinevirtual

◆ empty()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
bool cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::empty ( ) const
inline

◆ end() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::end ( )
inline

◆ end() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
const_iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::end ( ) const
inline

◆ erase()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
iterator cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::erase ( iterator  pos)
inline

◆ extract()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
template<class RetReferencedType >
PolymorphicReferencedArray cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::extract ( )
inline

◆ extractFrom()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
template<class RetReferencedType , class RetPointerType >
bool cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::extractFrom ( PolymorphicReferencedArray< RetReferencedType, BaseReferencedType, RetPointerType > &  another)
inline

◆ front() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::front ( )
inline

◆ front() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
const PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::front ( ) const
inline

◆ get_element() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual BaseReferencedType* cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::get_element ( size_t  i)
inlinevirtual

◆ get_element() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual const BaseReferencedType* cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::get_element ( size_t  i) const
inlinevirtual

◆ get_size()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual size_t cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::get_size ( ) const
inlinevirtual

◆ operator!=()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
bool cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::operator!= ( const PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType > &  rhs) const
inline

◆ operator<<()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
template<class RetReferencedType , class RetPointerType >
PolymorphicReferencedArray& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::operator<< ( const PolymorphicReferencedArray< RetReferencedType, BaseReferencedType, RetPointerType > &  rhs)
inline

◆ operator==()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
bool cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::operator== ( const PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType > &  rhs) const
inline

◆ operator[]() [1/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::operator[] ( std::size_t  i)
inline

◆ operator[]() [2/2]

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
const PointerType& cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::operator[] ( std::size_t  i) const
inline

◆ pop_back()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::pop_back ( )
inline

◆ push_back()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::push_back ( const PointerType &  obj)
inline

◆ reserve()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::reserve ( size_t  size)
inline

◆ resize()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
void cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::resize ( size_t  size)
inline

◆ size()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
std::size_t cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::size ( ) const
inline

◆ try_push_back()

template<class ReferencedType , class BaseReferencedType = Referenced, class PointerType = ReferencedType*>
virtual bool cnoid::PolymorphicReferencedArray< ReferencedType, BaseReferencedType, PointerType >::try_push_back ( BaseReferencedType *  obj)
inlinevirtual

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