3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Namespaces | Functions
container.hh File Reference

Free functions to write and read a sequence container to and from a file. More...

#include <iostream>
#include <ios>
#include <iomanip>
#include <fstream>
#include <iterator>
#include <dune/common/exceptions.hh>

Go to the source code of this file.

Description

Free functions to write and read a sequence container to and from a file.

Note
Reading should work for all sequence containers providing begin, end, and push_back (e.g. std::vector, std::deque, std::list), so not for e.g. std::array. Writing only needs begin and end member functions returning iterators.

Namespaces

namespace  Dumux
 Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
 

Functions

template<typename Container >
void Dumux::writeContainerToFile (const Container &v, const std::string &filename, int floatPrecision=6)
 Writes a container to file. More...
 
template<typename Container >
Container Dumux::readStreamToContainer (std::istream &stream)
 Read an input stream into a container. More...
 
template<typename Container >
Container Dumux::readFileToContainer (const std::string &filename)
 Read a simple text file into a container. More...
 
Include dependency graph for container.hh: