Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::MappingOptionsCppPrinter Class Reference

#include <mapping_options_cpp_printer.h>

Collaboration diagram for tc::MappingOptionsCppPrinter:

Public Member Functions

 MappingOptionsCppPrinter (std::ostream &out, size_t ws=0)
 

Private Member Functions

MappingOptionsCppPrintertab ()
 
MappingOptionsCppPrinterendl ()
 
MappingOptionsCppPrinterendStmt ()
 
MappingOptionsCppPrinterprintString (const char *str)
 
MappingOptionsCppPrinterprintString (const std::string str)
 
MappingOptionsCppPrinterprintBooleanOption (const std::string &name, bool value)
 
template<typename T >
MappingOptionsCppPrinterprintListOption (const std::string &name, const std::vector< T > &values)
 
template<typename T >
MappingOptionsCppPrinterprintValueOption (const std::string &name, const T &value)
 
MappingOptionsCppPrinterprintSchedulerOptions (const SchedulerOptionsView &schedulerOptions, const std::string &prefix)
 

Private Attributes

std::ostream & out_
 
size_t ws_
 
bool lineContinuation_ = false
 

Friends

MappingOptionsCppPrinteroperator<< (MappingOptionsCppPrinter &prn, const std::string &str)
 
MappingOptionsCppPrinteroperator<< (MappingOptionsCppPrinter &prn, const MappingOptions &options)
 

Constructor & Destructor Documentation

tc::MappingOptionsCppPrinter::MappingOptionsCppPrinter ( std::ostream &  out,
size_t  ws = 0 
)
inline

Member Function Documentation

MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::endl ( )
inlineprivate
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::endStmt ( )
inlineprivate
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::printBooleanOption ( const std::string &  name,
bool  value 
)
inlineprivate
template<typename T >
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::printListOption ( const std::string &  name,
const std::vector< T > &  values 
)
inlineprivate
MappingOptionsCppPrinter& tc::MappingOptionsCppPrinter::printSchedulerOptions ( const SchedulerOptionsView schedulerOptions,
const std::string &  prefix 
)
private
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::printString ( const char *  str)
inlineprivate
MappingOptionsCppPrinter& tc::MappingOptionsCppPrinter::printString ( const std::string  str)
inlineprivate
template<typename T >
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::printValueOption ( const std::string &  name,
const T &  value 
)
inlineprivate
MappingOptionsCppPrinter & tc::MappingOptionsCppPrinter::tab ( )
inlineprivate

Friends And Related Function Documentation

MappingOptionsCppPrinter& operator<< ( MappingOptionsCppPrinter prn,
const std::string &  str 
)
friend
MappingOptionsCppPrinter& operator<< ( MappingOptionsCppPrinter prn,
const MappingOptions options 
)
friend

Member Data Documentation

bool tc::MappingOptionsCppPrinter::lineContinuation_ = false
private
std::ostream& tc::MappingOptionsCppPrinter::out_
private
size_t tc::MappingOptionsCppPrinter::ws_
private

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