3.2-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>

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
 

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::readFileToContainer (const std::string &filename)
 Read a simple text file into a container. More...
 
Include dependency graph for container.hh: