|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A stream to read or write binary data. More...
#include <binstream.h>
Public Member Functions | |
| Binstream () | |
| Binstream (const std::string, const char *) | |
| Construct a new Binstream:: Binstream object. | |
| ~Binstream () | |
| void | close () |
| void | open (const std::string, const char *) |
| bool | operator! () const |
| operator bool () const | |
| template<class T > | |
| Binstream & | operator>> (T &data) |
| template<class T > | |
| Binstream & | operator<< (const T &data) |
| template<class T > | |
| Binstream & | read (T *data, const int n) |
| template<class T > | |
| Binstream & | write (const T *data, const int n) |
Public Attributes | |
| FILE * | fileptr |
A stream to read or write binary data.
|
inline |
| Binstream::Binstream | ( | const std::string | filename, |
| const char * | op | ||
| ) |
| Binstream::~Binstream | ( | ) |
| void Binstream::close | ( | ) |
| void Binstream::open | ( | const std::string | filename, |
| const char * | op | ||
| ) |
| Binstream::operator bool | ( | ) | const |
| bool Binstream::operator! | ( | ) | const |
| FILE* Binstream::fileptr |