// $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
|
// $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
|
//
|
//
|
// Copyright 2013- by Walter F.J. Mueller
|
// Copyright 2013- by Walter F.J. Mueller
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
// Software Foundation, either version 2, or at your option any later version.
|
// Software Foundation, either version 2, or at your option any later version.
|
//
|
//
|
// This program is distributed in the hope that it will be useful, but
|
// This program is distributed in the hope that it will be useful, but
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for complete details.
|
// for complete details.
|
//
|
//
|
// Revision History:
|
// Revision History:
|
// Date Rev Version Comment
|
// Date Rev Version Comment
|
// 2013-03-06 495 1.0 Initial version
|
// 2013-03-06 495 1.0 Initial version
|
// 2013-02-14 488 0.1 First draft
|
// 2013-02-14 488 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
|
\version $Id: Rw11CntlBase.ipp 495 2013-03-06 17:13:48Z mueller $
|
\brief Implemenation (inline) of Rw11CntlBase.
|
\brief Implemenation (inline) of Rw11CntlBase.
|
*/
|
*/
|
|
|
#include "librtools/RosFill.hpp"
|
#include "librtools/RosFill.hpp"
|
#include "librtools/RosPrintf.hpp"
|
#include "librtools/RosPrintf.hpp"
|
|
|
#include "Rw11CntlBase.hpp"
|
#include "Rw11CntlBase.hpp"
|
|
|
/*!
|
/*!
|
\class Retro::Rw11CntlBase
|
\class Retro::Rw11CntlBase
|
\brief FIXME_docs
|
\brief FIXME_docs
|
*/
|
*/
|
|
|
// all method definitions in namespace Retro
|
// all method definitions in namespace Retro
|
namespace Retro {
|
namespace Retro {
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! Constructor
|
//! Constructor
|
|
|
template
|
template
|
inline Rw11CntlBase::Rw11CntlBase(const std::string& type)
|
inline Rw11CntlBase::Rw11CntlBase(const std::string& type)
|
: Rw11Cntl(type)
|
: Rw11Cntl(type)
|
{}
|
{}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! Destructor
|
//! Destructor
|
|
|
template
|
template
|
inline Rw11CntlBase::~Rw11CntlBase()
|
inline Rw11CntlBase::~Rw11CntlBase()
|
{}
|
{}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline size_t Rw11CntlBase::NUnit() const
|
inline size_t Rw11CntlBase::NUnit() const
|
{
|
{
|
return NU;
|
return NU;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline TU& Rw11CntlBase::Unit(size_t index) const
|
inline TU& Rw11CntlBase::Unit(size_t index) const
|
{
|
{
|
return *fspUnit[index];
|
return *fspUnit[index];
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
inline const boost::shared_ptr&
|
inline const boost::shared_ptr&
|
Rw11CntlBase::UnitSPtr(size_t index) const
|
Rw11CntlBase::UnitSPtr(size_t index) const
|
{
|
{
|
return fspUnit[index];
|
return fspUnit[index];
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
template
|
template
|
void Rw11CntlBase::Dump(std::ostream& os, int ind,
|
void Rw11CntlBase::Dump(std::ostream& os, int ind,
|
const char* text) const
|
const char* text) const
|
{
|
{
|
RosFill bl(ind);
|
RosFill bl(ind);
|
os << bl << (text?text:"--") << "Rw11CntlBase @ " << this << std::endl;
|
os << bl << (text?text:"--") << "Rw11CntlBase @ " << this << std::endl;
|
os << bl << " fspUnit: " << std::endl;
|
os << bl << " fspUnit: " << std::endl;
|
for (size_t i=0; i
|
for (size_t i=0; i
|
os << bl << " " << RosPrintf(i,"d",2) << " : "
|
os << bl << " " << RosPrintf(i,"d",2) << " : "
|
<< fspUnit[i].get() << std::endl;
|
<< fspUnit[i].get() << std::endl;
|
}
|
}
|
Rw11Cntl::Dump(os, ind, " ^");
|
Rw11Cntl::Dump(os, ind, " ^");
|
return;
|
return;
|
}
|
}
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|
|
|