Gemmi C++ API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gemmi::cif::BufOstream Class Reference

std::ostream with buffering. More...

#include <to_cif.hpp>

Public Member Functions

 BufOstream (std::ostream &os_)
 
 ~BufOstream ()
 
void flush ()
 
void write (const char *s, size_t len)
 
void operator<< (const std::string &s)
 
void put (char c)
 
void pad (size_t n)
 

Detailed Description

std::ostream with buffering.

C++ streams are so slow that even primitive buffering makes it significantly more efficient.

Definition at line 81 of file to_cif.hpp.

Constructor & Destructor Documentation

◆ BufOstream()

gemmi::cif::BufOstream::BufOstream ( std::ostream &  os_)
inlineexplicit

Definition at line 83 of file to_cif.hpp.

◆ ~BufOstream()

gemmi::cif::BufOstream::~BufOstream ( )
inline

Definition at line 84 of file to_cif.hpp.

Member Function Documentation

◆ flush()

void gemmi::cif::BufOstream::flush ( )
inline

Definition at line 85 of file to_cif.hpp.

◆ write()

void gemmi::cif::BufOstream::write ( const char s,
size_t  len 
)
inline

Definition at line 89 of file to_cif.hpp.

◆ operator<<()

void gemmi::cif::BufOstream::operator<< ( const std::string &  s)
inline

Definition at line 101 of file to_cif.hpp.

◆ put()

void gemmi::cif::BufOstream::put ( char  c)
inline

Definition at line 105 of file to_cif.hpp.

◆ pad()

void gemmi::cif::BufOstream::pad ( size_t  n)
inline

Definition at line 108 of file to_cif.hpp.


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