Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::BaseSequence< F > Class Template Reference

#include <sequence.hh>

Inheritance diagram for concepts::BaseSequence< F >:
concepts::OutputOperator concepts::Sequence< concepts::Set< concepts::IndexRange > > concepts::Sequence< uint > concepts::Sequence< concepts::Vector< F > > concepts::Sequence< Real > concepts::Sequence< concepts::Point< Real, dimC > > concepts::Sequence< concepts::Edge2d * > concepts::Sequence< const concepts::SparseMatrix< F > * > concepts::Sequence< concepts::SubMatrixN< concepts::SparseMatrix< F > > * > concepts::Sequence< concepts::Operator< F > * > concepts::Sequence< F * > concepts::Sequence< concepts::CellConditions > concepts::Sequence< concepts::ElementFormulaContainer< F > > concepts::Sequence< concepts::Set< uint > > concepts::Sequence< concepts::InverseVertexQuadSector2d > concepts::Sequence< concepts::GraphVertex< F > > concepts::Sequence< concepts::Point > concepts::Sequence< concepts::Vertex * > concepts::Sequence< concepts::Edge * > concepts::Sequence< concepts::Quad * > concepts::Sequence< concepts::Cell2 * > concepts::Sequence< concepts::Hexahedron * > concepts::Sequence< concepts::Cell3 * > concepts::Sequence< concepts::Sequence< concepts::Edge2d * > > concepts::Sequence< concepts::Cell1 * > concepts::Sequence< const hp2D::Quad< Real > * > concepts::Sequence< const concepts::Cell * > concepts::Sequence< concepts::Connector0 * > concepts::Sequence< concepts::Connector1 * > concepts::Sequence< concepts::Connector2 * > concepts::Sequence< concepts::Connector3 * > concepts::Sequence< concepts::InputParameter * > concepts::Sequence< const concepts::Connector * > concepts::Sequence< concepts::GraphVertex< type * > > concepts::Sequence< const concepts::ElementFormula< Real > * > concepts::Sequence< const concepts::ElementFormula< F > * > concepts::Sequence< concepts::BilinearForm< F > * > concepts::Sequence< concepts::LinearForm< F > * > concepts::Sequence< concepts::ElementFunction< F > * > concepts::Sequence< geometry::edge_dof > concepts::Sequence< geometry::quad_loc > concepts::Sequence< concepts::ParsedFormula< concepts::Real > > concepts::Sequence< concepts::ParsedFormula< F > > concepts::Sequence< concepts::SparseMatrix< Cmplx > * > concepts::Sequence< concepts::SparseMatrix< Real > * > concepts::Sequence< concepts::ElementAndFacette > concepts::Sequence< F >

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< booloperator|| (const Sequence< F > &set) const
 
std::vector< booloperator&& (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< booloperator== (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.
 

Detailed Description

template<class F>
class concepts::BaseSequence< F >

Sequence with operations and output operator.

Author
Kersten Schmidt, 2005

Definition at line 59 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

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

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: