piranha
0.10
|
Toolbox for substitutable series. More...
#include <piranha/substitutable_series.hpp>
Inherits Series, and piranha::detail::substitutable_series_tag.
Public Member Functions | |
substitutable_series ()=default | |
Defaulted default constructor. | |
substitutable_series (const substitutable_series &)=default | |
Defaulted copy constructor. | |
substitutable_series (substitutable_series &&)=default | |
Defaulted move constructor. | |
~substitutable_series () | |
Trivial destructor. | |
substitutable_series & | operator= (const substitutable_series &other)=default |
Copy assignment operator. More... | |
substitutable_series & | operator= (substitutable_series &&other)=default |
Move assignment operator. More... | |
template<typename T > | |
subs_type< T > | subs (const symbol_fmap< T > &dict) const |
Substitution. More... | |
Toolbox for substitutable series.
This toolbox will conditionally augment a Series
type by adding a method to subtitute symbols with generic objects. Such augmentation takes place if the series' coefficient and/or key types expose substitution methods (as established by the piranha::has_subs and piranha::key_has_subs type traits). If the requirements outlined above are not satisfied, the substitution method will be disabled.
This class satisfies the piranha::is_series type trait.
Series
must satisfy the piranha::is_series type trait,Derived
must derive from piranha::substitutable_series of Series
and Derived
.This class provides the same guarantee as Series
.
Move semantics is equivalent to the move semantics of Series
.
Definition at line 76 of file substitutable_series.hpp.
|
default |
Copy assignment operator.
other | the assignment argument. |
this
.unspecified | any exception thrown by the assignment operator of the base class. |
|
default |
Move assignment operator.
other | the assignment argument. |
this
.
|
inline |
Substitution.
T
must be suitable for use in sm_intersect_idx().This method will return an object resulting from the substitution in this
of the symbols in dict
with the mapped values.
dict | a dictionary mapping a set of symbols to the values that will be substituted for them. |
unspecified | any exception resulting from:
|
Definition at line 218 of file substitutable_series.hpp.