DOLFIN
DOLFIN C++ interface
Public Types | Public Member Functions | List of all members
dolfin::LogStream Class Reference

#include <LogStream.h>

Public Types

enum  Type { COUT, ENDL }
 Stream types.
 

Public Member Functions

 LogStream (Type type)
 Create log stream of given type.
 
 ~LogStream ()
 Destructor.
 
LogStreamoperator<< (const LogStream &stream)
 Output for log stream.
 
LogStreamoperator<< (const std::string &s)
 Output for string.
 
LogStreamoperator<< (int a)
 Output for int.
 
LogStreamoperator<< (unsigned int a)
 Output for unsigned int.
 
LogStreamoperator<< (long int a)
 Output for long int.
 
LogStreamoperator<< (long unsigned int a)
 Output for long int.
 
LogStreamoperator<< (double a)
 Output for double.
 
LogStreamoperator<< (std::complex< double > z)
 Output for std::complex<double>
 
LogStreamoperator<< (const Variable &variable)
 Output for variable (calling str() method)
 
LogStreamoperator<< (const MeshEntity &entity)
 
LogStreamoperator<< (const Point &point)
 Output for point (not subclass of Variable for efficiency)
 
void setprecision (std::streamsize n)
 Set precision.
 

Detailed Description

This class provides functionality similar to standard C++ streams (std::cout, std::endl) for output but working through the DOLFIN log system.

Member Function Documentation

◆ operator<<()

LogStream & LogStream::operator<< ( const MeshEntity entity)

Output for mesh entity (not subclass of Variable for efficiency)


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