OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librtcltools/] [RtclProxyOwned.ipp] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RtclProxyOwned.ipp 491 2013-02-23 12:41:18Z mueller $
2 10 wfjm
//
3 19 wfjm
// Copyright 2011-2013 by Walter F.J. Mueller 
4 10 wfjm
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16 19 wfjm
// 2013-02-05   482   1.1    use shared_ptr to TO*; add ObjPtr();
17 10 wfjm
// 2011-02-13   361   1.0    Initial version
18
// 2011-02-11   360   0.1    First draft
19
// ---------------------------------------------------------------------------
20
 
21
/*!
22
  \file
23
  \version $Id:
24 19 wfjm
  \brief   Implemenation (all inline) of class RtclProxyOwned.
25 10 wfjm
*/
26
 
27 19 wfjm
/*!
28
  \class Retro::RtclProxyOwned
29
  \brief FIXME_docs
30
*/
31
 
32
// all method definitions in namespace Retro
33 10 wfjm
namespace Retro {
34
 
35
//------------------------------------------+-----------------------------------
36
//! Default constructor
37
 
38
template 
39
inline RtclProxyOwned::RtclProxyOwned()
40
  : RtclProxyBase(),
41 19 wfjm
    fspObj()
42 10 wfjm
{}
43
 
44
//------------------------------------------+-----------------------------------
45
//! FIXME_docs
46
 
47
template 
48
inline RtclProxyOwned::RtclProxyOwned(const std::string& type)
49
  : RtclProxyBase(type),
50 19 wfjm
    fspObj()
51 10 wfjm
{}
52
 
53
//------------------------------------------+-----------------------------------
54
//! FIXME_docs
55
 
56
template 
57
inline RtclProxyOwned::RtclProxyOwned(const std::string& type,
58
                                          Tcl_Interp* interp, const char* name,
59
                                          TO* pobj)
60
  : RtclProxyBase(type),
61 19 wfjm
    fspObj(pobj)
62 10 wfjm
{
63
  CreateObjectCmd(interp, name);
64
}
65
 
66
//------------------------------------------+-----------------------------------
67
//! FIXME_docs
68
 
69
template 
70
inline RtclProxyOwned::~RtclProxyOwned()
71 19 wfjm
{}
72
 
73
//------------------------------------------+-----------------------------------
74
//! FIXME_docs
75
 
76
template 
77
inline TO& RtclProxyOwned::Obj()
78 10 wfjm
{
79 19 wfjm
  return *fspObj;
80 10 wfjm
}
81
 
82
//------------------------------------------+-----------------------------------
83
//! FIXME_docs
84
 
85
template 
86 19 wfjm
inline const boost::shared_ptr& RtclProxyOwned::ObjSPtr()
87 10 wfjm
{
88 19 wfjm
  return fspObj;
89 10 wfjm
}
90
 
91
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.