Bridge CRTP class for sequence based on another type of sequence, with elements computed by the derived class.
More...
#include <BridgeSeq.h>
|
|
typedef BridgeSeq< DERIVED, BASE, VALUE, ITERATOR > | BridgeSeq_ |
| |
|
typedef BASE | Base |
| |
|
typedef VALUE | value_type |
| |
|
typedef Base::size_type | size_type |
| |
|
typedef ITERATOR< DERIVED > | const_iterator |
| |
|
| | BridgeSeq (Base base=Base()) |
| | Constructor. More...
|
| |
|
Base & | base () |
| | Returns the base sequence.
|
| |
|
const Base & | base () const |
| |
|
void | setBase (Base b) |
| | Changes the base sequence to b.
|
| |
|
const_iterator | begin () const |
| | Returns an iterator pointing to the first element in the sequence.
|
| |
|
const_iterator | end () const |
| | Returns an iterator pointing past the last element in the sequence.
|
| |
|
|
class | ITERATOR< DERIVED > |
| |
template<typename DERIVED, typename BASE, typename VALUE = typename BASE::value_type, template< typename > class ITERATOR = BridgeIteratorCached>
class LatBuilder::BridgeSeq< DERIVED, BASE, VALUE, ITERATOR >
Bridge CRTP class for sequence based on another type of sequence, with elements computed by the derived class.
The only requirement on DERIVED is a function with the following signature:
VALUE element(const typename BASE::const_iterator&) const;
- Template Parameters
-
| DERIVED | Deriving class. |
| BASE | Base sequence class. |
| VALUE | Value type of the elements in the sequence. |
template<typename DERIVED, typename BASE, typename VALUE = typename BASE::value_type, template< typename > class ITERATOR = BridgeIteratorCached>
Constructor.
- Parameters
-
| base | Base sequence object. |
The documentation for this class was generated from the following file:
- latbuilder/include/latbuilder/BridgeSeq.h