D
Donos
Hello
I am working on a design in which there is a Queue which will read
data from a database. This happens in one particular class.
Class CRecieveData
{
std::queue<unsigned char> m_RxQueue;
}
Here the data is added into Queue using "push" function.
Now as per the design i have to extract the data from Queue in another
Class using Deque.
class CDecodeData
{
// Need to add code here to extract data from Queue declared
in another class, using Deque Iterator
}
ie, by using an Iterator of Deque.
Can anyone tell me how to do this?
Thanks.
I am working on a design in which there is a Queue which will read
data from a database. This happens in one particular class.
Class CRecieveData
{
std::queue<unsigned char> m_RxQueue;
}
Here the data is added into Queue using "push" function.
Now as per the design i have to extract the data from Queue in another
Class using Deque.
class CDecodeData
{
// Need to add code here to extract data from Queue declared
in another class, using Deque Iterator
}
ie, by using an Iterator of Deque.
Can anyone tell me how to do this?
Thanks.