Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Types | Private Attributes | List of all members
protocols::jd2::SingleFileBuffer Class Reference

#include <SingleFileBuffer.hh>

Inheritance diagram for protocols::jd2::SingleFileBuffer:
Inheritance graph
[legend]

Public Member Functions

 SingleFileBuffer (std::string const &filename, core::Size channel, core::Size &status)
 
 ~SingleFileBuffer () override
 
void flush (core::Size slave)
 
void store_line (core::Size slave, core::Size channel, std::string const &line)
 
core::Size length (core::Size slave)
 
void close (core::Size slave)
 
bool has_open_slaves () const
 
core::Size nr_open_slaves () const
 
virtual void write_lines (LineBuffer const &)
 
virtual void block (core::Size slave)
 
std::string const & filename ()
 

Protected Types

typedef utility::vector1
< std::string > 
LineBuffer
 
typedef std::map< int, LineBufferBufferMap
 

Private Attributes

std::string filename_
 
core::Size mpi_channel_
 
BufferMap unfinished_blocks_
 

Detailed Description

this is a implementation of Buffer for silent-file-based output.

Member Typedef Documentation

typedef std::map< int, LineBuffer> protocols::jd2::SingleFileBuffer::BufferMap
protected
typedef utility::vector1< std::string > protocols::jd2::SingleFileBuffer::LineBuffer
protected

Constructor & Destructor Documentation

protocols::jd2::SingleFileBuffer::SingleFileBuffer ( std::string const &  filename,
core::Size  channel,
core::Size status 
)
inline
protocols::jd2::SingleFileBuffer::~SingleFileBuffer ( )
override

Member Function Documentation

void protocols::jd2::SingleFileBuffer::block ( core::Size  slave)
virtual
void protocols::jd2::SingleFileBuffer::close ( core::Size  slave)

References protocols::jd2::tr().

std::string const& protocols::jd2::SingleFileBuffer::filename ( )
inline
void protocols::jd2::SingleFileBuffer::flush ( core::Size  slave)
bool protocols::jd2::SingleFileBuffer::has_open_slaves ( ) const
core::Size protocols::jd2::SingleFileBuffer::length ( core::Size  slave)
Size protocols::jd2::SingleFileBuffer::nr_open_slaves ( ) const
void protocols::jd2::SingleFileBuffer::store_line ( core::Size  slave,
core::Size  channel,
std::string const &  line 
)
void protocols::jd2::SingleFileBuffer::write_lines ( LineBuffer const &  buf)
virtual

Reimplemented in protocols::jd2::WriteFileSFB.

Member Data Documentation

std::string protocols::jd2::SingleFileBuffer::filename_
private
core::Size protocols::jd2::SingleFileBuffer::mpi_channel_
private
BufferMap protocols::jd2::SingleFileBuffer::unfinished_blocks_
private

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