MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / IterableQueue

Class IterableQueue

include/thundersvm/util/log.h:2870–2883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2868/// @brief Implements IterableContainer and provides iterable std::queue class
2869template<typename T, typename Container = std::deque<T>>
2870class IterableQueue : public IterableContainer<T, Container>, public std::queue<T, Container> {
2871 public:
2872 IterableQueue(std::queue<T, Container> queue_) {
2873 std::size_t count_ = 0;
2874 while (++count_ < base::consts::kMaxLogPerContainer && !queue_.empty()) {
2875 this->push(queue_.front());
2876 queue_.pop();
2877 }
2878 }
2879 private:
2880 inline Container& getContainer(void) {
2881 return this->c;
2882 }
2883};
2884/// @brief Implements IterableContainer and provides iterable std::stack class
2885template<typename T, typename Container = std::deque<T>>
2886class IterableStack : public IterableContainer<T, Container>, public std::stack<T, Container> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected