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
namespace
comms
11
{
12
13
namespace
field
14
{
15
16
namespace
adapter
17
{
18
19
template
<
typename
TBase>
20
class
FixedValue :
public
TBase
21
{
22
using
BaseImpl = TBase;
23
public
:
24
using
ValueType =
typename
BaseImpl::ValueType;
25
26
using
BaseImpl::value;
27
28
ValueType& value() =
delete
;
29
30
template
<
typename
U>
31
void
setValue(U&& val) =
delete
;
32
33
private
:
34
using
BaseImpl::setValue;
35
36
};
37
38
}
// namespace adapter
39
40
}
// namespace field
41
42
}
// namespace comms
43
comms
Main namespace for all classes / functions of COMMS library.
Generated by
1.9.8