Add iterator accessor

Move iterators to results class
This commit is contained in:
Adam Sunderland 2016-11-01 12:37:50 -05:00
parent 3ebfbd9923
commit bc8120f531

View File

@ -50,6 +50,22 @@ public:
std::string description;
};
/**
* @brief Return begin iterator for results in the queue.
*/
std::deque<Error>::const_iterator begin() const
{
return errors.begin();
}
/**
* @brief Return end iterator for results in the queue.
*/
std::deque<Error>::const_iterator end() const
{
return errors.end();
}
/**
* @brief Return the number of errors in the queue.
*/