#include <SHData.h>
Inheritance diagram for SH::Data:
Public Member Functions | |
Data () | |
virtual | ~Data () |
virtual RPtr< Data > | clone ()=0 |
virtual size_t | getByteSize () const =0 |
virtual bool | isPlainData () const =0 |
virtual bool | isOrderedData () const =0 |
Like isPlainData, but for SHOrderedData*. | |
virtual bool | isRTPData () const =0 |
Like isPlainData, but for MNRTPPacket*. | |
virtual bool | isDummyData () const =0 |
Like isPlainData, but for DummyData*. | |
virtual bool | isSHRTPData () const =0 |
Like isPlainData( ), but for SHRTPData*. | |
void | ref () |
void | unref () |
SHPlainData * | asPlainData () |
SHOrderedData * | asOrderedData () |
MNRTPPacket * | asRTPData () |
DummyData * | asDummyData () |
OrderedDummyData * | asOrderedDummyData () |
SHRTPData * | asSHRTPData () |
|
|
|
Destructor |
|
Make a logical copy of the Data item. This logical copy may be a physical copy as well, or a reference count, or anything else that works. Implemented in MNRTPPacket, SH::DummyData, SH::OrderedDummyData, SH::SHOrderedData, SH::SHPlainData, and SH::SHRTPData.
|
|
The number of bytes that the payload of this data packet represents. In case of RTP, without the header, in case of dummy data, the virtually present data. Implemented in MNRTPPacket, SH::DummyData, SH::SHPlainData, and SH::SHRTPData.
|
|
Like isPlainData, but for DummyData*.
Implemented in MNRTPPacket, SH::DummyData, SH::SHPlainData, and SH::SHRTPData.
|
|
Like isPlainData, but for SHOrderedData*.
Implemented in MNRTPPacket, SH::DummyData, SH::OrderedDummyData, SH::SHOrderedData, SH::SHPlainData, and SH::SHRTPData.
|
|
This virtual function can be called to test whether a Data* is also a SHPlainData*. If it is, we can do a safe typecast using the asPlainData() function. Implemented in MNRTPPacket, SH::DummyData, SH::SHPlainData, and SH::SHRTPData.
|
|
Like isPlainData, but for MNRTPPacket*.
Implemented in MNRTPPacket, SH::DummyData, SH::SHPlainData, and SH::SHRTPData.
|
|
Like isPlainData( ), but for SHRTPData*.
Implemented in MNRTPPacket, SH::DummyData, SH::SHPlainData, and SH::SHRTPData.
|
|
|
|
Return the current item to its own memory pool. After a call to release(), all pointers to the Data item are invalid, since release() may be implemented as "delete this;". |