OpenDaVINCI  4.16.0
BufferedLIFOQueue.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_BASE_BUFFEREDLIFOQUEUE_H_
21 #define OPENDAVINCI_CORE_BASE_BUFFEREDLIFOQUEUE_H_
22 
27 
28 namespace odcore {
29  namespace base {
30 
31  using namespace std;
32 
39  private:
46 
52  BufferedLIFOQueue& operator=(const BufferedLIFOQueue &);
53 
54  public:
60  BufferedLIFOQueue(const uint32_t &bufferSize);
61 
62  virtual ~BufferedLIFOQueue();
63 
64  virtual void push(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 
82  private:
83  uint32_t m_bufferSize;
84  };
85 
86  }
87 } // odcore::base
88 
89 #endif /*OPENDAVINCI_CORE_BASE_BUFFEREDLIFOQUEUE_H_*/
Definition: Container.h:40
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: BufferedLIFOQueue.h:38
Definition: LIFOQueue.h:38