#include <ClientInfo.h>

Collaboration diagram for CommQuotaQueue:

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *address)
 
void * toCbdata () noexcept
 
 CommQuotaQueue (ClientInfo *info)
 
 ~CommQuotaQueue ()
 
bool empty () const
 
size_t size () const
 
int front () const
 
unsigned int enqueue (int fd)
 places the given fd at the end of the queue; returns reservation ID More...
 
void dequeue ()
 removes queue head More...
 

Public Attributes

ClientInfoclientInfo
 bucket responsible for quota maintenance More...
 
int ins
 number of enqueue calls, used to generate a "reservation" ID More...
 
int outs
 number of dequeue calls, used to check the "reservation" ID More...
 

Private Types

typedef std::deque< intStore
 

Private Attributes

Store fds
 descriptor queue More...
 

Static Private Attributes

static cbdata_type CBDATA_CommQuotaQueue = CBDATA_UNKNOWN
 

Detailed Description

Definition at line 107 of file ClientInfo.h.

Member Typedef Documentation

typedef std::deque<int> CommQuotaQueue::Store
private

Definition at line 129 of file ClientInfo.h.

Constructor & Destructor Documentation

CommQuotaQueue::CommQuotaQueue ( ClientInfo info)

Definition at line 1438 of file comm.cc.

References assert, and clientInfo.

CommQuotaQueue::~CommQuotaQueue ( )

Definition at line 1444 of file comm.cc.

References assert, and clientInfo.

Member Function Documentation

void CommQuotaQueue::dequeue ( )

Definition at line 1461 of file comm.cc.

References assert, clientInfo, debugs, fds, hash_link::key, and outs.

Referenced by ClientInfo::quotaDequeue().

bool CommQuotaQueue::empty ( ) const
inline

Definition at line 115 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::hasQueue().

unsigned int CommQuotaQueue::enqueue ( int  fd)

Definition at line 1451 of file comm.cc.

References clientInfo, debugs, fds, ins, and hash_link::key.

Referenced by ClientInfo::quotaEnqueue().

int CommQuotaQueue::front ( ) const
inline

Definition at line 117 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::quotaPeekFd().

void CommQuotaQueue::operator delete ( void *  address)
inline

Definition at line 109 of file ClientInfo.h.

void* CommQuotaQueue::operator new ( size_t  size)
inline

Definition at line 109 of file ClientInfo.h.

size_t CommQuotaQueue::size ( ) const
inline

Definition at line 116 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::quota().

void* CommQuotaQueue::toCbdata ( )
inlinenoexcept

Definition at line 109 of file ClientInfo.h.

Member Data Documentation

cbdata_type CommQuotaQueue::CBDATA_CommQuotaQueue = CBDATA_UNKNOWN
staticprivate

Definition at line 109 of file ClientInfo.h.

ClientInfo* CommQuotaQueue::clientInfo
Store CommQuotaQueue::fds
private

Definition at line 130 of file ClientInfo.h.

Referenced by dequeue(), empty(), enqueue(), front(), and size().

int CommQuotaQueue::ins

Definition at line 124 of file ClientInfo.h.

Referenced by enqueue().

int CommQuotaQueue::outs

Definition at line 125 of file ClientInfo.h.

Referenced by dequeue(), and ClientInfo::quotaPeekReserv().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors