|
|
| stream_wrapper_impl (char const *const name) |
| |
|
| stream_wrapper_impl (char const *const name, std::ios_base::openmode mode) |
| |
|
void | open (char const *const name) |
| |
|
void | open (char const *const name, std::ios_base::openmode mode) |
| |
|
void | close (void) |
| |
|
bool | is_open (void) const |
| | Checks if the stream has an associated file.
|
| |
| template<typename T > |
| void | read (T &val) |
| | Read a value from the stream. More...
|
| |
| template<typename T , typename Accessor > |
| void | read (proxy< T, Accessor > &val) |
| | Read a value from the stream. More...
|
| |
| void | read (typename Stream::char_type *s, std::streamsize count) |
| | Read blocks of characters from the stream. More...
|
| |
| void | getline (typename Stream::char_type *s, std::streamsize count, typename Stream::char_type delim) |
| | Read values from the stream without formatting. More...
|
| |
|
template<typename T > |
| void | write (T const &val) |
| | Write the specified value val to the stream.
|
| |
|
void | write (typename Stream::char_type *s, std::streamsize count) |
| | Write the specified count of characters from buffer s to the stream.
|
| |
|
void | endl (void) |
| | Method invoked when std::endl is passed to the stream. The std::endl is inserted in the stream on location 0.
|
| |
|
runtime::location_md const & | get_location_md (void) const noexcept |
| | Returns the location metadata of the location this object registered in.
|
| |
| runtime::location_md & | get_location_md (void) noexcept |
| | Returns the location metadata of the location this object registered in. noexcept More...
|
| |
|
|
rmi_handle::const_reference const & | get_rmi_handle (void) const noexcept |
| | Returns the associated rmi_handle.
|
| |
|
rmi_handle::reference const & | get_rmi_handle (void) noexcept |
| | Returns the associated rmi_handle.
|
| |
|
size_type | get_location_id (void) const noexcept |
| | Returns the location id of the local sub-object.
|
| |
|
size_type | get_num_locations (void) const noexcept |
| | Returns the number of locations of the gang of this p_object.
|
| |
| void | advance_epoch (void) |
| | Advances the epoch of the object. More...
|
| |
| void | unlock (void) |
| | Used by lock_guard functionality in method of derived classes to request atomicity with respect to incoming RMIs. More...
|
| |
| void | lock (void) |
| | Used by lock_guard functionality in method of derived classes to request atomicity with respect to incoming RMIs. More...
|
| |
| bool | try_lock (void) |
| | Attempt to maintain atomicity with respect to incoming RMIs. More...
|
| |
|
|
template<typename T > |
| T | get_value () |
| |
| std::basic_string< typename Stream::char_type > | fetch (std::streamsize count) |
| | Call read on the local stream and return shared_ptr to the populated buffer. More...
|
| |
| void | write_impl (std::basic_string< typename Stream::char_type > const &data, std::streamsize count) |
| | Call write on the local stream to write the unformatted data provided to the stream. More...
|
| |
| boost::shared_ptr< typename Stream::char_type > | fetchline (std::streamsize count, typename Stream::char_type delim) |
| | Call getline on the local stream and return shared_ptr to the populated buffer. More...
|
| |
template<typename Stream>
struct stapl::stream_impl::stream_wrapper_impl< Stream >
A wrapper around a stream that is a p_object. A pointer to an instance is stored in stapl::stream instances provided to work functions to allow access to the stream on the location.
Currently only location 0 opens the stream and all other locations will forward read/writes to location 0.