CARLA
Public Member Functions | Private Attributes | List of all members
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:
+ Collaboration 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_typetoken () 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
 
NonCopyableoperator= (const NonCopyable &)=delete
 
NonCopyableoperator= (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 ~StreamStateBase().

+ Here is the call graph for this function:

◆ ~StreamStateBase()

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

Referenced by StreamStateBase().

+ Here is the caller graph for this function:

Member Function Documentation

◆ ClearSessions()

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

Implemented in carla::streaming::detail::MultiStreamState.

Referenced by token().

+ Here is the caller graph for this function:

◆ ConnectSession()

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

Implemented in carla::streaming::detail::MultiStreamState.

Referenced by token().

+ Here is the caller graph for this function:

◆ DisconnectSession()

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

Implemented in carla::streaming::detail::MultiStreamState.

Referenced by token().

+ Here is the caller graph for this function:

◆ MakeBuffer()

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

Definition at line 21 of file StreamStateBase.cpp.

References _buffer_pool.

Referenced by token().

+ Here is the caller graph for this function:

◆ token()

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

Definition at line 31 of file StreamStateBase.h.

References _token, ClearSessions(), ConnectSession(), DisconnectSession(), and MakeBuffer().

+ Here is the call graph for this function:

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().

◆ _token

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

Definition at line 45 of file StreamStateBase.h.

Referenced by token().


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