ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
IpiSocket Class Reference

#include <socket_ipi.h>

Collaboration diagram for IpiSocket:

Public Member Functions

 IpiSocket ()=default
 ~IpiSocket ()
 IpiSocket (const IpiSocket &)=delete
IpiSocket & operator= (const IpiSocket &)=delete
void connect (const std::string &address)
void close ()
std::string read_header ()
void write_header (const std::string &header)
std::int32_t read_int32 ()
void write_int32 (std::int32_t value)
double read_double ()
void write_double (double value)
std::vector< double > read_doubles (std::size_t n)
void write_doubles (const std::vector< double > &values)
std::string read_string (std::size_t nbytes)
void write_string (const std::string &value)

Private Member Functions

void read_exact (void *data, std::size_t nbytes)
void write_exact (const void *data, std::size_t nbytes)

Private Attributes

int fd_ = -1

Constructor & Destructor Documentation

◆ IpiSocket() [1/2]

IpiSocket::IpiSocket ( )
default
Here is the caller graph for this function:

◆ ~IpiSocket()

IpiSocket::~IpiSocket ( )
Here is the call graph for this function:

◆ IpiSocket() [2/2]

IpiSocket::IpiSocket ( const IpiSocket & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ close()

void IpiSocket::close ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ connect()

void IpiSocket::connect ( const std::string & address)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

IpiSocket & IpiSocket::operator= ( const IpiSocket & )
delete
Here is the call graph for this function:

◆ read_double()

double IpiSocket::read_double ( )
Here is the call graph for this function:

◆ read_doubles()

std::vector< double > IpiSocket::read_doubles ( std::size_t n)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_exact()

void IpiSocket::read_exact ( void * data,
std::size_t nbytes )
private
Here is the caller graph for this function:

◆ read_header()

std::string IpiSocket::read_header ( )
Here is the caller graph for this function:

◆ read_int32()

std::int32_t IpiSocket::read_int32 ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_string()

std::string IpiSocket::read_string ( std::size_t nbytes)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_double()

void IpiSocket::write_double ( double value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_doubles()

void IpiSocket::write_doubles ( const std::vector< double > & values)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_exact()

void IpiSocket::write_exact ( const void * data,
std::size_t nbytes )
private
Here is the caller graph for this function:

◆ write_header()

void IpiSocket::write_header ( const std::string & header)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_int32()

void IpiSocket::write_int32 ( std::int32_t value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_string()

void IpiSocket::write_string ( const std::string & value)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fd_

int IpiSocket::fd_ = -1
private

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