Spicy
Public Member Functions | Public Attributes | Friends | List of all members
hilti::printer::Stream Class Reference

#include <printer.h>

Public Member Functions

 Stream (std::ostream &s)
 
auto & state () const
 
void beginLine ()
 
void endLine ()
 
void emptyLine ()
 
char newline () const
 
bool isExpandSubsequentType () const
 
void setExpandSubsequentType (bool expand)
 
bool isCompact () const
 
void setCompact (bool compact)
 
bool isFirstInBlock () const
 
bool isLastInBlock () const
 
void setPositionInBlock (bool first, bool last)
 
auto indent () const
 
void incrementIndent ()
 
void decrementIndent ()
 
const IDcurrentScope ()
 
void pushScope (ID id)
 
void popScope ()
 
template<typename T >
Streamoperator<< (const std::pair< T, const char * > &p)
 
template<typename T >
Streamoperator<< (std::pair< T *, const char * > p)
 

Public Attributes

template<typename T >
Stream &operator<<(T *t) requires std Streamoperator<< (const T &t) requires(! std
 

Friends

void printer::print (std::ostream &out, Node *root, bool compact, bool user_visible)
 

Detailed Description

Output stream formatting HILTI source code.


The documentation for this class was generated from the following files: