concepts::BaseSequence< F > Class Template Reference

Sequence with operations and output operator. More...

#include <sequence.hh>

Inheritance diagram for concepts::BaseSequence< F >:
concepts::Sequence< F >

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.

Author
Kersten Schmidt, 2005

Definition at line 28 of file sequence.hh.

Constructor & Destructor Documentation

◆ BaseSequence() [1/5]

template<class F >
concepts::BaseSequence< F >::BaseSequence ( )
inline

Definition at line 61 of file sequence.hh.

◆ BaseSequence() [2/5]

template<class F >
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]

template<class F >
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]

template<class F >
concepts::BaseSequence< F >::BaseSequence ( const int  N)

Constructor taking an integer.

Definition at line 165 of file sequence.hh.

◆ BaseSequence() [5/5]

template<class F >
template<class G >
concepts::BaseSequence< F >::BaseSequence ( const G &  seq)
inline

Constructor, which uses the constructor of the base class std::vector.

Definition at line 77 of file sequence.hh.

◆ ~BaseSequence()

template<class F >
virtual concepts::BaseSequence< F >::~BaseSequence ( )
inlinevirtual

Definition at line 79 of file sequence.hh.

Member Function Documentation

◆ exist()

template<class F >
bool concepts::BaseSequence< F >::exist ( val) const
inline

Returns true, if a value is in the seq.

Definition at line 324 of file sequence.hh.

◆ info()

template<class F >
std::ostream & concepts::BaseSequence< F >::info ( std::ostream &  os) const
protectedvirtual

Definition at line 335 of file sequence.hh.

◆ operator Sequence< F >()

template<class F >
concepts::BaseSequence< F >::operator Sequence< F > ( ) const
inline

Type conversion.

Definition at line 83 of file sequence.hh.

◆ operator std::set< F >()

template<class F >
concepts::BaseSequence< F >::operator std::set< F > ( ) const
inline

Definition at line 85 of file sequence.hh.

◆ operator&&()

template<class F >
std::vector< bool > concepts::BaseSequence< F >::operator&& ( const Sequence< F > &  set) const
inline

Definition at line 222 of file sequence.hh.

◆ operator()() [1/4]

template<class F >
Sequence< F > concepts::BaseSequence< F >::operator() ( const BaseSequence< bool > &  seq) const
inline

Returns subsequence which indices are true in seq.

Definition at line 306 of file sequence.hh.

◆ operator()() [2/4]

template<class F >
template<class G , class H >
Sequence< G * > concepts::BaseSequence< F >::operator() ( G &(H::*)() const  fun) const
inline

Returns element wise application of a member function, e.g.

concepts::Connector1::key()

Definition at line 185 of file sequence.hh.

◆ operator()() [3/4]

template<class F >
template<class G , class H >
Sequence< G > concepts::BaseSequence< F >::operator() ( G(H::*)() const  fun) const
inline

Returns element wise application of a member function, e.g.

concepts::Key::key()

Definition at line 173 of file sequence.hh.

◆ operator()() [4/4]

template<class F >
template<class G , class H , class I , class J >
Sequence< G > concepts::BaseSequence< F >::operator() ( G(H::*)(I) const  fun,
i 
) const
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+()

template<class F >
Sequence< F > concepts::BaseSequence< F >::operator+ ( const Sequence< F > &  seq) const
inline

Definition at line 257 of file sequence.hh.

◆ operator-() [1/2]

template<class F >
Sequence< F > concepts::BaseSequence< F >::operator- ( const F &  val) const
inline

Definition at line 247 of file sequence.hh.

◆ operator-() [2/2]

template<class F >
Sequence< F > concepts::BaseSequence< F >::operator- ( const Sequence< F > &  seq) const
inline

Definition at line 236 of file sequence.hh.

◆ operator==()

template<class F >
std::vector< bool > concepts::BaseSequence< F >::operator== ( const F  val) const
inline

Returns true for the elements with are equal to val.

Definition at line 268 of file sequence.hh.

◆ operator||()

template<class F >
std::vector< bool > concepts::BaseSequence< F >::operator|| ( const Sequence< F > &  set) const
inline

Definition at line 208 of file sequence.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich