OpenDaVINCI  4.16.0
BufferedFIFOQueue.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_BASE_BUFFEREDFIFOQUEUE_H_
21 #define OPENDAVINCI_CORE_BASE_BUFFEREDFIFOQUEUE_H_
22 
27 
28 namespace odcore {
29  namespace base {
30 
31  using namespace std;
32 
39  private:
46 
52  BufferedFIFOQueue& operator=(const BufferedFIFOQueue &);
53 
54  public:
60  BufferedFIFOQueue(const uint32_t &bufferSize);
61 
62  virtual ~BufferedFIFOQueue();
63 
64  virtual void enter(const data::Container &container);
65 
71  int32_t getIndexOfLastElement() const;
72 
80  const data::Container getElementAt(const uint32_t &index) const throw (exceptions::ArrayIndexOutOfBoundsException);
81 
87  virtual bool isFull() const;
88 
89  private:
90  uint32_t m_bufferSize;
91  };
92 
93  }
94 } // odcore::base
95 
96 #endif /*OPENDAVINCI_CORE_BASE_BUFFEREDFIFOQUEUE_H_*/
Definition: Container.h:40
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: BufferedFIFOQueue.h:38
Definition: FIFOQueue.h:38