#include <sequence.hh>
Public Member Functions | |
BaseSequence (const std::string &str) | |
BaseSequence (std::queue< F > q) | |
Constructor taking a queue (takes a copy) | |
BaseSequence (const int N) | |
Constructor taking an integer. | |
template<class G > | |
BaseSequence (const G &seq) | |
Constructor, which uses the constructor of the base class std::vector. | |
operator Sequence< F > () const | |
Type conversion. | |
operator std::set< F > () const | |
template<class G , class H > | |
Sequence< G > | operator() (G(H::*fun)() const) const |
template<class G , class H > | |
Sequence< G * > | operator() (G &(H::*fun)() const) const |
template<class G , class H , class I , class J > | |
Sequence< G > | operator() (G(H::*fun)(I) const, J i) const |
std::vector< bool > | operator|| (const Sequence< F > &set) const |
std::vector< bool > | operator&& (const Sequence< F > &set) const |
Sequence< F > | operator+ (const Sequence< F > &seq) const |
Sequence< F > | operator- (const F &val) const |
Sequence< F > | operator- (const Sequence< F > &seq) const |
std::vector< bool > | operator== (const F val) const |
Returns true for the elements with are equal to val . | |
Sequence< F > | operator() (const BaseSequence< bool > &seq) const |
Returns subsequence which indices are true in seq . | |
bool | exist (F val) const |
Returns true, if a value is in the seq. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Sequence with operations and output operator.
Definition at line 59 of file sequence.hh.
|
inline |
Definition at line 61 of file sequence.hh.
concepts::BaseSequence< F >::BaseSequence | ( | const std::string & | str | ) |
Constructor, sequence is defined by a string.
The values in the string str
are separated by spaces. The definition of a int sequence could be done with "0 1 3 8 7".
Definition at line 145 of file sequence.hh.
concepts::BaseSequence< F >::BaseSequence | ( | std::queue< F > | q | ) |
Constructor taking a queue (takes a copy)
Definition at line 154 of file sequence.hh.
concepts::BaseSequence< F >::BaseSequence | ( | const int | N | ) |
Constructor taking an integer.
Definition at line 165 of file sequence.hh.
|
inline |
Constructor, which uses the constructor of the base class std::vector.
Definition at line 77 of file sequence.hh.
|
inlinevirtual |
Definition at line 79 of file sequence.hh.
|
inline |
Returns true, if a value is in the seq.
Definition at line 324 of file sequence.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 335 of file sequence.hh.
|
inline |
Type conversion.
Definition at line 83 of file sequence.hh.
|
inline |
Definition at line 85 of file sequence.hh.
|
inline |
Definition at line 222 of file sequence.hh.
|
inline |
Returns subsequence which indices are true in seq
.
Definition at line 306 of file sequence.hh.
|
inline |
Returns element wise application of a member function, e.g. concepts::Connector1::key()
Definition at line 185 of file sequence.hh.
|
inline |
Returns element wise application of a member function, e.g. concepts::Key::key()
Definition at line 173 of file sequence.hh.
|
inline |
Returns element wise application of a member function, e.g. concepts::Connector1::vertex(uint i)
Definition at line 197 of file sequence.hh.
|
inline |
Definition at line 257 of file sequence.hh.
|
inline |
Definition at line 247 of file sequence.hh.
|
inline |
Definition at line 236 of file sequence.hh.
|
inline |
Returns true for the elements with are equal to val
.
Definition at line 268 of file sequence.hh.
|
inline |
Definition at line 208 of file sequence.hh.