Choreonoid  1.5
Public Member Functions | List of all members
cnoid::ItemList< ItemType > Class Template Reference

#include <ItemList.h>

Inheritance diagram for cnoid::ItemList< ItemType >:
cnoid::PolymorphicPointerArray< ItemType, ref_ptr< ItemType > > cnoid::PolymorphicPointerArrayBase

Public Member Functions

 ItemList ()
 
template<class RhsObjectType >
 ItemList (const ItemList< RhsObjectType > &rhs)
 
template<class SubType >
SubType * get (int index) const
 
ItemType * get (int index) const
 
bool extractChildItems (ItemPtr item)
 
ItemType * toSingle (bool allowFromMultiElements=false) const
 
bool extractSubItems (ItemPtr item)
 
ItemType * find (const std::string &name)
 
- Public Member Functions inherited from cnoid::PolymorphicPointerArray< ItemType, ref_ptr< ItemType > >
 PolymorphicPointerArray ()
 
 PolymorphicPointerArray (const PolymorphicPointerArray< RhsObjectType, RhsPointerType > &rhs)
 
virtual ~PolymorphicPointerArray ()
 
PolymorphicPointerArrayoperator<< (const PolymorphicPointerArray< RhsObjectType, RhsPointerType > &rhs)
 
bool operator== (const PolymorphicPointerArray &rhs) const
 
bool operator!= (const PolymorphicPointerArray &rhs) const
 
bool empty () const
 
void reserve (size_t size)
 
void resize (size_t size)
 
std::size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
ref_ptr< ItemType > & back ()
 
const ref_ptr< ItemType > & back () const
 
ref_ptr< ItemType > & front ()
 
const ref_ptr< ItemType > & front () const
 
ref_ptr< ItemType > & operator[] (std::size_t i)
 
const ref_ptr< ItemType > & operator[] (std::size_t i) const
 
void clear ()
 
void push_back (const ref_ptr< ItemType > &pointer)
 
void pop_back ()
 
iterator erase (iterator pos)
 
- Public Member Functions inherited from cnoid::PolymorphicPointerArrayBase
virtual ~PolymorphicPointerArrayBase ()
 

Additional Inherited Members

- Public Types inherited from cnoid::PolymorphicPointerArray< ItemType, ref_ptr< ItemType > >
typedef PolymorphicPointerArrayBase Base
 
typedef Container::iterator iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::reference reference
 
typedef Container::const_reference const_reference
 

Constructor & Destructor Documentation

◆ ItemList() [1/2]

template<class ItemType = Item>
cnoid::ItemList< ItemType >::ItemList ( )
inline

◆ ItemList() [2/2]

template<class ItemType = Item>
template<class RhsObjectType >
cnoid::ItemList< ItemType >::ItemList ( const ItemList< RhsObjectType > &  rhs)
inline

Member Function Documentation

◆ extractChildItems()

template<class ItemType = Item>
bool cnoid::ItemList< ItemType >::extractChildItems ( ItemPtr  item)
inline

◆ extractSubItems()

template<class ItemType = Item>
bool cnoid::ItemList< ItemType >::extractSubItems ( ItemPtr  item)
inline

◆ find()

template<class ItemType = Item>
ItemType* cnoid::ItemList< ItemType >::find ( const std::string &  name)
inline

◆ get() [1/2]

template<class ItemType = Item>
template<class SubType >
SubType* cnoid::ItemList< ItemType >::get ( int  index) const
inline

◆ get() [2/2]

template<class ItemType = Item>
ItemType* cnoid::ItemList< ItemType >::get ( int  index) const
inline

◆ toSingle()

template<class ItemType = Item>
ItemType* cnoid::ItemList< ItemType >::toSingle ( bool  allowFromMultiElements = false) const
inline

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