sherpa::INOstream Struct Reference

#include <INOstream.hxx>


Public Member Functions

 INOstream (std::ostream &os)
void setPostindent (const std::string &s)
void indent (int i)
size_t indent_for_macro ()
int indentToHere ()
void setIndent (size_t theCol)
void more ()
void less ()
void doIndent ()
INOstreamoperator<< (const char c)
INOstreamoperator<< (const unsigned char c)
INOstreamoperator<< (std::ostream &(*pf)(std::ostream &))
INOstreamoperator<< (std::ios_base &(*pf)(std::ios_base &))
INOstreamoperator<< (const char *s)
INOstreamoperator<< (const std::string &s)
template<typename T>
INOstreamoperator<< (T ob)

Data Fields

size_t depth
size_t col
bool needIndent
std::ostream & ostrm
std::string postIndent


Detailed Description

Definition at line 55 of file INOstream.hxx.


Constructor & Destructor Documentation

sherpa::INOstream::INOstream ( std::ostream &  os  )  [inline]

Definition at line 65 of file INOstream.hxx.

References col, depth, and needIndent.


Member Function Documentation

void INOstream::doIndent (  )  [inline]

Definition at line 113 of file INOstream.hxx.

References col, depth, needIndent, ostrm, and postIndent.

Referenced by operator<<(), and operator<<().

void sherpa::INOstream::indent ( int  i  )  [inline]

Definition at line 78 of file INOstream.hxx.

References depth.

Referenced by EmitDefine(), EmitExpr(), less(), more(), and toc().

size_t sherpa::INOstream::indent_for_macro (  )  [inline]

Definition at line 83 of file INOstream.hxx.

References depth.

int sherpa::INOstream::indentToHere (  )  [inline]

Definition at line 90 of file INOstream.hxx.

References col, and depth.

Referenced by blk_BitcP().

void sherpa::INOstream::less (  )  [inline]

Definition at line 106 of file INOstream.hxx.

References assert(), depth, and indent().

Referenced by blk_BitcP(), emit_arr_vec_fn_types(), emit_fnxn_label(), EmitDefexcept(), EmitDefine(), EmitDefstruct(), EmitDefunion(), EmitExpr(), EmitGlobalInitializers(), emitInitProc(), EmitMain(), emitXMLType(), GenerateC(), MixContext::ParseOneMixFix(), ProcessMixFix(), toc(), and XMLtypes().

void sherpa::INOstream::more (  )  [inline]

Definition at line 101 of file INOstream.hxx.

References indent().

Referenced by blk_BitcP(), emit_arr_vec_fn_types(), emit_fnxn_label(), EmitDefexcept(), EmitDefine(), EmitDefstruct(), EmitDefunion(), EmitExpr(), EmitGlobalInitializers(), emitInitProc(), EmitMain(), emitXMLType(), GenerateC(), MixContext::ParseOneMixFix(), ProcessMixFix(), toc(), and XMLtypes().

template<typename T>
INOstream& sherpa::INOstream::operator<< ( ob  )  [inline]

Definition at line 284 of file INOstream.hxx.

INOstream& sherpa::INOstream::operator<< ( const std::string &  s  )  [inline]

Definition at line 272 of file INOstream.hxx.

INOstream& sherpa::INOstream::operator<< ( const char *  s  )  [inline]

Definition at line 188 of file INOstream.hxx.

INOstream& sherpa::INOstream::operator<< ( std::ios_base &(*)(std::ios_base &)  pf  )  [inline]

Definition at line 179 of file INOstream.hxx.

References doIndent(), and ostrm.

INOstream& sherpa::INOstream::operator<< ( std::ostream &(*)(std::ostream &)  pf  )  [inline]

Definition at line 165 of file INOstream.hxx.

References doIndent(), and ostrm.

INOstream& sherpa::INOstream::operator<< ( const unsigned char  c  )  [inline]

Definition at line 143 of file INOstream.hxx.

References col, doIndent(), needIndent, and ostrm.

INOstream& sherpa::INOstream::operator<< ( const char  c  )  [inline]

Definition at line 127 of file INOstream.hxx.

References col, doIndent(), needIndent, and ostrm.

void sherpa::INOstream::setIndent ( size_t  theCol  )  [inline]

Definition at line 96 of file INOstream.hxx.

References depth.

Referenced by blk_BitcP().

void sherpa::INOstream::setPostindent ( const std::string &  s  )  [inline]

Definition at line 73 of file INOstream.hxx.

References postIndent.

Referenced by EmitGlobalInitializers(), EmitMain(), GenerateCoutput(), TypesTOC(), and ValuesTOH().


Field Documentation

size_t sherpa::INOstream::col

Definition at line 57 of file INOstream.hxx.

Referenced by doIndent(), indentToHere(), INOstream(), and operator<<().

size_t sherpa::INOstream::depth

Definition at line 56 of file INOstream.hxx.

Referenced by doIndent(), indent(), indent_for_macro(), indentToHere(), INOstream(), less(), and setIndent().

bool sherpa::INOstream::needIndent

Definition at line 58 of file INOstream.hxx.

Referenced by doIndent(), INOstream(), operator<<(), and operator<<().

std::ostream& sherpa::INOstream::ostrm

Definition at line 59 of file INOstream.hxx.

Referenced by doIndent(), EmitExpr(), operator<<(), and operator<<().

std::string sherpa::INOstream::postIndent

Definition at line 63 of file INOstream.hxx.

Referenced by doIndent(), and setPostindent().


The documentation for this struct was generated from the following files:
Generated on Fri Feb 10 07:59:21 2012 for BitC Compiler by  doxygen 1.4.7