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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11CntlBase.ipp] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller 
4
//
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
// 2013-03-06   495   1.0    Initial version
17
// 2013-02-14   488   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
23
  \brief   Implemenation (inline) of Rw11CntlBase.
24
*/
25
 
26
#include "librtools/RosFill.hpp"
27
#include "librtools/RosPrintf.hpp"
28
 
29
#include "Rw11CntlBase.hpp"
30
 
31
/*!
32
  \class Retro::Rw11CntlBase
33
  \brief FIXME_docs
34
*/
35
 
36
// all method definitions in namespace Retro
37
namespace Retro {
38
 
39
//------------------------------------------+-----------------------------------
40
//! Constructor
41
 
42
template 
43
inline Rw11CntlBase::Rw11CntlBase(const std::string& type)
44
  : Rw11Cntl(type)
45
{}
46
 
47
//------------------------------------------+-----------------------------------
48
//! Destructor
49
 
50
template 
51
inline Rw11CntlBase::~Rw11CntlBase()
52
{}
53
 
54
//------------------------------------------+-----------------------------------
55
//! FIXME_docs
56
 
57
template 
58
inline size_t Rw11CntlBase::NUnit() const
59
{
60
  return NU;
61
}
62
 
63
//------------------------------------------+-----------------------------------
64
//! FIXME_docs
65
 
66
template 
67
inline TU& Rw11CntlBase::Unit(size_t index) const
68
{
69
  return *fspUnit[index];
70
}
71
 
72
//------------------------------------------+-----------------------------------
73
//! FIXME_docs
74
 
75
template 
76
inline const boost::shared_ptr&
77
  Rw11CntlBase::UnitSPtr(size_t index) const
78
{
79
  return fspUnit[index];
80
}
81
 
82
//------------------------------------------+-----------------------------------
83
//! FIXME_docs
84
 
85
template 
86
void Rw11CntlBase::Dump(std::ostream& os, int ind,
87
                               const char* text) const
88
{
89
  RosFill bl(ind);
90
  os << bl << (text?text:"--") << "Rw11CntlBase @ " << this << std::endl;
91
  os << bl << "  fspUnit:         " << std::endl;
92
  for (size_t i=0; i
93
    os << bl << "    " << RosPrintf(i,"d",2) << "       : "
94
       << fspUnit[i].get() << std::endl;
95
  }
96
  Rw11Cntl::Dump(os, ind, " ^");
97
  return;
98
}
99
 
100
} // end namespace Retro

powered by: WebSVN 2.1.0

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