Sacado Development
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Sacado::Fad::ViewFadPtr< T, sl, ss, U > Class Template Reference
Inheritance diagram for Sacado::Fad::ViewFadPtr< T, sl, ss, U >:
Inheritance graph
[legend]
Collaboration diagram for Sacado::Fad::ViewFadPtr< T, sl, ss, U >:
Collaboration graph
[legend]

Public Types

typedef ViewFad< T, sl, ss, U > view_fad_type
 
- Public Types inherited from Sacado::Fad::GeneralFad< Storage >
typedef Storage StorageType
 Storage type.
 
typedef Expr< GeneralFad< Storage > > ExprType
 Expression type.
 
typedef Extender< Storage > ExtenderType
 Extender type.
 
typedef ScalarType< value_type >::type scalar_type
 Typename of scalar's (which may be different from T)
 
- Public Types inherited from Sacado::Fad::Expr< GeneralFad< Storage > >
typedef GeneralFad< Storage > derived_type
 Typename of derived object, returned by derived()
 
- Public Types inherited from Sacado::Fad::Extender< Storage >
typedef ExprSpecDefault expr_spec_type
 

Public Member Functions

view_fad_type * operator-> ()
 
view_fad_type & operator* ()
 
- Public Member Functions inherited from Sacado::Fad::GeneralFad< Storage >
 GeneralFad ()=default
 Default constructor.
 
 GeneralFad (const GeneralFad &x)=default
 Copy constructor.
 
 GeneralFad (GeneralFad &&x)=default
 Move constructor.
 
template<typename S >
 GeneralFad (const S &x, typename mpl::enable_if_c< std::is_convertible< S, value_type >::value &&!is_view, void * >::type=0)
 Constructor with value (disabled for ViewFad)
 
template<typename S >
 GeneralFad (const Expr< S > &x, typename mpl::enable_if_c< std::is_convertible< typename Expr< S >::derived_type::value_type, value_type >::value &&(ExprLevel< typename Expr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value) &&!is_view, void * >::type=0)
 Copy constructor from any Expression object (disabled for ViewFad)
 
 ~GeneralFad ()=default
 Destructor.
 
void diff (const int ith, const int n)
 Set GeneralFad object as the ith independent variable.
 
void setUpdateValue (bool update_val)
 Set whether this Fad object should update values.
 
bool updateValue () const
 Return whether this Fad object has an updated value.
 
void cache () const
 Cache values.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, bool >::type isEqualTo (const Expr< S > &xx) const
 Returns whether two Fad objects have the same values.
 
int availableSize () const
 Returns number of derivative components that can be stored without reallocation.
 
bool hasFastAccess () const
 Returns true if derivative array is not empty.
 
void setIsConstant (bool is_const)
 Set whether variable is constant.
 
template<typename S >
Sacado::mpl::enable_if< std::is_convertible< S, value_type >, GeneralFad & >::type operator= (const S &v)
 Assignment operator with constant right-hand-side.
 
GeneralFad & operator= (const GeneralFad &x)=default
 Assignment with GeneralFad right-hand-side.
 
GeneralFad & operator= (GeneralFad &&x)=default
 Move assignment with GeneralFad right-hand-side.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator= (const Expr< S > &x)
 Assignment operator with any expression right-hand-side.
 
template<typename S >
Sacado::mpl::enable_if< std::is_convertible< S, value_type >, GeneralFad & >::type operator+= (const S &v)
 Addition-assignment operator with constant right-hand-side.
 
template<typename S >
Sacado::mpl::enable_if< std::is_convertible< S, value_type >, GeneralFad & >::type operator-= (const S &v)
 Subtraction-assignment operator with constant right-hand-side.
 
template<typename S >
Sacado::mpl::enable_if< std::is_convertible< S, value_type >, GeneralFad & >::type operator*= (const S &v)
 Multiplication-assignment operator with constant right-hand-side.
 
template<typename S >
Sacado::mpl::enable_if< std::is_convertible< S, value_type >, GeneralFad & >::type operator/= (const S &v)
 Division-assignment operator with constant right-hand-side.
 
GeneralFad & operator+= (const GeneralFad &x)
 Addition-assignment operator with GeneralFad right-hand-side.
 
GeneralFad & operator-= (const GeneralFad &x)
 Subtraction-assignment operator with GeneralFad right-hand-side.
 
GeneralFad & operator*= (const GeneralFad &x)
 Multiplication-assignment operator with GeneralFad right-hand-side.
 
GeneralFad & operator/= (const GeneralFad &x)
 Division-assignment operator with GeneralFad right-hand-side.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator+= (const Expr< S > &x)
 Addition-assignment operator with Expr right-hand-side.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator-= (const Expr< S > &x)
 Subtraction-assignment operator with Expr right-hand-side.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator*= (const Expr< S > &x)
 Multiplication-assignment operator with Expr right-hand-side.
 
template<typename S >
mpl::enable_if_c< std::is_convertible< typenameExpr< S >::derived_type::value_type, value_type >::value &&ExprLevel< typenameExpr< S >::derived_type::value_type >::value==ExprLevel< value_type >::value, GeneralFad & >::type operator/= (const Expr< S > &x)
 Division-assignment operator with Expr right-hand-side.
 
- Public Member Functions inherited from Sacado::Fad::Expr< GeneralFad< Storage > >
const derived_type & derived () const
 Return derived object.
 
const volatile derived_type & derived () const volatile
 Return derived object.
 

Additional Inherited Members

- Static Public Attributes inherited from Sacado::Fad::GeneralFad< Storage >
static constexpr bool is_view = Storage::is_view
 Whether we are a view.
 

The documentation for this class was generated from the following file: