libtasks Documentation  1.6
tasks::tools::buffer Class Reference

#include <buffer.h>

Inheritance diagram for tasks::tools::buffer:
Collaboration diagram for tasks::tools::buffer:

Public Member Functions

 buffer ()
 
 buffer (std::size_t size)
 
char * ptr_write ()
 
char * ptr_read ()
 
const char * ptr_read () const
 
char * ptr (std::size_t pos)
 
const char * ptr (std::size_t pos) const
 
char * ptr_begin ()
 
const char * ptr_begin () const
 
char * ptr_end ()
 
const char * ptr_end () const
 
std::size_t offset_write () const
 
std::size_t offset_read () const
 
void move_ptr_write (std::size_t s)
 
void move_ptr_read (std::size_t s)
 
void move_ptr_write_abs (std::size_t pos)
 
void move_ptr_read_abs (std::size_t pos)
 
std::streamsize to_write () const
 
std::streamsize to_read () const
 
std::size_t size () const
 
void set_size (std::size_t s)
 
void shrink ()
 
std::size_t buffer_size ()
 
std::streamsize write (const char_type *data, std::streamsize size)
 
std::streamsize read (char_type *data, std::streamsize size)
 
int_type sputc (char_type c)
 
int_type overflow (int_type ch)
 
void clear ()
 

Protected Member Functions

std::streamsize xsputn (const char_type *s, std::streamsize count)
 
std::streamsize xsgetn (char_type *s, std::streamsize count)
 

Private Attributes

std::vector< char > m_buffer
 
std::size_t m_size = 0
 

Detailed Description

Definition at line 21 of file buffer.h.

Constructor & Destructor Documentation

tasks::tools::buffer::buffer ( )
inline

Definition at line 23 of file buffer.h.

Here is the call graph for this function:

tasks::tools::buffer::buffer ( std::size_t  size)
inline

Definition at line 28 of file buffer.h.

Here is the call graph for this function:

Member Function Documentation

std::size_t tasks::tools::buffer::buffer_size ( )
inline

Definition at line 89 of file buffer.h.

Here is the caller graph for this function:

void tasks::tools::buffer::clear ( )
inline

Definition at line 102 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::move_ptr_read ( std::size_t  s)
inline

Definition at line 60 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::move_ptr_read_abs ( std::size_t  pos)
inline

Definition at line 64 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::move_ptr_write ( std::size_t  s)
inline

Definition at line 58 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::move_ptr_write_abs ( std::size_t  pos)
inline

Definition at line 62 of file buffer.h.

Here is the call graph for this function:

std::size_t tasks::tools::buffer::offset_read ( ) const
inline

Definition at line 56 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::size_t tasks::tools::buffer::offset_write ( ) const
inline

Definition at line 54 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

int_type tasks::tools::buffer::overflow ( int_type  ch)
inline

Definition at line 100 of file buffer.h.

Here is the call graph for this function:

char* tasks::tools::buffer::ptr ( std::size_t  pos)
inline

Definition at line 36 of file buffer.h.

Here is the caller graph for this function:

const char* tasks::tools::buffer::ptr ( std::size_t  pos) const
inline

Definition at line 41 of file buffer.h.

char* tasks::tools::buffer::ptr_begin ( )
inline

Definition at line 46 of file buffer.h.

Here is the caller graph for this function:

const char* tasks::tools::buffer::ptr_begin ( ) const
inline

Definition at line 48 of file buffer.h.

char* tasks::tools::buffer::ptr_end ( )
inline

Definition at line 50 of file buffer.h.

Here is the caller graph for this function:

const char* tasks::tools::buffer::ptr_end ( ) const
inline

Definition at line 52 of file buffer.h.

char* tasks::tools::buffer::ptr_read ( )
inline

Definition at line 32 of file buffer.h.

Here is the caller graph for this function:

const char* tasks::tools::buffer::ptr_read ( ) const
inline

Definition at line 34 of file buffer.h.

char* tasks::tools::buffer::ptr_write ( )
inline

Definition at line 30 of file buffer.h.

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::read ( char_type *  data,
std::streamsize  size 
)
inline

Definition at line 93 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::set_size ( std::size_t  s)
inline

Definition at line 72 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void tasks::tools::buffer::shrink ( )
inline

Definition at line 87 of file buffer.h.

std::size_t tasks::tools::buffer::size ( ) const
inline

Definition at line 70 of file buffer.h.

Here is the caller graph for this function:

int_type tasks::tools::buffer::sputc ( char_type  c)
inline

Definition at line 95 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::to_read ( ) const
inline

Definition at line 68 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::to_write ( ) const
inline

Definition at line 66 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::write ( const char_type *  data,
std::streamsize  size 
)
inline

Definition at line 91 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::xsgetn ( char_type *  s,
std::streamsize  count 
)
inlineprotected

Definition at line 116 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::streamsize tasks::tools::buffer::xsputn ( const char_type *  s,
std::streamsize  count 
)
inlineprotected

Definition at line 110 of file buffer.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::vector<char> tasks::tools::buffer::m_buffer
private

Definition at line 126 of file buffer.h.

std::size_t tasks::tools::buffer::m_size = 0
private

Definition at line 127 of file buffer.h.


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