Rosetta Protocols  2014.35
Public Member Functions | Protected Types | Private Attributes | List of all members
protocols::jd2::SingleFileBuffer Class Reference

#include <SingleFileBuffer.hh>

Public Member Functions

 SingleFileBuffer (std::string const &filename, core::Size channel, core::Size &status)
 
virtual ~SingleFileBuffer ()
 
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

Constructor & Destructor Documentation

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

References runtime_assert.

Member Function Documentation

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

References size(), and protocols::jd2::tr.

std::string const& protocols::jd2::SingleFileBuffer::filename ( )
inline
void protocols::jd2::SingleFileBuffer::flush ( core::Size  slave)

References size().

bool protocols::jd2::SingleFileBuffer::has_open_slaves ( ) const
core::Size protocols::jd2::SingleFileBuffer::length ( core::Size  slave)

References length.

Size protocols::jd2::SingleFileBuffer::nr_open_slaves ( ) const
void protocols::jd2::SingleFileBuffer::store_line ( core::Size  slave,
core::Size  channel,
std::string const &  line 
)

References runtime_assert.

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: