Psi4
Public Member Functions | Protected Types | Protected Member Functions | List of all members
psi::PsiInStream Class Reference

Specialization of PsiStream to input streams (I doubt this class will ever be used by itself, but I wanted to mirror the OutStream hierarchy) More...

#include <PsiInStream.h>

Inheritance diagram for psi::PsiInStream:
psi::PsiStreamBase< std::istream > psi::BasesBase psi::InFile

Public Member Functions

 PsiInStream (const PsiInStream &other)
 
const PsiInStreamoperator= (const PsiInStream &other)
 
virtual ~PsiInStream ()
 
 PsiInStream (SharedInStream Stream=SharedInStream())
 
template<typename T >
std::istream & operator>> (T &thing)
 
 operator bool ()
 Buffer is false when we have everything from it. More...
 
- Public Member Functions inherited from psi::PsiStreamBase< std::istream >
 PsiStreamBase (const MyType &other)
 Calls Clone for actual copy. More...
 
 PsiStreamBase ()
 Default constructor of stringstream is called. More...
 
const MyTypeoperator= (const MyType &other)
 Calls Clone for assignment iff this!=&other, returns *this. More...
 
virtual ~PsiStreamBase ()
 Memory not worried about until we get down the class tree to files. More...
 

Protected Types

typedef PsiStreamBase
< std::istream > 
BaseType
 

Protected Member Functions

void ReadFromStream ()
 
- Protected Member Functions inherited from psi::PsiStreamBase< std::istream >
void EmptyBuffer ()
 I always forget how to empty a stringstream. More...
 
- Protected Member Functions inherited from psi::BasesBase
 BasesBase ()
 Returns true if this is the lucky MPI process that gets to read/write. More...
 
int WhoIsSpecial () const
 Returns the integer of the Lucky MPI process. More...
 
bool ImSpecial () const
 Returns true if this is the lucky MPI process that gets to read/write. More...
 

Additional Inherited Members

- Protected Attributes inherited from psi::PsiStreamBase< std::istream >
std::stringstream Buffer_
 This is where each MPI task ultimately writes from or to. More...
 
std::shared_ptr< std::istream > Stream_
 The actual stream. More...
 

Detailed Description

Specialization of PsiStream to input streams (I doubt this class will ever be used by itself, but I wanted to mirror the OutStream hierarchy)

Theoretically, this class would allow us to read from cin; however, its real purpose is to serve the same role as PsiOutStream, except for InputFiles.

Member Typedef Documentation

typedef PsiStreamBase<std::istream> psi::PsiInStream::BaseType
protected

Constructor & Destructor Documentation

psi::PsiInStream::PsiInStream ( const PsiInStream other)
inline
virtual psi::PsiInStream::~PsiInStream ( )
inlinevirtual
psi::PsiInStream::PsiInStream ( SharedInStream  Stream = SharedInStream())

Member Function Documentation

psi::PsiInStream::operator bool ( )
inline

Buffer is false when we have everything from it.

const PsiInStream& psi::PsiInStream::operator= ( const PsiInStream other)
inline
template<typename T >
std::istream& psi::PsiInStream::operator>> ( T thing)
inline
void psi::PsiInStream::ReadFromStream ( )
protected

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