diff options
Diffstat (limited to 'veslibrary/ves_cpplibrary/src/lib/transport/XMemQueue.h')
-rwxr-xr-x | veslibrary/ves_cpplibrary/src/lib/transport/XMemQueue.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/veslibrary/ves_cpplibrary/src/lib/transport/XMemQueue.h b/veslibrary/ves_cpplibrary/src/lib/transport/XMemQueue.h new file mode 100755 index 0000000..0a1a651 --- /dev/null +++ b/veslibrary/ves_cpplibrary/src/lib/transport/XMemQueue.h @@ -0,0 +1,24 @@ +#pragma once
+
+#include "XQueue.h"
+#include <queue>
+
+namespace vagt
+{
+ namespace queue
+ {
+ class XMemQueue: public XQueue
+ {
+ public:
+ XMemQueue(int capacity);
+ virtual bool empty() override;
+ virtual XErrorCode push(const std::string & val) override;
+ virtual void pop() override;
+ virtual std::string front() override;
+ private:
+ int capacity_;
+ int size_;
+ std::queue<std::string> queue_;
+ };
+ }
+}
|