COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
include
comms
field
adapter
FixedValue.h
1
//
2
// Copyright 2019 - 2025 (C). Alex Robenko. All rights reserved.
3
//
4
// This Source Code Form is subject to the terms of the Mozilla Public
5
// License, v. 2.0. If a copy of the MPL was not distributed with this
6
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8
#pragma once
9
10
11
namespace
comms
12
{
13
14
namespace
field
15
{
16
17
namespace
adapter
18
{
19
20
template
<
typename
TBase>
21
class
FixedValue :
public
TBase
22
{
23
using
BaseImpl = TBase;
24
public
:
25
using
ValueType =
typename
BaseImpl::ValueType;
26
27
using
BaseImpl::value;
28
29
ValueType& value() =
delete
;
30
31
template
<
typename
U>
32
void
setValue(U&& val) =
delete
;
33
34
private
:
35
using
BaseImpl::setValue;
36
37
};
38
39
}
// namespace adapter
40
41
}
// namespace field
42
43
}
// namespace comms
44
45
46
47
comms
Main namespace for all classes / functions of COMMS library.
Generated by
1.9.8