26 #ifndef TILEDARRAY_EXPR_TRACE_H__INCLUDED 27 #define TILEDARRAY_EXPR_TRACE_H__INCLUDED 33 namespace expressions {
35 template <
typename>
class Expr;
36 template <
typename,
bool>
class TsrExpr;
61 for(
unsigned int i = 0u; i < tab_; ++i) {
70 void inc() { ++tab_; }
73 void dec() { --tab_; }
93 os_(os), target_vars_(target_vars)
100 os_(other.os_), target_vars_(other.target_vars_)
108 template <
typename D>
109 std::ostream& operator<<(const Expr<D>& expr)
const {
110 if(TiledArray::get_default_world().rank() == 0) {
111 os_ << target_vars_ <<
" =\n";
115 expr.derived().print(expr_stream, target_vars_);
130 template <
typename A,
bool Alias>
138 #endif // TILEDARRAY_EXPR_TRACE_H__INCLUDED std::ostream & get_stream() const
Output stream accessor.
ExprOStream(std::ostream &os)
Constructor.
ExprOStream(const ExprOStream &other)
Copy constructor.
Variable list manages a list variable strings.
ExprTraceTarget(std::ostream &os, const std::string &target_vars)
Constructor.
ExprTraceTarget(const ExprTraceTarget &other)
Copy constructor.
void inc()
Increment the number of tabs.
Expression output stream.
std::ostream & operator<<(const T &t)
Output operator.
void dec()
Decrement the number of tabs.