5 #include <boost\shared_ptr.hpp>
16 unsigned int m_maxelements;
17 list<boost::shared_ptr<T>> m_elements;
21 m_maxelements(maxLength)
26 if (m_elements.size() > 0)
32 while(m_elements.size() >= m_maxelements)
33 m_elements.pop_front();
35 m_elements.push_back(boost::shared_ptr<T>(e));
40 return m_elements.begin().get();
45 return m_elements.pop_front().get();
49 typedef boost::shared_ptr<CGDEntriesQueue<GDBlink>> CGDBlinksQueuePtr;
50 typedef boost::shared_ptr<CGDEntriesQueue<GDFixation>> CGDFixationsQueuePtr;
51 typedef boost::shared_ptr<CGDEntriesQueue<GDSingleSample>> CGDSSampleQueuePtr;