#include <Stream.h>
Collaboration diagram for carla::streaming::detail::Stream< StreamStateT >:Public Member Functions | |
| bool | AreClientsListening () |
| Buffer | MakeBuffer () |
| Pull a buffer from the buffer pool associated to this stream. More... | |
| template<typename T > | |
| Stream & | operator<< (const T &data) |
| Make a copy of data and flush it down the stream. More... | |
| Stream & | operator= (const Stream &)=default |
| Stream & | operator= (Stream &&)=default |
| Stream ()=delete | |
| Stream (const Stream &)=default | |
| Stream (Stream &&)=default | |
| Token | token () const |
| Token associated with this stream. More... | |
| template<typename... Buffers> | |
| void | Write (Buffers &&... buffers) |
| Flush buffers down the stream. No copies are made. More... | |
Private Member Functions | |
| Stream (std::shared_ptr< StreamStateT > state) | |
Private Attributes | |
| std::shared_ptr< StreamStateT > | _shared_state |
Friends | |
| class | detail::Dispatcher |
Definition at line 22 of file detail/Stream.h.
|
delete |
|
default |
|
default |
|
inlineprivate |
Definition at line 74 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::_shared_state, and DEBUG_ASSERT.
|
inline |
Definition at line 65 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::_shared_state.
|
inline |
Pull a buffer from the buffer pool associated to this stream.
Discarded buffers are re-used to avoid memory allocations.
Definition at line 45 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::_shared_state.
Referenced by carla::streaming::detail::Stream< StreamStateT >::operator<<().
Here is the caller graph for this function:
|
inline |
Make a copy of data and flush it down the stream.
Definition at line 58 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::MakeBuffer(), and carla::streaming::detail::Stream< StreamStateT >::Write().
Here is the call graph for this function:
|
default |
|
default |
|
inline |
Token associated with this stream.
This token can be used by a client to subscribe to this stream.
Definition at line 35 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::_shared_state.
Referenced by Benchmark::AddStream(), and FCarlaServer::FPimpl::BindActions().
Here is the caller graph for this function:
|
inline |
Flush buffers down the stream. No copies are made.
Definition at line 52 of file detail/Stream.h.
References carla::streaming::detail::Stream< StreamStateT >::_shared_state.
Referenced by carla::streaming::detail::Stream< StreamStateT >::operator<<().
Here is the caller graph for this function:
|
friend |
Definition at line 72 of file detail/Stream.h.
|
private |
Definition at line 79 of file detail/Stream.h.
Referenced by carla::streaming::detail::Stream< StreamStateT >::AreClientsListening(), carla::streaming::detail::Stream< StreamStateT >::MakeBuffer(), carla::streaming::detail::Stream< StreamStateT >::Stream(), carla::streaming::detail::Stream< StreamStateT >::token(), and carla::streaming::detail::Stream< StreamStateT >::Write().
1.8.13