* 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 */
| 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) |