tmedium.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "indep/common.hpp"
8
9namespace by {
10
51 template <typename T> class tmedium {
52 BY(ME(tmedium))
53
54 public:
55 tmedium(T* value);
56 tmedium(const T* value);
57
58 public:
59 operator T&();
60 operator const T&() const;
61 operator nbool() const;
62 T* operator->();
63 const T* operator->() const BY_CONST_FUNC(operator->());
64
65 public:
66 nbool has() const;
67 T* get();
68 const T* get() const;
69
70 private:
71 T* _value;
72 };
73}
Medium class used exclusively in the OR macro for safe reference handling.
Definition: tmedium.hpp:51