Public Member Functions | Protected Attributes | Friends

WithFormat< ExpressionType > Class Template Reference

Pseudo expression providing matrix output with given format. More...

#include <IO.h>

List of all members.

Public Member Functions

 WithFormat (const ExpressionType &matrix, const IOFormat &format)

Protected Attributes

const ExpressionType::Nested m_matrix
IOFormat m_format

Friends

std::ostream & operator<< (std::ostream &s, const WithFormat &wf)

Detailed Description

template<typename ExpressionType>
class WithFormat< ExpressionType >

Pseudo expression providing matrix output with given format.

Parameters:
ExpressionType the type of the object on which IO stream operations are performed

This class represents an expression with stream operators controlled by a given IOFormat. It is the return type of DenseBase::format() and most of the time this is the only way it is used.

See class IOFormat for some examples.

See also:
DenseBase::format(), class IOFormat

Constructor & Destructor Documentation

template<typename ExpressionType>
WithFormat< ExpressionType >::WithFormat ( const ExpressionType &  matrix,
const IOFormat format 
) [inline]

Friends And Related Function Documentation

template<typename ExpressionType>
std::ostream& operator<< ( std::ostream &  s,
const WithFormat< ExpressionType > &  wf 
) [friend]

Member Data Documentation

template<typename ExpressionType>
IOFormat WithFormat< ExpressionType >::m_format [protected]
template<typename ExpressionType>
const ExpressionType::Nested WithFormat< ExpressionType >::m_matrix [protected]

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