|
Sacado Development
|
Wrapper for a generic expression template. More...
#include <Sacado_Fad_Exp_Expression.hpp>
Inherited by Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >, Sacado::Fad::Exp::GeneralFad< VectorDynamicStorage< T > >, Sacado::Fad::Exp::GeneralFad< S >, Sacado::Fad::Exp::GeneralFad< StaticFixedStorage< T, Num > >, Sacado::Fad::Exp::GeneralFad< StaticStorage< T, Num > >, and Sacado::Fad::Exp::GeneralFad< ViewStorage< T, static_length, static_stride, U > >.
Public Types | |
| typedef T | derived_type |
| Typename of derived object, returned by derived(). | |
Public Member Functions | |
| SACADO_INLINE_FUNCTION const derived_type & | derived () const |
| Return derived object. | |
| SACADO_INLINE_FUNCTION const volatile derived_type & | derived () const volatile |
| Return derived object. | |
Wrapper for a generic expression template.
This class is used to limit the overload set for building up expressions. Each expression object should derive from this using CRTP:
In this case the default implementation here should be correct for any expression class. If not, an expression class is free to change the implementation through partial specialization.
| typedef T Sacado::Fad::Exp::Expr< T >::derived_type |
|
inline |
Return derived object.
This assumes a CRTP pattern where T is infact derived from Expr<T>. This will only compile if this infact the case.
Referenced by Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::GeneralFad(), Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::isEqualTo(), Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::operator*=(), Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::operator+=(), Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::operator-=(), Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::operator/=(), and Sacado::Fad::Exp::GeneralFad< DynamicStorage< T > >::operator=().
|
inline |
Return derived object.
This assumes a CRTP pattern where T is infact derived from Expr<T>. This will only compile if this infact the case.