w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclGetList.ipp
Go to the documentation of this file.
1// $Id: RtclGetList.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-15 1083 1.1.2 Add(): use rval ref and move semantics
8// 2018-12-14 1081 1.1.1 use std::function instead of boost
9// 2018-12-01 1076 1.1 use unique_ptr
10// 2013-02-12 487 1.0 Initial version
11// ---------------------------------------------------------------------------
12
17// all method definitions in namespace Retro
18namespace Retro {
19
20//------------------------------------------+-----------------------------------
22
23template <class TP>
24inline void RtclGetList::Add(const std::string& name,
25 std::function<TP()>&& get)
26{
27 Add(name, get_uptr_t(new RtclGet<TP>(move(get))));
28 return;
29}
30
31} // end namespace Retro
std::unique_ptr< RtclGetBase > get_uptr_t
Definition: RtclGetList.hpp:37
void Add(const std::string &name, get_uptr_t &&upget)
FIXME_docs.
Definition: RtclGetList.cpp:52
Implemenation (inline) of class RtclGet.
Definition: RtclGet.hpp:30
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47