libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moBucketsPool Class Reference

Administrador de moBucket 's. More...

#include <moBuckets.h>

Public Member Functions

 moBucketsPool ()
 
virtual ~moBucketsPool ()
 
bool AddBucket (moBucket *pBucket)
 
bool AddBucket (MOlong size, MOubyte *pbuf)
 
moBucketGetEmptyBucket ()
 
moBucketRetreiveBucket ()
 
moBucketGetActualBucket ()
 
moBucketRetreivedBucket ()
 
bool DestroyRetreivedBucket ()
 
bool IsEmpty ()
 
bool IsFull ()
 

Public Attributes

MOlong m_nBuckets
 

Protected Attributes

moBucketm_pRetreivedBucket
 
MOlong m_lMaxBuckets
 
moLock m_PoolLock
 
moBucketm_pFirstBucketToGo
 
moBucketm_pLastBucketToGo
 
moBucketm_pFirstEmptyBucket
 
moBucketm_pLastEmptyBucket
 
MOlong m_nEmptyBuckets
 

Detailed Description

Administrador de moBucket 's.

Objeto para administrar la lista de moBucket 's. El manejo es del tipo FIFO. First In, First Out. Primero que entra, primero que sale. No pierde cuadros ni memoria, siempre y cuando se use la función RetreiveBucket

Definition at line 152 of file moBuckets.h.

Constructor & Destructor Documentation

moBucketsPool::moBucketsPool ( )

Definition at line 123 of file moBuckets.cpp.

moBucketsPool::~moBucketsPool ( )
virtual

Definition at line 131 of file moBuckets.cpp.

Member Function Documentation

bool moBucketsPool::AddBucket ( moBucket pBucket)

Definition at line 149 of file moBuckets.cpp.

bool moBucketsPool::AddBucket ( MOlong  size,
MOubyte pbuf 
)

Definition at line 169 of file moBuckets.cpp.

bool moBucketsPool::DestroyRetreivedBucket ( )

Definition at line 244 of file moBuckets.cpp.

moBucket * moBucketsPool::GetActualBucket ( )

Definition at line 254 of file moBuckets.cpp.

moBucket * moBucketsPool::GetEmptyBucket ( )

Definition at line 195 of file moBuckets.cpp.

bool moBucketsPool::IsEmpty ( )

Definition at line 138 of file moBuckets.cpp.

bool moBucketsPool::IsFull ( )

Definition at line 143 of file moBuckets.cpp.

moBucket * moBucketsPool::RetreiveBucket ( )

Definition at line 205 of file moBuckets.cpp.

moBucket * moBucketsPool::RetreivedBucket ( )

Definition at line 240 of file moBuckets.cpp.

Member Data Documentation

MOlong moBucketsPool::m_lMaxBuckets
protected

Definition at line 174 of file moBuckets.h.

MOlong moBucketsPool::m_nBuckets

Definition at line 168 of file moBuckets.h.

MOlong moBucketsPool::m_nEmptyBuckets
protected

Definition at line 181 of file moBuckets.h.

moBucket* moBucketsPool::m_pFirstBucketToGo
protected

Definition at line 176 of file moBuckets.h.

moBucket* moBucketsPool::m_pFirstEmptyBucket
protected

Definition at line 179 of file moBuckets.h.

moBucket* moBucketsPool::m_pLastBucketToGo
protected

Definition at line 177 of file moBuckets.h.

moBucket* moBucketsPool::m_pLastEmptyBucket
protected

Definition at line 180 of file moBuckets.h.

moLock moBucketsPool::m_PoolLock
protected

Definition at line 175 of file moBuckets.h.

moBucket* moBucketsPool::m_pRetreivedBucket
protected

Definition at line 171 of file moBuckets.h.


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