Panda3D
panda
src
device
inputDeviceSet.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file inputDeviceSet.I
10
* @author rdb
11
* @date 2015-12-16
12
*/
13
14
/**
15
*
16
*/
17
INLINE InputDeviceSet::
18
~InputDeviceSet() {
19
}
20
21
/**
22
* Returns the nth InputDevice in the collection.
23
*/
24
INLINE
InputDevice
*
InputDeviceSet::
25
operator []
(
size_t
index)
const
{
26
nassertr(index < _devices.
size
(),
nullptr
);
27
return
_devices[index];
28
}
29
30
/**
31
* Returns the number of devices in the collection.
32
*/
33
INLINE
size_t
InputDeviceSet::
34
size
()
const
{
35
return
_devices.
size
();
36
}
ordered_vector::size
size_type_0 size() const
Returns the number of elements in the ordered vector.
Definition:
ordered_vector.I:221
InputDeviceSet::size
size_t size() const
Returns the number of devices in the collection.
Definition:
inputDeviceSet.I:34
InputDevice
This is a structure representing a single input device.
Definition:
inputDevice.h:53
InputDeviceSet::operator []
InputDevice * operator [](size_t index) const
Returns the nth InputDevice in the collection.
Definition:
inputDeviceSet.I:25
Generated on Wed Jan 23 2019 21:39:54 for Panda3D by
1.8.15