![]() |
QMCPACK
|
Public Member Functions | |
ReadFileBuffer (Communicate *c) | |
bool | open_file (const std::string &fname) |
bool | read_contents () |
char * | contents () |
void | reset () |
~ReadFileBuffer () | |
Public Attributes | |
bool | is_open |
int | length |
Private Member Functions | |
int | get_file_length (std::ifstream *f) const |
Private Attributes | |
char * | cbuffer |
std::ifstream * | fin |
Communicate * | myComm |
Definition at line 109 of file ECPComponentBuilder.h.
|
inline |
Definition at line 119 of file ECPComponentBuilder.h.
|
inline |
Definition at line 125 of file ECPComponentBuilder.h.
References ReadFileBuffer::cbuffer, and ReadFileBuffer::fin.
|
inline |
Definition at line 122 of file ECPComponentBuilder.h.
References ReadFileBuffer::cbuffer.
Referenced by ECPComponentBuilder::read_pp_file(), and qmcplusplus::TEST_CASE().
|
private |
Definition at line 72 of file ECPComponentBuilder.cpp.
Referenced by ReadFileBuffer::read_contents().
bool open_file | ( | const std::string & | fname | ) |
Definition at line 96 of file ECPComponentBuilder.cpp.
References Communicate::bcast(), ReadFileBuffer::fin, ReadFileBuffer::is_open, ReadFileBuffer::myComm, Communicate::rank(), and ReadFileBuffer::reset().
Referenced by ECPComponentBuilder::read_pp_file(), and qmcplusplus::TEST_CASE().
bool read_contents | ( | ) |
Definition at line 111 of file ECPComponentBuilder.cpp.
References Communicate::bcast(), ReadFileBuffer::cbuffer, ReadFileBuffer::fin, ReadFileBuffer::get_file_length(), ReadFileBuffer::is_open, ReadFileBuffer::length, ReadFileBuffer::myComm, and Communicate::rank().
Referenced by ECPComponentBuilder::read_pp_file(), and qmcplusplus::TEST_CASE().
void reset | ( | ) |
Definition at line 80 of file ECPComponentBuilder.cpp.
References ReadFileBuffer::cbuffer, ReadFileBuffer::fin, ReadFileBuffer::is_open, ReadFileBuffer::length, ReadFileBuffer::myComm, and Communicate::rank().
Referenced by ReadFileBuffer::open_file().
|
private |
Definition at line 111 of file ECPComponentBuilder.h.
Referenced by ReadFileBuffer::contents(), ReadFileBuffer::read_contents(), ReadFileBuffer::reset(), and ReadFileBuffer::~ReadFileBuffer().
|
private |
Definition at line 112 of file ECPComponentBuilder.h.
Referenced by ReadFileBuffer::open_file(), ReadFileBuffer::read_contents(), ReadFileBuffer::reset(), and ReadFileBuffer::~ReadFileBuffer().
bool is_open |
Definition at line 117 of file ECPComponentBuilder.h.
Referenced by ReadFileBuffer::open_file(), ReadFileBuffer::read_contents(), and ReadFileBuffer::reset().
int length |
Definition at line 118 of file ECPComponentBuilder.h.
Referenced by ReadFileBuffer::read_contents(), ECPComponentBuilder::read_pp_file(), ReadFileBuffer::reset(), and qmcplusplus::TEST_CASE().
|
private |
Definition at line 113 of file ECPComponentBuilder.h.
Referenced by ReadFileBuffer::open_file(), ReadFileBuffer::read_contents(), and ReadFileBuffer::reset().