walberla::ContainerStreamReader< Container > Class Template Reference

Detailed Description

template<typename Container>
class walberla::ContainerStreamReader< Container >

RAII Object to read an STL container (e.g.

vector or list) from a stream

#include <STLIO.h>

Public Member Functions

 ContainerStreamReader (std::istream &is)
 
 ~ContainerStreamReader ()
 
void read (Container &v)
 

Private Member Functions

void storeState ()
 
void restoreFlags ()
 
void setFailed ()
 

Private Attributes

std::istream & is_
 
std::istream::pos_type oldPos_
 
std::istream::fmtflags oldFlags_
 
bool success_
 

Constructor & Destructor Documentation

◆ ContainerStreamReader()

template<typename Container >
walberla::ContainerStreamReader< Container >::ContainerStreamReader ( std::istream &  is)
inline

◆ ~ContainerStreamReader()

template<typename Container >
walberla::ContainerStreamReader< Container >::~ContainerStreamReader ( )
inline

Member Function Documentation

◆ read()

template<typename Container >
void walberla::ContainerStreamReader< Container >::read ( Container &  v)
inline

◆ restoreFlags()

template<typename Container >
void walberla::ContainerStreamReader< Container >::restoreFlags ( )
inlineprivate

◆ setFailed()

template<typename Container >
void walberla::ContainerStreamReader< Container >::setFailed ( )
inlineprivate

◆ storeState()

template<typename Container >
void walberla::ContainerStreamReader< Container >::storeState ( )
inlineprivate

Member Data Documentation

◆ is_

template<typename Container >
std::istream& walberla::ContainerStreamReader< Container >::is_
private

◆ oldFlags_

template<typename Container >
std::istream::fmtflags walberla::ContainerStreamReader< Container >::oldFlags_
private

◆ oldPos_

template<typename Container >
std::istream::pos_type walberla::ContainerStreamReader< Container >::oldPos_
private

◆ success_

template<typename Container >
bool walberla::ContainerStreamReader< Container >::success_
private

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