|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCONFDATA_CONSTITER_H
6 #define TRIGCONFDATA_CONSTITER_H
31 template<
typename V,
typename T>
54 std::function<T(
const typename V::value_type &)>
f = [](
auto &
x)->T{
return {
x};}) :
94 std::function<T(
const typename V::value_type &)>
m_f;
107 template<
typename V,
typename T>
const V & m_buf
Const reference to the underlying data container.
std::size_t m_offset
Current position of the iterator.
std::function< T(const typename V::value_type &)> m_f
Function to turn a single datum from the container into the output type.
bool operator==(const ConstIter &i) const
Comparison operator.
Forward iterator to traverse the main components of the trigger configuration.
const T & operator*() const
Dereference operator Creates object of type T from the current object in the container on the fly usi...
Cached value with atomic update.
Forward iterator over an iterable of type V returning an object of type T.
ConstIter(const V &buf, size_t offset=0, std::function< T(const typename V::value_type &)> f=[](auto &x) ->T{return {x};})
Constructor.
Cached value with atomic update.
std::forward_iterator_tag iterator_category
V::const_iterator m_bufIt
Iterator over the container.
bool operator!=(const ConstIter &i) const
Not-equal operator.
ConstIter & operator++()
Pre-increment operator.
std::ptrdiff_t difference_type
CxxUtils::CachedValue< T > m_data
Holder of the transformed data.