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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtcltools/] [RtclOPtr.hpp] - Blame information for rev 40

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

Line No. Rev Author Line
1 22 wfjm
// $Id: RtclOPtr.hpp 521 2013-05-20 22:16:45Z mueller $
2 10 wfjm
//
3 22 wfjm
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
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 22 wfjm
// 2013-05-20   521   1.0.1  declare ctor(Tcl_Obj*) as explicit
17 10 wfjm
// 2011-02-20   363   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23 22 wfjm
  \version $Id: RtclOPtr.hpp 521 2013-05-20 22:16:45Z mueller $
24 10 wfjm
  \brief   Declaration of class RtclOPtr.
25
*/
26
 
27
#ifndef included_Retro_RtclOPtr
28
#define included_Retro_RtclOPtr 1
29
 
30
#include "tcl.h"
31
 
32
namespace Retro {
33
 
34
  class RtclOPtr {
35
    public:
36
                        RtclOPtr();
37 22 wfjm
      explicit          RtclOPtr(Tcl_Obj* pobj);
38 10 wfjm
                        RtclOPtr(const RtclOPtr& rhs);
39 22 wfjm
                       ~RtclOPtr();
40 10 wfjm
 
41
                        operator Tcl_Obj*() const;
42
      bool              operator !() const;
43
      RtclOPtr&         operator=(const RtclOPtr& rhs);
44
      RtclOPtr&         operator=(Tcl_Obj* pobj);
45
 
46
    protected:
47
      Tcl_Obj*          fpObj;              //!< pointer to tcl object
48
  };
49
 
50
} // end namespace Retro
51
 
52
// implementation all inline
53
#include "RtclOPtr.ipp"
54
 
55
#endif

powered by: WebSVN 2.1.0

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