YARP  2.3.72
Yet Another Robot Platform
yarp::os::PortReaderBufferBase Class Reference

#include <yarp/os/PortReaderBufferBase.h>

+ Inheritance diagram for yarp::os::PortReaderBufferBase:


class  Private

Public Member Functions

 PortReaderBufferBase (unsigned int maxBuffer)
virtual ~PortReaderBufferBase ()
void setCreator (PortReaderBufferBaseCreator *creator)
void setReplier (yarp::os::PortReader &reader)
void setPrune (bool flag=true)
void setTargetPeriod (double period)
yarp::os::ConstString getName () const
unsigned int getMaxBuffer ()
bool isClosed ()
void clear ()
virtual yarp::os::PortReadercreate ()
int check ()
virtual bool read (yarp::os::ConnectionReader &connection) override
 Read this object from a network connection. More...
yarp::os::PortReaderreadBase (bool &missed, bool cleanup)
void interrupt ()
void attachBase (yarp::os::Port &port)
virtual bool acceptObjectBase (yarp::os::PortReader *obj, yarp::os::PortWriter *wrapper)
 Careful! merge with ::read – very similar code Until merge, don't change one without looking at other :-(. More...
virtual bool forgetObjectBase (yarp::os::PortReader *obj, yarp::os::PortWriter *wrapper)
virtual bool getEnvelope (PortReader &envelope)
void * acquire ()
void release (void *key)
void YARP_DEPRECATED setAllowReuse (bool flag=true)
void YARP_DEPRECATED release (yarp::os::PortReader *completed)
- Public Member Functions inherited from yarp::os::PortReader
virtual ~PortReader ()
 Destructor. More...
virtual Type getReadType ()

Detailed Description

Definition at line 23 of file PortReaderBufferBase.h.

Constructor & Destructor Documentation

◆ PortReaderBufferBase()

PortReaderBufferBase::PortReaderBufferBase ( unsigned int  maxBuffer)

Definition at line 353 of file PortReaderBufferBase.cpp.

◆ ~PortReaderBufferBase()

PortReaderBufferBase::~PortReaderBufferBase ( )

Definition at line 358 of file PortReaderBufferBase.cpp.

Member Function Documentation

◆ acceptObjectBase()

bool PortReaderBufferBase::acceptObjectBase ( yarp::os::PortReader obj,
yarp::os::PortWriter wrapper 

Careful! merge with ::read – very similar code Until merge, don't change one without looking at other :-(.

Definition at line 557 of file PortReaderBufferBase.cpp.

◆ acquire()

void * PortReaderBufferBase::acquire ( )

Definition at line 619 of file PortReaderBufferBase.cpp.

◆ attachBase()

void PortReaderBufferBase::attachBase ( yarp::os::Port port)

Definition at line 546 of file PortReaderBufferBase.cpp.

◆ check()

int PortReaderBufferBase::check ( )

Definition at line 371 of file PortReaderBufferBase.cpp.

◆ clear()

void PortReaderBufferBase::clear ( )

Definition at line 637 of file PortReaderBufferBase.cpp.

◆ create()

yarp::os::PortReader * PortReaderBufferBase::create ( )

Definition at line 363 of file PortReaderBufferBase.cpp.

◆ forgetObjectBase()

bool PortReaderBufferBase::forgetObjectBase ( yarp::os::PortReader obj,
yarp::os::PortWriter wrapper 

Definition at line 608 of file PortReaderBufferBase.cpp.

◆ getEnvelope()

bool PortReaderBufferBase::getEnvelope ( PortReader envelope)

Definition at line 632 of file PortReaderBufferBase.cpp.

◆ getMaxBuffer()

unsigned int PortReaderBufferBase::getMaxBuffer ( )

Definition at line 536 of file PortReaderBufferBase.cpp.

◆ getName()

ConstString PortReaderBufferBase::getName ( ) const

Definition at line 531 of file PortReaderBufferBase.cpp.

◆ interrupt()

void PortReaderBufferBase::interrupt ( )

Definition at line 380 of file PortReaderBufferBase.cpp.

◆ isClosed()

bool PortReaderBufferBase::isClosed ( )

Definition at line 541 of file PortReaderBufferBase.cpp.

◆ read()

bool PortReaderBufferBase::read ( yarp::os::ConnectionReader reader)

Read this object from a network connection.

Override this for your particular class.

readeran interface to the network connection for reading
true iff the object is successfully read

Implements yarp::os::PortReader.

Definition at line 442 of file PortReaderBufferBase.cpp.

◆ readBase()

PortReader * PortReaderBufferBase::readBase ( bool &  missed,
bool  cleanup 

Definition at line 386 of file PortReaderBufferBase.cpp.

◆ release() [1/2]

void PortReaderBufferBase::release ( void *  key)

Definition at line 624 of file PortReaderBufferBase.cpp.

◆ release() [2/2]

void PortReaderBufferBase::release ( yarp::os::PortReader completed)

Definition at line 649 of file PortReaderBufferBase.cpp.

◆ setAllowReuse()

void PortReaderBufferBase::setAllowReuse ( bool  flag = true)

Definition at line 659 of file PortReaderBufferBase.cpp.

◆ setCreator()

void PortReaderBufferBase::setCreator ( PortReaderBufferBaseCreator creator)

Definition at line 511 of file PortReaderBufferBase.cpp.

◆ setPrune()

void PortReaderBufferBase::setPrune ( bool  flag = true)

Definition at line 521 of file PortReaderBufferBase.cpp.

◆ setReplier()

void PortReaderBufferBase::setReplier ( yarp::os::PortReader reader)

Definition at line 516 of file PortReaderBufferBase.cpp.

◆ setTargetPeriod()

void PortReaderBufferBase::setTargetPeriod ( double  period)

Definition at line 526 of file PortReaderBufferBase.cpp.

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