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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librtools/] [RosFill.ipp] - Blame information for rev 19

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

Line No. Rev Author Line
1 19 wfjm
// $Id: RosFill.ipp 488 2013-02-16 18:49:47Z mueller $
2 10 wfjm
//
3
// Copyright 2000-2011 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
// 2011-01-30   359   1.0    Adopted from CTBosFill
17
// 2000-02-06     -   -      Last change on CTBosFill
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22 19 wfjm
  \version $Id: RosFill.ipp 488 2013-02-16 18:49:47Z mueller $
23 10 wfjm
  \brief   Implemenation (inline) of RosFill.
24
*/
25
 
26 19 wfjm
// all method definitions in namespace Retro
27 10 wfjm
namespace Retro {
28
 
29
//------------------------------------------+-----------------------------------
30
//! Constructor.
31
/*!
32
  The fill character is specified with \a fill, the repeat count is
33
  specified with \a count. Note, that RosFill does not have a default
34
  constructor and that this constructor is the only means to set this object up.
35
  Note also, that the \a fill argument can be omitted, the default fill
36
  character is a blank.
37
*/
38
inline RosFill::RosFill(int count, char fill)
39
  : fCount(count),
40
    fFill(fill)
41
{}
42
 
43
//------------------------------------------+-----------------------------------
44
//! Get repeat count.
45
 
46
inline int RosFill::Count() const
47
{
48
  return fCount;
49
}
50
 
51
//------------------------------------------+-----------------------------------
52
//! Get fill character.
53
 
54
inline char RosFill::Fill() const
55
{
56
  return fFill;
57
}
58
 
59
} // end namespace Retro

powered by: WebSVN 2.1.0

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