FAUST compiler  0.9.9.6b8
Functions | Variables
loop.cpp File Reference
#include "loop.hh"
Include dependency graph for loop.cpp:

Go to the source code of this file.

Functions

static void tab (int n, ostream &fout)
 Print n tabs (for indentation purpose) More...
 
static void printlines (int n, list< string > &lines, ostream &fout)
 Print a list of lines. More...
 

Variables

bool gVectorSwitch
 
bool gOpenMPSwitch
 
bool gOpenMPLoop
 

Function Documentation

static void printlines ( int  n,
list< string > &  lines,
ostream &  fout 
)
static

Print a list of lines.

Parameters
nnumber of tabs of indentation
lineslist of lines to be printed
foutoutput stream

Definition at line 26 of file loop.cpp.

References tab().

Referenced by Loop::println(), Loop::printoneln(), and Loop::printParLoopln().

27 {
28  list<string>::iterator s;
29  for (s = lines.begin(); s != lines.end(); s++) {
30  tab(n, fout); fout << *s;
31  }
32 }
static void tab(int n, ostream &fout)
Print n tabs (for indentation purpose)
Definition: loop.cpp:13

Here is the call graph for this function:

Here is the caller graph for this function:

static void tab ( int  n,
ostream &  fout 
)
static

Print n tabs (for indentation purpose)

Parameters
nnumber of tabs to print
foutoutput stream

Definition at line 13 of file loop.cpp.

Referenced by printlines(), Loop::println(), Loop::printoneln(), and Loop::printParLoopln().

14 {
15  fout << '\n';
16  while (n--) fout << '\t';
17 }

Here is the caller graph for this function:

Variable Documentation

bool gOpenMPLoop

Definition at line 144 of file main.cpp.

Referenced by process_cmdline().

bool gOpenMPSwitch

Definition at line 143 of file main.cpp.

Referenced by process_cmdline().

bool gVectorSwitch

Definition at line 138 of file main.cpp.