parameter-dependent sequence of field
Description
The branch
class stores a field
sequence together with its associated parameter value. A branch
variable represents a pair (t,uh(t))
for a specific value of the parameter t
. Applications concern time-dependent problems and continuation methods. This class is convenient for file inputs/outputs and for building animations. It extends to multi-field sequences, such as (t,uh(t),ph(t))
, up to an arbitrarily number of fields. See also the branch
unix command for running animations.
Implementation
This documentation has been generated from file main/lib/branch.h
The branch
class is simply an alias to the branch_basic
class
typedef branch_basic<Float>
branch;
see the branch page for the full documentation
The branch_basic
class provides an interface to a n-uplet of fields together with a parameter value:
template <class T, class M = rheo_default_memory_model>
class branch_basic : public std::vector<std::pair<std::string,field_basic<T,M> > > {
public :
typedef std::vector<std::pair<std::string,field_basic<T,M> > >
base;
branch_basic<T,M>&
operator= (
const branch_basic<T,M>&);
template <typename... Args>
void set_range (
const std::pair<T,T>& u_range);
field::size_type size_type
void set_range(const std::pair< T, T > &u_range)
const T & parameter() const
base::size_type size_type
const std::string & parameter_name() const
std::vector< std::pair< std::string, field_basic< T, M > > > base
size_type n_value() const
void set_parameter_name(const std::string &name)
void set_parameter(const T &value)
size_type n_field() const
branch_basic< T, M > & operator=(const branch_basic< T, M > &)
};
template <
class T,
class M> idiststream&
operator>> (idiststream&, branch_basic<T,M>&);
template <
class T,
class M> odiststream&
operator<< (odiststream&,
const branch_basic<T,M>&);
std::ostream & operator<<(std::ostream &os, const catchmark &m)
std::istream & operator>>(std::istream &is, const catchmark &m)