CARLA
Loading...
Searching...
No Matches
carla::streaming::detail::StreamStateBase Class Referenceabstract

Shared state among all the copies of a stream. More...

#include <StreamStateBase.h>

Inheritance diagram for carla::streaming::detail::StreamStateBase:

Public Member Functions

virtual void ClearSessions ()=0
virtual void ConnectSession (std::shared_ptr< Session > session)=0
virtual void DisconnectSession (std::shared_ptr< Session > session)=0
Buffer MakeBuffer ()
 StreamStateBase (const token_type &token)
const token_type & token () const
virtual ~StreamStateBase ()

Private Attributes

const std::shared_ptr< BufferPool > _buffer_pool
const token_type _token

Additional Inherited Members

Private Member Functions inherited from carla::NonCopyable
 NonCopyable ()=default
 NonCopyable (const NonCopyable &)=delete
 NonCopyable (NonCopyable &&)=delete
NonCopyable & operator= (const NonCopyable &)=delete
NonCopyable & operator= (NonCopyable &&)=delete

Detailed Description

Shared state among all the copies of a stream.

Provides access to the underlying server session(s) if active.

Definition at line 24 of file StreamStateBase.h.

Constructor & Destructor Documentation

◆ StreamStateBase()

carla::streaming::detail::StreamStateBase::StreamStateBase ( const token_type & token)
explicit

Definition at line 15 of file StreamStateBase.cpp.

References _buffer_pool, _token, and token().

◆ ~StreamStateBase()

carla::streaming::detail::StreamStateBase::~StreamStateBase ( )
virtualdefault

Member Function Documentation

◆ ClearSessions()

virtual void carla::streaming::detail::StreamStateBase::ClearSessions ( )
pure virtual

◆ ConnectSession()

virtual void carla::streaming::detail::StreamStateBase::ConnectSession ( std::shared_ptr< Session > session)
pure virtual

◆ DisconnectSession()

virtual void carla::streaming::detail::StreamStateBase::DisconnectSession ( std::shared_ptr< Session > session)
pure virtual

◆ MakeBuffer()

Buffer carla::streaming::detail::StreamStateBase::MakeBuffer ( )

Definition at line 21 of file StreamStateBase.cpp.

References _buffer_pool.

◆ token()

const token_type & carla::streaming::detail::StreamStateBase::token ( ) const
inline

Member Data Documentation

◆ _buffer_pool

const std::shared_ptr<BufferPool> carla::streaming::detail::StreamStateBase::_buffer_pool
private

Definition at line 47 of file StreamStateBase.h.

Referenced by MakeBuffer(), and StreamStateBase().

◆ _token

const token_type carla::streaming::detail::StreamStateBase::_token
private

Definition at line 45 of file StreamStateBase.h.

Referenced by StreamStateBase(), and token().


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