Rosetta Utilities  2014.35
Namespaces | Classes | Typedefs | Functions | Variables
utility::io Namespace Reference

Namespaces

 ic
 
 mpi_stream
 
 oc
 

Classes

class  FileContentsMap
 The FileContentsMap is a class that will minimize the number of times files are accessed from disk. The first time the contents of a file are requested, it will cache the contents the file in memory as a strings. All subsequent requests for the contents of that file will then be delivered without having to go to disk. WARNING: The FileContentsMap will not update the contents that it holds for a file after the first time it loads it, so if the contents change on disk, the FileContentsMap will be out of date. More...
 
class  icstream
 icstream: Input channel stream wrapper class More...
 
class  irstream
 orstream: Input stream wrapper abstract base class More...
 
class  izstream
 izstream: Input file stream wrapper for uncompressed and compressed files More...
 
class  ocstream
 ocstream: Output channel stream wrapper class More...
 
class  orstream
 orstream: Output stream wrapper base class More...
 
class  ozstream
 ozstream: Output file stream wrapper for uncompressed and compressed files More...
 

Typedefs

typedef
utility::pointer::owning_ptr
< FileContentsMap
FileContentsMapOP
 
typedef
utility::pointer::owning_ptr
< FileContentsMap const > 
FileContentsMapCOP
 

Functions

izstreamgetline (izstream &stream, std::string &line)
 std::getline( std::istream, std::string ) wrapper More...
 
izstreamgetline (izstream &stream, std::string &line, char const delim)
 std::getline( std::istream, std::string, char ) wrapper More...
 
std::istream & skip (izstream &stream)
 Skip rest of line and line terminator (manipulator) More...
 
std::istream & skip (std::istream &stream)
 Skip rest of line and line terminator (manipulator) More...
 
template<class T >
void read_vector (std::istream &is, vector1< T > &vec)
 
template<class T >
void write_vector (std::ostream &out, vector1< T >const &vec)
 
template<class T >
void write_vector (std::string filename, vector1< T > const &vec)
 

Variables

std::streamsize const OZSTREAM_DEFAULT_BUFFER_SIZE = 921600
 default buffer size for ozstreams (900KB) More...
 

Typedef Documentation

Function Documentation

izstream& utility::io::getline ( izstream &  stream,
std::string &  line 
)
inline
izstream& utility::io::getline ( izstream &  stream,
std::string &  line,
char const  delim 
)
inline

std::getline( std::istream, std::string, char ) wrapper

Referenced by utility::io::izstream::getline(), and getline().

template<class T >
void utility::io::read_vector ( std::istream &  is,
vector1< T > &  vec 
)

References basic::T().

std::istream& utility::io::skip ( izstream &  stream)
inline

Skip rest of line and line terminator (manipulator)

References utility::io::izstream::ignore(), and max().

std::istream& utility::io::skip ( std::istream &  stream)
inline

Skip rest of line and line terminator (manipulator)

References max().

template<class T >
void utility::io::write_vector ( std::ostream &  out,
vector1< T >const &  vec 
)

Referenced by write_vector().

template<class T >
void utility::io::write_vector ( std::string  filename,
vector1< T > const &  vec 
)

Variable Documentation

std::streamsize const utility::io::OZSTREAM_DEFAULT_BUFFER_SIZE = 921600

default buffer size for ozstreams (900KB)

Note
this must be at least 4KB, otherwise zipstream will break