Loading...
Searching...
No Matches
tmedium.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
indep/common.hpp
"
5
#include "
indep/macro/byeolMeta.hpp
"
6
#include "
indep/macro/declThis.hpp
"
7
#include "
indep/macro/unconstFunc.hpp
"
8
9
namespace
by {
10
52
template
<
typename
T>
class
tmedium
{
53
BY(ME(
tmedium
))
54
55
public
:
56
tmedium
(
T
*
value
);
57
tmedium
(
const
T
*
value
);
58
59
public
:
60
operator
T
&();
61
operator
const
T
&()
const
;
62
operator
nbool
()
const
;
63
T
* operator->();
64
const
T
* operator->()
const
BY_CONST_FUNC(
operator
->());
65
66
public
:
67
nbool
has()
const
;
68
T
* get();
69
const
T
* get()
const
;
70
71
private
:
72
T
* _value;
73
};
74
}
byeolMeta.hpp
by::tmedium
Medium class used exclusively in the OR macro for safe reference handling.
Definition
tmedium.hpp:52
declThis.hpp
common.hpp
by::noWrap
Rich logging support with polymorphic type conversion.
Definition
richLog.hpp:34
unconstFunc.hpp