concepts::BaseSequence< F > Class Template Reference
Sequence with operations and output operator. More...
#include <sequence.hh>
Public Member Functions | |
BaseSequence () | |
template<class G > | |
BaseSequence (const G &seq) | |
Constructor, which uses the constructor of the base class std::vector. More... | |
BaseSequence (const int N) | |
Constructor taking an integer. More... | |
BaseSequence (const std::string &str) | |
Constructor, sequence is defined by a string. More... | |
BaseSequence (std::queue< F > q) | |
Constructor taking a queue (takes a copy) More... | |
bool | exist (F val) const |
Returns true, if a value is in the seq. More... | |
operator Sequence< F > () const | |
Type conversion. More... | |
operator std::set< F > () const | |
std::vector< bool > | operator&& (const Sequence< F > &set) const |
Sequence< F > | operator() (const BaseSequence< bool > &seq) const |
Returns subsequence which indices are true in seq . More... | |
template<class G , class H > | |
Sequence< G * > | operator() (G &(H::*fun)() const) const |
Returns element wise application of a member function, e.g. More... | |
template<class G , class H > | |
Sequence< G > | operator() (G(H::*fun)() const) const |
Returns element wise application of a member function, e.g. More... | |
template<class G , class H , class I , class J > | |
Sequence< G > | operator() (G(H::*fun)(I) const, J i) const |
Returns element wise application of a member function, e.g. More... | |
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 . More... | |
std::vector< bool > | operator|| (const Sequence< F > &set) const |
virtual | ~BaseSequence () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Detailed Description
template<class F>
class concepts::BaseSequence< F >
Sequence with operations and output operator.
Definition at line 28 of file sequence.hh.
Constructor & Destructor Documentation
◆ BaseSequence() [1/5]
|
inline |
Definition at line 61 of file sequence.hh.
◆ BaseSequence() [2/5]
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.
◆ BaseSequence() [3/5]
concepts::BaseSequence< F >::BaseSequence | ( | std::queue< F > | q | ) |
Constructor taking a queue (takes a copy)
Definition at line 154 of file sequence.hh.
◆ BaseSequence() [4/5]
concepts::BaseSequence< F >::BaseSequence | ( | const int | N | ) |
Constructor taking an integer.
Definition at line 165 of file sequence.hh.
◆ BaseSequence() [5/5]
|
inline |
Constructor, which uses the constructor of the base class std::vector.
Definition at line 77 of file sequence.hh.
◆ ~BaseSequence()
|
inlinevirtual |
Definition at line 79 of file sequence.hh.
Member Function Documentation
◆ exist()
|
inline |
Returns true, if a value is in the seq.
Definition at line 324 of file sequence.hh.
◆ info()
|
protectedvirtual |
Definition at line 335 of file sequence.hh.
◆ operator Sequence< F >()
|
inline |
Type conversion.
Definition at line 83 of file sequence.hh.
◆ operator std::set< F >()
|
inline |
Definition at line 85 of file sequence.hh.
◆ operator&&()
|
inline |
Definition at line 222 of file sequence.hh.
◆ operator()() [1/4]
|
inline |
Returns subsequence which indices are true in seq
.
Definition at line 306 of file sequence.hh.
◆ operator()() [2/4]
|
inline |
Returns element wise application of a member function, e.g.
Definition at line 185 of file sequence.hh.
◆ operator()() [3/4]
|
inline |
Returns element wise application of a member function, e.g.
Definition at line 173 of file sequence.hh.
◆ operator()() [4/4]
|
inline |
Returns element wise application of a member function, e.g.
concepts::Connector1::vertex(uint i)
Definition at line 197 of file sequence.hh.
◆ operator+()
|
inline |
Definition at line 257 of file sequence.hh.
◆ operator-() [1/2]
|
inline |
Definition at line 247 of file sequence.hh.
◆ operator-() [2/2]
|
inline |
Definition at line 236 of file sequence.hh.
◆ operator==()
|
inline |
Returns true for the elements with are equal to val
.
Definition at line 268 of file sequence.hh.
◆ operator||()
|
inline |
Definition at line 208 of file sequence.hh.
The documentation for this class was generated from the following file:
- toolbox/sequence.hh