Psi4
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
psi::PsiFileImpl< T > Class Template Reference

The machinery common to input and output files. More...

#include <PsiFileImpl.h>

Public Member Functions

 PsiFileImpl ()
 

Protected Member Functions

template<typename T2 >
void Open (const std::string &filename, const FileMode &Mode, std::shared_ptr< T2 > &FileStream, const bool ImSpecial)
 
template<typename T2 >
void Close (std::shared_ptr< T2 > &FileStream)
 We cheat to avoid the upcast. More...
 

Private Member Functions

void LoadFOptions ()
 Function that loads FOptions_ up. More...
 
 PsiFileImpl (const PsiFileImpl< T > &)
 No copying of file streams. More...
 
const PsiFileImpl< T > & operator= (const PsiFileImpl< T > &)
 No assignment of file streams. More...
 

Private Attributes

std::map< FileMode, stdFModeFOptions_
 Maps enumerated FileModes to those in c++ std library. More...
 

Detailed Description

template<typename T>
class psi::PsiFileImpl< T >

The machinery common to input and output files.

Constructor & Destructor Documentation

template<typename T>
psi::PsiFileImpl< T >::PsiFileImpl ( const PsiFileImpl< T > &  )
inlineprivate

No copying of file streams.

template<typename T>
psi::PsiFileImpl< T >::PsiFileImpl ( )
inline

Member Function Documentation

template<typename T>
template<typename T2 >
void psi::PsiFileImpl< T >::Close ( std::shared_ptr< T2 > &  FileStream)
inlineprotected

We cheat to avoid the upcast.

template<typename T >
void psi::PsiFileImpl< T >::LoadFOptions ( )
private

Function that loads FOptions_ up.

template<typename T>
template<typename T2 >
void psi::PsiFileImpl< T >::Open ( const std::string &  filename,
const FileMode Mode,
std::shared_ptr< T2 > &  FileStream,
const bool  ImSpecial 
)
inlineprotected
template<typename T>
const PsiFileImpl<T>& psi::PsiFileImpl< T >::operator= ( const PsiFileImpl< T > &  )
inlineprivate

No assignment of file streams.

Member Data Documentation

template<typename T>
std::map<FileMode,stdFMode> psi::PsiFileImpl< T >::FOptions_
private

Maps enumerated FileModes to those in c++ std library.


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