Cmdbuf Class Reference

#include <network.h>

Collaboration diagram for Cmdbuf:

Collaboration graph
[legend]

Public Member Functions

 Cmdbuf (int)
 ~Cmdbuf ()
bool isempty ()
bool isfull ()
int num_entry ()
bool deq ()
bool enq (void *)
void * head ()

Constructor & Destructor Documentation

Cmdbuf::Cmdbuf ( int  n  ) 

Cmdbuf constructor

Parameters:
n the number of command buffer

Cmdbuf::~Cmdbuf (  ) 

Cmdbuf destructor


Member Function Documentation

bool Cmdbuf::isempty (  ) 

check whether the command buffer has one or more commands or not

Returns:
0: there is no command, 1: there are one or more commands

bool Cmdbuf::isfull (  ) 

check whether the command buffer is full

Returns:
0: not full, 1: full

int Cmdbuf::num_entry (  ) 

get the number of command buffer

Returns:
the number of command buffer

bool Cmdbuf::deq (  ) 

dequeue the command in the command buffer

Returns:
true: succeeded, false: failed

bool Cmdbuf::enq ( void *  _data  ) 

enqueue a command to the command buffer

Parameters:
data the command should be stored to the command buffer
Returns:
true: succeeded, false: failed

void * Cmdbuf::head (  ) 

get the older command in the command buffer

Returns:
cmdbuf_t*: succeeded, NULL: failed


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

Generated on Mon Mar 29 19:17:57 2010 for SimMc by  doxygen 1.5.6