sipxmedialib  Version 3.3
Public Member Functions | Private Member Functions | Friends | List of all members
MpBufList Struct Reference

Class for internal MpBufPool use. More...

Inheritance diagram for MpBufList:
Inheritance graph
[legend]
Collaboration diagram for MpBufList:
Collaboration graph
[legend]

Public Member Functions

MpBufListgetNextBuf ()
 Get buffer next to current. More...
 
void setNextBuf (MpBuf *pNext)
 Set buffer next to current. More...
 
int length () const
 
- Public Member Functions inherited from MpBuf
void attach ()
 Increments reference counter. More...
 
void detach ()
 Decrements reference counter and free buffer if needed. More...
 
void setFlowGraph (MpFlowGraphBase *flowgraph)
 
MP_BUFFERS_TREE getType () const
 Get buffer type. More...
 
MpBufPoolgetBufferPool () const
 Get parent pool of this buffer. More...
 

Private Member Functions

 MpBufList (const MpBuf &)
 Disable copy (and other) constructor. More...
 
MpBufListoperator= (const MpBuf &)
 Disable assignment operator. More...
 

Friends

class MpBufPool
 

Additional Inherited Members

- Static Protected Member Functions inherited from MpBuf
static void sInitClone (MpBuf *pBuffer)
 Function that initialize buffer after cloning. It adjusts reference counters. More...
 
- Protected Attributes inherited from MpBuf
MP_BUFFERS_TREE mType
 Buffer class type. Used for type safety. More...
 
int mRefCounter
 Reference counter for use with MpBufPtr. More...
 
MpBufPoolmpPool
 Parent memory pool. More...
 
MpFlowGraphBasempFlowGraph
 Debug pointer to flowgraph in which this buf is used. More...
 
void(* mpDestroy )(MpBuf *)
 
void(* mpInitClone )(MpBuf *)
 

Detailed Description

Class for internal MpBufPool use.

This class provides single linked list interface for MpBuf class. It uses MpBuf::mpPool to store pointer to next buffer.

Constructor & Destructor Documentation

MpBufList ( const MpBuf )
private

Disable copy (and other) constructor.

This struct will be initialized by init() member.

Member Function Documentation

MpBufList* getNextBuf ( )
inline

Get buffer next to current.

void setNextBuf ( MpBuf pNext)
inline

Set buffer next to current.

int length ( ) const
inline
MpBufList& operator= ( const MpBuf )
private

Disable assignment operator.

Buffers may be copied. But do we need this?

Friends And Related Function Documentation

friend class MpBufPool
friend