w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclProxyOwned.ipp
Go to the documentation of this file.
1// $Id: RtclProxyOwned.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-07 1078 1.1.1 use std::shared_ptr instead of boost
8// 2013-02-05 482 1.1 use shared_ptr to TO*; add ObjPtr();
9// 2011-02-13 361 1.0 Initial version
10// 2011-02-11 360 0.1 First draft
11// ---------------------------------------------------------------------------
12
22// all method definitions in namespace Retro
23namespace Retro {
24
25//------------------------------------------+-----------------------------------
27
28template <class TO>
31 fspObj()
32{}
34//------------------------------------------+-----------------------------------
37template <class TO>
38inline RtclProxyOwned<TO>::RtclProxyOwned(const std::string& type)
39 : RtclProxyBase(type),
40 fspObj()
41{}
42
43//------------------------------------------+-----------------------------------
45
46template <class TO>
47inline RtclProxyOwned<TO>::RtclProxyOwned(const std::string& type,
48 Tcl_Interp* interp, const char* name,
49 TO* pobj)
50 : RtclProxyBase(type),
51 fspObj(pobj)
52{
53 CreateObjectCmd(interp, name);
54}
55
56//------------------------------------------+-----------------------------------
58
59template <class TO>
61{}
62
63//------------------------------------------+-----------------------------------
65
66template <class TO>
68{
69 return *fspObj;
70}
71
72//------------------------------------------+-----------------------------------
74
75template <class TO>
76inline const std::shared_ptr<TO>& RtclProxyOwned<TO>::ObjSPtr()
77{
78 return fspObj;
79}
80
81} // end namespace Retro
void CreateObjectCmd(Tcl_Interp *interp, const char *name)
FIXME_docs.
const std::shared_ptr< TO > & ObjSPtr()
FIXME_docs.
~RtclProxyOwned()
FIXME_docs.
TO & Obj()
FIXME_docs.
RtclProxyOwned()
Default constructor.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47