.TH "branch" 2rheolef "Sat Mar 13 2021" "Version 7.1" "rheolef" \" -*- nroff -*- .ad l .nh .SH NAME branch \- parameter-dependent sequence of field (rheolef-7\&.1) .PP .SH "DESCRIPTION" .PP The \fCbranch\fP class stores a \fCfield\fP sequence together with its associated parameter value\&. A \fCbranch\fP variable represents a pair \fC(t,uh(t))\fP for a specific value of the parameter \fCt\fP\&. 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 \fC(t,uh(t),ph(t))\fP, up to an arbitrarily number of fields\&. See also the \fBbranch(1)\fP unix command for running animations\&. .SH "IMPLEMENTATION" .PP This documentation has been generated from file main/lib/branch\&.h .PP The \fCbranch\fP class is simply an alias to the \fC\fBbranch_basic\fP\fP class .PP .PP .nf typedef branch_basic branch; .fi .PP \fB\fP .RS 4 .RE .PP The \fC\fBbranch_basic\fP\fP class provides an interface to a n-uplet of fields together with a parameter value: .PP .PP .nf template class branch_basic : public std::vector > > { public : // typedefs: typedef std::vector > > base; typedef typename base::size_type size_type; // allocators: branch_basic(); ~branch_basic(); branch_basic (const branch_basic&); branch_basic& operator= (const branch_basic&); template branch_basic(const std::string& parameter, Args\&.\&.\&. names); // accessors: const T& parameter () const; const std::string& parameter_name () const; size_type n_value () const; size_type n_field () const; // modifiers: void set_parameter_name (const std::string& name); void set_parameter (const T& value); void set_range (const std::pair& u_range); .fi .PP .PP .nf }; template idiststream& operator>> (idiststream&, branch_basic&); template odiststream& operator<< (odiststream&, const branch_basic&); .fi .PP .SH AUTHOR Pierre Saramito .SH COPYRIGHT Copyright (C) 2000-2018 Pierre Saramito GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.