Panda3D
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  */
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 }
size_type_0 size() const
Returns the number of elements in the ordered vector.
size_t size() const
Returns the number of devices in the collection.
This is a structure representing a single input device.
Definition: inputDevice.h:53
InputDevice * operator [](size_t index) const
Returns the nth InputDevice in the collection.