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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librlink/] [RlinkAddrMap.cpp] - Diff between revs 10 and 15

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 10 Rev 15
Line 1... Line 1...
// $Id: RlinkAddrMap.cpp 375 2011-04-02 07:56:47Z mueller $
// $Id: RlinkAddrMap.cpp 434 2011-12-02 19:17:38Z mueller $
//
//
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
//
// 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
Line 11... Line 11...
// 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
 
// 2011-11-28   434   1.0.1  Print(): use proper cast for lp64 compatibility
// 2011-03-06   367   1.0    Initial version
// 2011-03-06   367   1.0    Initial version
// 2011-03-05   366   0.1    First draft
// 2011-03-05   366   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: RlinkAddrMap.cpp 375 2011-04-02 07:56:47Z mueller $
  \version $Id: RlinkAddrMap.cpp 434 2011-12-02 19:17:38Z mueller $
  \brief   Implemenation of class RlinkAddrMap.
  \brief   Implemenation of class RlinkAddrMap.
 */
 */
 
 
#include <stdexcept>
#include <stdexcept>
#include <algorithm>
#include <algorithm>
Line 155... Line 156...
//------------------------------------------+-----------------------------------
//------------------------------------------+-----------------------------------
//! FIXME_docs
//! FIXME_docs
 
 
void RlinkAddrMap::Print(std::ostream& os, int ind) const
void RlinkAddrMap::Print(std::ostream& os, int ind) const
{
{
  size_t maxlen = max(6u, MaxNameLength());
  size_t maxlen = max(((size_t) 6), MaxNameLength());
 
 
  RosFill bl(ind);
  RosFill bl(ind);
  for (amap_cit_t it=fAddrMap.begin(); it!=fAddrMap.end(); it++) {
  for (amap_cit_t it=fAddrMap.begin(); it!=fAddrMap.end(); it++) {
    os << bl << RosPrintf((it->second).c_str(), "-s",maxlen)
    os << bl << RosPrintf((it->second).c_str(), "-s",maxlen)
       << " : " << RosPrintf(it->first, "$x0", 4)
       << " : " << RosPrintf(it->first, "$x0", 4)

powered by: WebSVN 2.1.0

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