00001 /* 00002 * ===================================================================================== 00003 * 00004 * Filename: inputBuffer.h 00005 * 00006 * Description: 00007 * 00008 * Version: 1.0 00009 * Created: 02/18/2010 07:46:32 PM 00010 * Revision: none 00011 * Compiler: gcc 00012 * 00013 * Author: Mitchelle Rasquinha (), mitchelle.rasquinha@gatech.edu 00014 * Company: Georgia Institute of Technology 00015 * 00016 * ===================================================================================== 00017 */ 00018 00019 #ifndef _inputbuffer_h_INC 00020 #define _inputbuffer_h_INC 00021 00022 #include "buffer.h" 00023 00024 typedef unsigned int uint; 00025 00026 /* 00027 * ===================================================================================== 00028 * Class: InputBuffer 00029 * Description: 00030 * ===================================================================================== 00031 */ 00032 class InputBuffer : public Buffer 00033 { 00034 public: 00035 InputBuffer (){} /* constructor */ 00036 virtual ~InputBuffer(){} 00037 virtual void set_no_vc ( uint vc ); 00038 virtual uint get_no_vc () const; 00039 virtual void change_pull_channel ( uint channel ); 00040 virtual void change_push_channel ( uint channel ); 00041 virtual uint get_pull_channel () const; 00042 virtual uint get_push_channel () const; 00043 virtual bool is_channel_full ( uint channel ) const; 00044 virtual bool is_empty ( uint channel ) const; 00045 00046 protected: 00047 00048 private: 00049 00050 }; /* ----- end of class InputBuffer ----- */ 00051 00052 #endif /* ----- #ifndef _inputbuffer_h_INC ----- */