1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
NOUSERMACRO(Iterator ReverseIterator last max min)
includefile(include/header)
COMMENT(manpage, section, releasedate, archive, short name)
manpage(FBB::Iterator)(3bobcat)(_CurYrs_)(libbobcat-dev__CurVers_)
(Iterator returning plain values)
manpagename(FBB::Iterator)(Iterator returning plain values when dereferenced)
FBB::ReverseIterator - reverse_iterator for bf(FBB::Iterator)
manpagesynopsis()
bf(#include <bobcat/iterator>)nl()
manpagedescription()
The bf(FBB::Iterator<Type>) class template implements a bidirectional iterator
for plain data types. Dereferencing bf(FBB::Iterator) objects returns values
of type bf(Type), e.g., tt(char) or tt(int). This iterator comes in handy in
case you need to initialize an objects with a range of values, which are of
some basic type (see also the bf(EXAMPLE) section).
bf(FBB::ReverseIterator) implements a reverse iterator for bf(FBB::Iterator).
includefile(include/namespace)
manpagesection(INHERITS FROM)
tt(std::iterator<std::bidirectional_iterator_tag, ...>)
manpagesection(CONSTRUCTORS)
Constructors for bf(Iterator<Type>):
itemization(
itb(explicit Iterator(Tye const &value))
This constructor initializes the bf(Iterator) object with an initial
tt(Type) value. When dereferencing this iterator, tt(value) is
returned.
)
The bf(Iterator<Type>)'s default, copy, and
move constructors (and its copy and move assignment operators) are available.
Constructors for bf(ReverseIterator<Type>):
itemization(
itb(explicit ReverseIterator(Type const &value))
This constructor initializes the bf(ReverseIterator) object with an
initial tt(Type) value. When dereferencing this iterator immediately
following its construction, the decremented tt(value) is returned
(without modifying the internally stored tt(Type value));
itb(explicit ReverseIterator(Iterator<Type> const &iter))
This constructor initializes the bf(ReverseIterator) object with an
initial tt(Iterator<Type>) object. When dereferencing this iterator
immediately following its construction, the decremented bf(Iterator)'s
tt(value) is returned (without modifying the tt(Type
value) that is stored inside the bf(Iterator)).
)
The bf(ReverseIterator<Type>)'s default, copy, and
move constructors (and its copy and move assignment operators) are available.
manpagesection(MEMBER FUNCTIONS)
For template parameter type tt(Type) all members of
tt(std::iterator<std:::reverse_iterator_tag, Type>) are available, as
bf(FBB::Iterator) and bf(FBB::ReverseIterator) inherit from this class.
itemization(
itb(Iterator<Type> &operator++())
The (prefix) increment operator increments the iterator's value and
returns a reference to itself;
itb(Iterator<Type> &operator++(int))
The (postfix) increment operator increments the iterator's value and
returns a copy of itself, initialized with the iterator's value before
it was incremented;
itb(Iterator<Type> &operator--())
The (prefix) decrement operator decrements the iterator's value and
returns a reference to itself;
itb(Iterator<Type> &operator--(int))
The (postfix) decrement operator decrements the iterator's value and
returns a copy of itself, initialized with the iterator's value before
it was decremented;
itb(bool operator==(Iterator<Type> const &rhs) const)
This operator returns tt(true) if the value of the current bf(Iterator)
object is equal to the value of the tt(rhs) bf(Iterator) object;
itb(bool operator!=(Iterator<Type> const &rhs) const)
This operator returns tt(true) if the value of the current bf(Iterator)
object is not equal to the value of the tt(rhs) bf(Iterator) object;
itb(Type &operator*())
The derefence operator returns a reference to the bf(Iterator)'s value.
itb(Type const &operator*() const)
This derefence operator returns a reference to the bf(Iterator)'s
immutable value.
)
manpagesection(STATIC MEMBER FUNCTIONS)
Static members of bf(Iterator<Type>):
itemization(
itb(Iterator<Type> last(Type value))
An bf(Iterator<Type>) object is returned initialized with tt(++value),
so it can be conveniently be used to create an inclusive iterator
range (see also section bf(EXAMPLE));
itb(Iterator<Type> max())
An bf(Iterator<Type>) object is returned initialized with the value
returned by tt(std::numeric_limits<Type>::max());
itb(Iterator<Type> min())
An bf(Iterator<Type>) object is returned initialized with the value
returned by tt(std::numeric_limits<Type>::min())
)
Static member of bf(ReverseIterator<Type>):
itemization(
itb(ReverseIterator<Type> last(Type const &value))
A bf(ReverseIterator<Type>) object is returned initialized with
bf(Iterator<Type>::last(value)), so it can be conveniently be used to
create an inclusive reverse iterator range (see also section
bf(EXAMPLE));
)
manpagesection(EXAMPLE)
verbinclude(../../iterator/driver/driver.cc)
manpagefiles()
em(bobcat/iterator) - defines the class interface
manpageseealso()
bf(bobcat)(7)
manpagebugs()
None Reported.
includefile(include/trailer)
|