YARP
Yet Another Robot Platform
PolyDriverList.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_DEV_POLYDRIVERLIST_H
8 #define YARP_DEV_POLYDRIVERLIST_H
9 
11 
12 namespace yarp::dev {
13 class PolyDriverList;
14 }
15 
17 {
18 public:
21 
23 
24  const PolyDriverDescriptor *operator[] (int k) const;
25 
26  int size() const;
27 
28  void push(PolyDriver *p, const char *k);
29 
30  void push(PolyDriverDescriptor &v);
31 
32  const PolyDriverList &operator=(const PolyDriverList &);
33 
34 protected:
35  //protect use of default copy ctor
37 
38 private:
39 
40  void *descriptors;
41 };
42 
43 #endif // YARP_DEV_POLYDRIVERLIST_H
PolyDriverList(const PolyDriverList &)
void push(PolyDriver *p, const char *k)
yarp::dev::PolyDriverDescriptor * operator[](int k)
const PolyDriverList & operator=(const PolyDriverList &)
A container for a device driver.
Definition: PolyDriver.h:23
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18