LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Static Public Member Functions | List of all members
ndarray::detail::Formatter< Derived, N > Class Template Reference

#include <formatting.h>

Static Public Member Functions

static void apply (FormatOptions const &options, std::ostream &os, ExpressionBase< Derived > const &expr, int level)
 

Detailed Description

template<typename Derived, int N = Derived::ND::value>
class ndarray::detail::Formatter< Derived, N >

Definition at line 38 of file formatting.h.

Member Function Documentation

template<typename Derived , int N = Derived::ND::value>
static void ndarray::detail::Formatter< Derived, N >::apply ( FormatOptions const &  options,
std::ostream &  os,
ExpressionBase< Derived > const &  expr,
int  level 
)
inlinestatic

Definition at line 98 of file formatting.h.

103  {
104  os << options._open;
105  if (!expr.empty()) {
106  typename ExpressionBase<Derived>::Iterator const end = expr.end();
107  typename ExpressionBase<Derived>::Iterator iter = expr.begin();
108  Formatter<typename ExpressionBase<Derived>::Reference>::apply(options,os,*iter,level+1);
109  for (++iter; iter != end; ++iter) {
110  os << options._delimiter;
111  os << std::endl << std::string(level,' ');
112  Formatter<typename ExpressionBase<Derived>::Reference>::apply(options,os,*iter,level+1);
113  }
114  }
115  os << options._close;
116  }
int iter
tuple options
Definition: lsstimport.py:45
static void apply(FormatOptions const &options, std::ostream &os, ExpressionBase< Derived > const &expr, int level)
Definition: formatting.h:98

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