Pimpl.hpp
Go to the documentation of this file.
1 // https://herbsutter.com/gotw/_101/
2 
3 #pragma once
4 
5 #include <memory>
6 
7 namespace dai {
8 
9 template <typename T>
10 class Pimpl {
11  private:
12  std::unique_ptr<T> m;
13 
14  public:
15  Pimpl();
16  template <typename... Args>
17  Pimpl(Args&&...);
18  ~Pimpl();
19  T* operator->();
20  T& operator*();
21 };
22 
23 } // namespace dai
dai::Pimpl::~Pimpl
~Pimpl()
Definition: PimplImpl.hpp:17
dai::Pimpl
Definition: Pimpl.hpp:10
dai::Pimpl::operator->
T * operator->()
Definition: PimplImpl.hpp:20
dai::Pimpl::Pimpl
Pimpl()
Definition: PimplImpl.hpp:9
dai::Pimpl::m
std::unique_ptr< T > m
Definition: Pimpl.hpp:12
dai::Pimpl::operator*
T & operator*()
Definition: PimplImpl.hpp:23
dai
Definition: CameraExposureOffset.hpp:6


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19