|
| CppWriter () |
|
void | setEmittingType (EmittingType type) |
|
EmittingType | getEmittingType () const |
|
virtual void | emit (CppObj *cppObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitVar (CppVar *varObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitVarList (CppVarList *varListObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitEnum (CppEnum *enmObj, std::ostream &stm, bool emitNewLine, CppIndent indentation=CppIndent()) const |
|
virtual void | emitTypedef (CppTypedefName *typedefName, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitUsingDecl (CppUsingDecl *usingDecl, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitTypedefList (CppTypedefList *typedefList, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitFwdDecl (CppFwdClsDecl *fwdClsDeclObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitMacroCall (CppMacroCall *macroCallObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitCompound (CppCompound *compoundObj, std::ostream &stm, CppIndent indentation=CppIndent(), bool emitNewLine=true) const |
|
virtual void | emitFunction (CppFunction *funcObj, std::ostream &stm, bool emitNewLine, CppIndent indentation=CppIndent()) const |
|
virtual void | emitFunctionPtr (CppFunctionPointer *funcPtrObj, std::ostream &stm, bool emitNewLine, CppIndent indentation=CppIndent()) const |
|
virtual void | emitConstructor (CppConstructor *ctorObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitDestructor (CppDestructor *dtorObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitTypeConverter (CppTypeConverter *typeConverterObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitDocComment (CppDocComment *docCommentObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitExpr (CppExpr *exprObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitDefine (CppDefine *defineObj, std::ostream &stm) const |
|
virtual void | emitUndef (CppUndef *undefObj, std::ostream &stm) const |
|
virtual void | emitInclude (CppInclude *includeObj, std::ostream &stm) const |
|
virtual void | emitHashIf (CppHashIf *hashIfObj, std::ostream &stm) const |
|
virtual void | emitHashIf (CppHashIf::CondType condType, const std::string &cond, std::ostream &stm) const |
|
virtual void | emitEndIf (std::ostream &stm) const |
|
virtual void | emitPragma (CppPragma *pragmaObj, std::ostream &stm) const |
|
virtual void | emitBlob (CppBlob *blobObj, std::ostream &stm, bool formatLineStarts, CppIndent indentation) const |
|
virtual void | emitVarType (CppVarType *varTypeObj, std::ostream &stm) const |
|
virtual void | emitParamList (CppParamVector *paramListObj, std::ostream &stm) const |
|
virtual void | emitExprAtom (CppExprAtom &exprObj, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitIfBlock (CppIfBlock *ifBlock, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitWhileBlock (CppWhileBlock *whileBlock, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitDoBlock (CppDoWhileBlock *doBlock, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitForBlock (CppForBlock *forBlock, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
virtual void | emitSwitchBlock (CppSwitchBlock *switchBlock, std::ostream &stm, CppIndent indentation=CppIndent()) const |
|
void | emitVar (CppVar *varObj, std::ostream &stm, bool skipName) const |
|
void | emitParamList (CppParamVector *paramListObj, std::ostream &stm, bool skipName) const |
|
void | emitFunctionPtr (CppFunctionPointer *funcPtrObj, std::ostream &stm, bool skipName, bool emitNewLine) const |
|
void | emitFunction (CppFunction *funcObj, std::ostream &stm, bool skipParamName, bool emitNewLine) const |
|
void | emitConstructor (CppConstructor *ctorObj, std::ostream &stm, bool skipParamName) const |
|
void | emitTemplSpec (CppTemplateParamList *templSpec, std::ostream &stm, CppIndent indentation) const |
|
|
void | emit (CppObj *cppObj, std::ostream &stm, CppIndent indentation, bool noNewLine) const |
|
void | emitVar (CppVar *varObj, std::ostream &stm, CppIndent indentation, bool skipName) const |
|
void | emitFunctionPtr (CppFunctionPointer *funcPtrObj, std::ostream &stm, CppIndent indentation, bool skipName, bool emitNewLine) const |
|
void | emitFunction (CppFunction *funcObj, std::ostream &stm, CppIndent indentation, bool skipName, bool skipParamName, bool emitNewLine) const |
|
void | emitConstructor (CppConstructor *ctorObj, std::ostream &stm, CppIndent indentation, bool skipParamName) const |
|
void | emitVarDecl (std::ostream &stm, CppVarDecl &varDecl, bool skipName) const |
|
Responsible for emitting C/C++ source from CppAst data structure.
Implementation of emitting various C/C++ objects should never change the style of code generated. Addition of new functionality and bug fixes are allowed but care must be taken not to change the style of emitted code.
Definition at line 39 of file cppwriter.h.