HepLib
Public Member Functions | Public Attributes | List of all members
HepLib::SD::CppFormat Class Reference

class to export GiNaC expression to cpp format More...

#include <SD.h>

Inheritance diagram for HepLib::SD::CppFormat:
Inheritance graph
[legend]
Collaboration diagram for HepLib::SD::CppFormat:
Collaboration graph
[legend]

Public Member Functions

 CppFormat (ostream &os, const string &s="L", unsigned opt=0)
 
template<class T >
const CppFormatoperator<< (const T &v) const
 
const CppFormatoperator<< (const basic &v) const
 
const CppFormatoperator<< (const ex &v) const
 
const CppFormatoperator<< (const lst &v) const
 
const CppFormatoperator<< (std::ostream &(*v)(std::ostream &)) const
 

Public Attributes

string suffix
 
string MQuote = "\""
 

Detailed Description

class to export GiNaC expression to cpp format

Definition at line 301 of file SD.h.

Constructor & Destructor Documentation

◆ CppFormat()

HepLib::SD::CppFormat::CppFormat ( ostream &  os,
const string &  s = "L",
unsigned  opt = 0 
)

Definition at line 105 of file CppFormat.cpp.

Member Function Documentation

◆ operator<<() [1/5]

const CppFormat & HepLib::SD::CppFormat::operator<< ( const basic &  v) const

Definition at line 13 of file CppFormat.cpp.

◆ operator<<() [2/5]

const CppFormat & HepLib::SD::CppFormat::operator<< ( const ex &  v) const

Definition at line 17 of file CppFormat.cpp.

◆ operator<<() [3/5]

const CppFormat & HepLib::SD::CppFormat::operator<< ( const lst &  v) const

Definition at line 21 of file CppFormat.cpp.

◆ operator<<() [4/5]

template<class T >
const CppFormat& HepLib::SD::CppFormat::operator<< ( const T &  v) const
inline

Definition at line 308 of file SD.h.

◆ operator<<() [5/5]

const CppFormat & HepLib::SD::CppFormat::operator<< ( std::ostream &(*)(std::ostream &)  v) const

Definition at line 25 of file CppFormat.cpp.

Member Data Documentation

◆ MQuote

string HepLib::SD::CppFormat::MQuote = "\""

Definition at line 306 of file SD.h.

◆ suffix

string HepLib::SD::CppFormat::suffix

Definition at line 305 of file SD.h.


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