|
SAGA C++ API 1.5.3
|
Encapsulates I/O operations. More...
#include <buffer.hpp>

Public Member Functions | |
| const_buffer (void const *data, saga::ssize_t size) | |
| Creates an I/O buffer. | |
| ~const_buffer () | |
| Destroys a buffer. | |
| saga::ssize_t | get_size () const |
| Retrieves the current value for size. | |
| void const * | get_data () const |
| Retrieves the buffer data. | |
| void | close (double timeout=0.0) |
| Closes the object. | |
Protected Member Functions | |
| TR1::shared_ptr < saga::impl::const_buffer > | get_impl_sp (void) const |
| @ /** These methods are not within API scope */ | |
| saga::impl::const_buffer * | get_impl (void) const |
| const_buffer (saga::impl::const_buffer *impl) | |
Encapsulates I/O operations.
The SAGA API includes a number of calls which perform byte-level I/O operations, e.g. read()/write() on files and streams, and call() on rpc instances. Future SAGA API extensions are expected to increase the number of I/O methods. The saga::buffer class encapsulates a sequence of bytes to be used for such I/O operations - that allows for uniform I/O syntax and semantics over the various SAGA API packages.
| saga::const_buffer::const_buffer | ( | saga::impl::const_buffer * | impl | ) | [protected] |
| saga::const_buffer::const_buffer | ( | void const * | data, |
| saga::ssize_t | size | ||
| ) |
Creates an I/O buffer.
| data | Data to be used |
| size | Size of data to be used. |
| saga::const_buffer::~const_buffer | ( | ) |
Destroys a buffer.
| TR1::shared_ptr< saga::impl::const_buffer > saga::const_buffer::get_impl_sp | ( | void | ) | const [protected] |
@ /** These methods are not within API scope */
Reimplemented from saga::object.
Reimplemented in saga::mutable_buffer, saga::filesystem::const_iovec, saga::filesystem::iovec, and saga::rpc::parameter.
| saga::impl::const_buffer * saga::const_buffer::get_impl | ( | void | ) | const [protected] |
Reimplemented from saga::object.
Reimplemented in saga::mutable_buffer, saga::filesystem::const_iovec, saga::filesystem::iovec, and saga::rpc::parameter.
Referenced by close(), get_data(), and get_size().
| saga::ssize_t saga::const_buffer::get_size | ( | ) | const |
| void const * saga::const_buffer::get_data | ( | ) | const |
| void saga::const_buffer::close | ( | double | timeout = 0.0 | ) |