GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::circular_char_buffer_source Struct Reference

#include <graphlab/rpc/circular_char_buffer.hpp>

List of all members.

Public Types

typedef char char_type

Public Member Functions

 circular_char_buffer_source (circular_char_buffer &buf, size_t maxlen=size_t(-1))
std::streamsize optimal_buffer_size () const
std::streamsize read (char *s, std::streamsize n)

Public Attributes

circular_char_buffer & buf
size_t maxlen

Detailed Description

A boost source device which can attach to a circular buffer

Definition at line 177 of file circular_char_buffer.hpp.


Member Function Documentation

std::streamsize graphlab::circular_char_buffer_source::optimal_buffer_size ( ) const
inline

to satisfy the optimally buffered tag. Since this is an in-memory buffer. the optimal buffer size (for any wrapping stream) is 0.

Definition at line 189 of file circular_char_buffer.hpp.


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