loop.cpp File Reference
#include "loop.hh"
Go to the source code of this file.
Functions |
static void | tab (int n, ostream &fout) |
| Print n tabs (for indentation purpose).
|
static void | printlines (int n, list< string > &lines, ostream &fout) |
| Print a list of lines.
|
Variables |
bool | gVectorSwitch |
Function Documentation
static void printlines |
( |
int |
n, |
|
|
list< string > & |
lines, |
|
|
ostream & |
fout | |
|
) |
| | [static] |
Print a list of lines.
- Parameters:
-
| n | number of tabs of indentation |
| lines | list of lines to be printed |
| fout | output stream |
Definition at line 24 of file loop.cpp.
References tab().
00025 {
00026 list<string>::iterator s;
00027 for (s = lines.begin(); s != lines.end(); s++) {
00028 tab(n, fout); fout << *s;
00029 }
00030 }
static void tab |
( |
int |
n, |
|
|
ostream & |
fout | |
|
) |
| | [static] |
Print n tabs (for indentation purpose).
- Parameters:
-
| n | number of tabs to print |
| fout | output stream |
Definition at line 11 of file loop.cpp.
00012 {
00013 fout << '\n';
00014 while (n--) fout << '\t';
00015 }
Variable Documentation