Go to the documentation of this file.
6 #ifndef CNOID_BODY_DEVICE_LIST_H
7 #define CNOID_BODY_DEVICE_LIST_H
10 #include <cnoid/PolymorphicReferencedArray>
11 #include "exportdecl.h"
15 template <
class DeviceType = Device,
class Po
interType = ref_ptr<DeviceType> >
23 template <
class RhsDeviceType>
30 DeviceType* device = (*this)[i];
31 const int id = device->id();
33 if(
static_cast<int>(sorted.
size()) <= id){
DeviceList getSortedById() const
Definition: DeviceList.h:27
Definition: AbstractSceneLoader.h:11
DeviceList(const DeviceList< RhsDeviceType > &rhs)
Definition: DeviceList.h:24
DeviceList()
Definition: DeviceList.h:21
void resize(size_t size)
Definition: PolymorphicReferencedArray.h:123
Definition: DeviceList.h:16
std::size_t size() const
Definition: PolymorphicReferencedArray.h:127
Definition: PolymorphicReferencedArray.h:27