#include <wipal/tool/window.hh>
Public Types | |
typedef HIDDEN | exact_type |
Iterator types | |
typedef HIDDEN | iterator |
typedef iterator | const_iterator |
Public Member Functions | |
window_maker (const InputIterator &first, const InputIterator &last) | |
iterator | begin () const |
iterator | end () const |
void | operator() (const OutputIterator &output) const |
Apply a function/functor to each element | |
void | for_each (Functor &f) const |
void | for_each (const Functor &f) const |
Downcast methods | |
const exact_type & | exact () const |
exact_type & | exact () |
const exact_type * | exact_ptr () const |
exact_type * | exact_ptr () |
Friends | |
class | window< InputIterator, WSize, Step > |
window_maker's main role is to provide a begin()
and an end()
method that return windows over a sequence.
typedef HIDDEN tool::iterable< Bottom >::exact_type [inherited] |
Exact type for this template instantiation.
Reimplemented from tool::static_base< Bottom >.
Reimplemented in pcapxx::descriptor< Bottom >.
tool::window_maker< InputIterator, WSize, Step, Bottom >::window_maker | ( | const InputIterator & | first, | |
const InputIterator & | last | |||
) |
Construct a window_maker from a sequence.
iterator tool::iterable< Bottom >::begin | ( | ) | const [inherited] |
Get an iterator to the first element.
iterator tool::iterable< Bottom >::end | ( | ) | const [inherited] |
Get an iterator to the end (past the last element).
exact_type& tool::static_base< Bottom >::exact | ( | ) | [inherited] |
Safely downcast to the exact type as a non-const reference.
const exact_type& tool::static_base< Bottom >::exact | ( | ) | const [inherited] |
Safely downcast to the exact type as a const reference.
exact_type* tool::static_base< Bottom >::exact_ptr | ( | ) | [inherited] |
Safely downcast to the exact type as a non-const pointer.
const exact_type* tool::static_base< Bottom >::exact_ptr | ( | ) | const [inherited] |
Safely downcast to the exact type as a const pointer.
void tool::iterable< Bottom >::operator() | ( | const OutputIterator & | output | ) | const [inline, inherited] |
Copy elements to output
.