Pothos  0.2.1-g9f04573d
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
RefHolder.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
13 #include <Pothos/Object/Object.hpp>
14 #include <vector>
15 
16 namespace Pothos {
17 namespace Util {
18 
25 {
26 public:
27 
29  virtual ~RefHolder(void);
30 
32  void holdRef(const Object &container);
33 
35  void dropRef(const Object &container);
36 
37 private:
38  std::vector<Object> _refs;
39 };
40 
41 } //namespace Util
42 } //namespace Pothos
#define POTHOS_API
Definition: Config.hpp:41
Definition: RefHolder.hpp:24
Definition: Object.hpp:55