Choreonoid  1.8
Public Member Functions | List of all members
cnoid::DeviceList< DeviceType, PointerType > Class Template Reference

#include <DeviceList.h>

Inheritance diagram for cnoid::DeviceList< DeviceType, PointerType >:
cnoid::PolymorphicReferencedArray< Device, Device, ref_ptr< Device > > cnoid::PolymorphicReferencedArrayBase< Device >

Public Member Functions

 DeviceList ()
 
template<class RhsDeviceType >
 DeviceList (const DeviceList< RhsDeviceType > &rhs)
 
DeviceList getSortedById () const
 
- Public Member Functions inherited from cnoid::PolymorphicReferencedArray< Device, Device, ref_ptr< Device > >
 PolymorphicReferencedArray ()
 
 PolymorphicReferencedArray (const PolymorphicReferencedArray< RhsReferencedType, Device, RhsPointerType > &rhs)
 
virtual ~PolymorphicReferencedArray ()
 
virtual bool try_push_back (Device *obj)
 
bool operator== (const PolymorphicReferencedArray &rhs) const
 
bool operator!= (const PolymorphicReferencedArray &rhs) const
 
PolymorphicReferencedArrayassign (const PolymorphicReferencedArray< RhsReferencedType, Device, RhsPointerType > &another)
 
PolymorphicReferencedArrayoperator<< (const PolymorphicReferencedArray< RetReferencedType, Device, RetPointerType > &rhs)
 
bool extractFrom (PolymorphicReferencedArray< RetReferencedType, Device, RetPointerType > &another)
 
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
 
ref_ptr< Device > & back ()
 
const ref_ptr< Device > & back () const
 
ref_ptr< Device > & front ()
 
const ref_ptr< Device > & front () const
 
ref_ptr< Device > & operator[] (std::size_t i)
 
const ref_ptr< Device > & operator[] (std::size_t i) const
 
virtual Deviceget_element (size_t i)
 
virtual const Deviceget_element (size_t i) const
 
void clear ()
 
virtual void clear_elements ()
 
void push_back (const ref_ptr< Device > &obj)
 
void pop_back ()
 
iterator erase (iterator pos)
 
- Public Member Functions inherited from cnoid::PolymorphicReferencedArrayBase< Device >
virtual ~PolymorphicReferencedArrayBase ()
 

Additional Inherited Members

- Public Types inherited from cnoid::PolymorphicReferencedArray< Device, Device, ref_ptr< Device > >
typedef PolymorphicReferencedArrayBase< DeviceArrayBase
 
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
 

Constructor & Destructor Documentation

◆ DeviceList() [1/2]

template<class DeviceType = Device, class PointerType = ref_ptr<DeviceType>>
cnoid::DeviceList< DeviceType, PointerType >::DeviceList ( )
inline

◆ DeviceList() [2/2]

template<class DeviceType = Device, class PointerType = ref_ptr<DeviceType>>
template<class RhsDeviceType >
cnoid::DeviceList< DeviceType, PointerType >::DeviceList ( const DeviceList< RhsDeviceType > &  rhs)
inline

Member Function Documentation

◆ getSortedById()

template<class DeviceType = Device, class PointerType = ref_ptr<DeviceType>>
DeviceList cnoid::DeviceList< DeviceType, PointerType >::getSortedById ( ) const
inline

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