MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / Pop

Method Pop

Include/XnQueue.h:78–87  ·  view source on GitHub ↗

* Pop the value at the top of the queue * * @param value [out] The value that was at the top of the queue * * @return XN_STATUS_IS_EMPTY The queue is empty */

Source from the content-addressed store, hash-verified

76 * @return XN_STATUS_IS_EMPTY The queue is empty
77 */
78 virtual XnStatus Pop(XnValue& value)
79 {
80 if (IsEmpty())
81 {
82 return XN_STATUS_IS_EMPTY;
83 }
84
85 value = *(m_List.begin());
86 return m_List.Remove(m_List.begin());
87 }
88
89 /**
90 * Get the value at the top of the queue (it is user responsibility to check queue is not empty)

Callers 1

TESTFunction · 0.45

Calls 3

IsEmptyFunction · 0.85
beginMethod · 0.45
RemoveMethod · 0.45

Tested by 1

TESTFunction · 0.36