Represents a has many iterator. More...
#include <container_iterator.hpp>
Public Types | |
typedef container_iterator< Type, ContainerType > | self |
typedef traits::value_type | value_type |
typedef traits::holder_type | holder_type |
typedef traits::difference_type | difference_type |
typedef traits::holder_container_iterator | holder_container_iterator |
typedef traits::holder_const_container_iterator | holder_const_container_iterator |
Public Member Functions | |
container_iterator ()=default | |
Creates an empty has many iterator. | |
container_iterator (const self &iter) | |
Copy constructs an iterator from another iterator. | |
container_iterator (holder_container_iterator iter) | |
Creates a has many iterator from given internal container iterator. | |
container_iterator & | operator= (const self &iter) |
Copy assign an iterator from another iterator. | |
bool | operator== (const self &i) const |
Compares equality iterator with another iterator. | |
bool | operator!= (const self &i) const |
Compares inequality iterator with another iterator. | |
bool | operator< (const self &i) const |
Compares less than iterator with another iterator. | |
self & | operator++ () |
Pre increments self. | |
self | operator++ (int) |
Post increments iterator. | |
self & | operator-- () |
Pre decrements self. | |
self | operator-- (int) |
Post decrements iterator. | |
self & | operator+= (difference_type offset) |
Increments iterator with offset. | |
self & | operator-= (difference_type offset) |
Decrements iterator with offset. | |
self | operator+ (difference_type offset) |
Increments iterator with offset. | |
self | operator- (difference_type offset) |
Decrements iterator with offset. | |
value_type | operator-> () const |
value_type & | operator* () const |
holder_type & | holder_item () const |
Returns the holder item. | |
Friends | |
class | container< Type, ContainerType > |
class | const_container_iterator< Type, ContainerType > |
class | basic_container< Type, ContainerType > |
class | object_serializer |
class | detail::object_inserter |
class | detail::object_deleter |
difference_type | operator- (self a, self b) |
Returns the difference of two iterators a and b. | |
const self | operator+ (difference_type offset, self out) |
Represents a has many iterator.
Represents a has many iterator for a has many relationship with std::vector container
Type | The type of the iterator/container |
typedef traits::difference_type matador::container_iterator< Type, ContainerType >::difference_type |
Shortcut to the difference type
typedef traits::holder_const_container_iterator matador::container_iterator< Type, ContainerType >::holder_const_container_iterator |
Shortcut to the internal const container iterator
typedef traits::holder_container_iterator matador::container_iterator< Type, ContainerType >::holder_container_iterator |
Shortcut to the internal container iterator
typedef traits::holder_type matador::container_iterator< Type, ContainerType >::holder_type |
Shortcut to the relation type
typedef container_iterator<Type, ContainerType> matador::container_iterator< Type, ContainerType >::self |
Shortcut value self
typedef traits::value_type matador::container_iterator< Type, ContainerType >::value_type |
Shortcut value type
|
inline |
Copy constructs an iterator from another iterator.
iter | The iterator to copy from |
|
inlineexplicit |
Creates a has many iterator from given internal container iterator.
iter | The iterator to create the has many iterator from |
|
inline |
Returns the holder item.
Returns the holder item representing one half of the relation table
|
inline |
Compares inequality iterator with another iterator.
Compares iterator with another iterator. If other iterator doesn't contain the same element true es returned.
i | The iterator to compare with |
|
inline |
Return the current value represented by the iterator
|
inline |
Increments iterator with offset.
offset | The offset to be incremented |
|
inline |
Pre increments self.
|
inline |
Post increments iterator.
Post increments iterator and returns a new iterator object.
|
inline |
Increments iterator with offset.
offset | The offset to be incremented |
|
inline |
Decrements iterator with offset.
offset | The offset to be decremented |
|
inline |
Pre decrements self.
|
inline |
Post decrements iterator.
Post decrements iterator and returns a new iterator object.
|
inline |
Decrements iterator with offset.
offset | The offset to be decremented |
|
inline |
Return the current value represented by the iterator
|
inline |
Compares less than iterator with another iterator.
Compares iterator with another iterator. If other iterator isn't less than this iterator true es returned.
i | The iterator to compare with |
|
inline |
Copy assign an iterator from another iterator.
iter | The iterator to copy from |
|
inline |
Compares equality iterator with another iterator.
Compares iterator with another iterator. If other iterator contain the same element true es returned.
i | The iterator to compare with |
|
friend |
Increment given iterator with the given offset.
offset | Increment offset value |
out | Iterator to increment |
|
friend |
Returns the difference of two iterators a and b.
a | The minuend iterator |
b | The subtrahend iterator |