YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ShmemOutputStreamImpl Class Reference

#include <shmem_carrier/ShmemOutputStream.h>

Public Member Functions

 ShmemOutputStreamImpl ()
 
 ~ShmemOutputStreamImpl ()
 
bool isOk () const
 
bool open (int port, int size=4096)
 
bool write (const yarp::os::Bytes &b)
 
void close ()
 

Protected Member Functions

bool Resize (int newsize)
 
void unlinkAll ()
 

Protected Attributes

bool m_bOpen
 
int m_ResizeNum
 
int m_Port
 
shmem::NamedSemaphore m_AccessMutex
 
shmem::NamedSemaphore m_WaitDataSem
 
std::unique_ptr< shmem::SharedMemory > m_pMap
 
std::vector< std::unique_ptr< shmem::SharedMemory > > m_OldMaps
 
char * m_pData
 
ShmemHeader_t * m_pHeader
 

Detailed Description

Definition at line 19 of file ShmemOutputStream.h.

Constructor & Destructor Documentation

◆ ShmemOutputStreamImpl()

ShmemOutputStreamImpl::ShmemOutputStreamImpl ( )

Definition at line 17 of file ShmemOutputStream.cpp.

◆ ~ShmemOutputStreamImpl()

ShmemOutputStreamImpl::~ShmemOutputStreamImpl ( )

Definition at line 26 of file ShmemOutputStream.cpp.

Member Function Documentation

◆ close()

void ShmemOutputStreamImpl::close ( )

Definition at line 200 of file ShmemOutputStream.cpp.

◆ isOk()

bool ShmemOutputStreamImpl::isOk ( ) const

Definition at line 31 of file ShmemOutputStream.cpp.

◆ open()

bool ShmemOutputStreamImpl::open ( int  port,
int  size = 4096 
)

Definition at line 47 of file ShmemOutputStream.cpp.

◆ Resize()

bool ShmemOutputStreamImpl::Resize ( int  newsize)
protected

Definition at line 94 of file ShmemOutputStream.cpp.

◆ unlinkAll()

void ShmemOutputStreamImpl::unlinkAll ( )
protected

Definition at line 36 of file ShmemOutputStream.cpp.

◆ write()

bool ShmemOutputStreamImpl::write ( const yarp::os::Bytes &  b)

Definition at line 142 of file ShmemOutputStream.cpp.

Member Data Documentation

◆ m_AccessMutex

shmem::NamedSemaphore ShmemOutputStreamImpl::m_AccessMutex
protected

Definition at line 41 of file ShmemOutputStream.h.

◆ m_bOpen

bool ShmemOutputStreamImpl::m_bOpen
protected

Definition at line 34 of file ShmemOutputStream.h.

◆ m_OldMaps

std::vector<std::unique_ptr<shmem::SharedMemory> > ShmemOutputStreamImpl::m_OldMaps
protected

Definition at line 52 of file ShmemOutputStream.h.

◆ m_pData

char* ShmemOutputStreamImpl::m_pData
protected

Definition at line 53 of file ShmemOutputStream.h.

◆ m_pHeader

ShmemHeader_t* ShmemOutputStreamImpl::m_pHeader
protected

Definition at line 54 of file ShmemOutputStream.h.

◆ m_pMap

std::unique_ptr<shmem::SharedMemory> ShmemOutputStreamImpl::m_pMap
protected

Definition at line 48 of file ShmemOutputStream.h.

◆ m_Port

int ShmemOutputStreamImpl::m_Port
protected

Definition at line 37 of file ShmemOutputStream.h.

◆ m_ResizeNum

int ShmemOutputStreamImpl::m_ResizeNum
protected

Definition at line 36 of file ShmemOutputStream.h.

◆ m_WaitDataSem

shmem::NamedSemaphore ShmemOutputStreamImpl::m_WaitDataSem
protected

Definition at line 46 of file ShmemOutputStream.h.


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