ROL
Loading...
Searching...
No Matches
ROL_Sacado_Traits.hpp File Reference
#include <type_traits>
#include <utility>
#include "Sacado.hpp"
#include "ROL_Objective.hpp"

Go to the source code of this file.

Classes

struct  InvalidType
struct  Accessor< VectorType >
struct  Accessor< std::vector< Real > >
struct  is_accessor_specialization< T, typename >
struct  is_accessor_specialization< Accessor< VectorType > >
struct  ObjectiveValue< Real >

Typedefs

template<typename T>
using Fad_value_t = decltype( Fad_value( std::declval<T>() ) )

Functions

constexpr bool is_Objective (...)
constexpr bool is_Constraint (...)
template<class Real>
constexpr bool is_Objective (const ROL::Objective< Real > &)
template<class Real>
constexpr bool is_Constraint (const ROL::Constraint< Real > &)
constexpr bool is_DFad (...)
constexpr bool is_SFad (...)
template<typename T>
constexpr bool is_DFad (const Sacado::Fad::DFad< T > &)
template<typename T, int Num>
constexpr bool is_SFad (const Sacado::Fad::SFad< T, Num > &)
constexpr bool InvalidType Fad_value (...)
template<typename T>
constexpr T Fad_value (const Sacado::Fad::DFad< T > &)
template<typename T, int Num>
constexpr T Fad_value (const Sacado::Fad::SFad< T, Num > &)
template<typename T, typename std::enable_if_t< has_accessor_v< T >, int > = 0>
void process_if_accessor (const T &acc_specialization)

Variables

template<typename T>
constexpr bool has_accessor_v = is_accessor_specialization<T>::value

Typedef Documentation

◆ Fad_value_t

template<typename T>
using Fad_value_t = decltype( Fad_value( std::declval<T>() ) )

Definition at line 39 of file ROL_Sacado_Traits.hpp.

Function Documentation

◆ is_Objective() [1/2]

bool is_Objective ( ...)
constexpr

Definition at line 10 of file ROL_Sacado_Traits.hpp.

◆ is_Constraint() [1/2]

bool is_Constraint ( ...)
constexpr

Definition at line 11 of file ROL_Sacado_Traits.hpp.

◆ is_Objective() [2/2]

template<class Real>
bool is_Objective ( const ROL::Objective< Real > & )
constexpr

Definition at line 14 of file ROL_Sacado_Traits.hpp.

◆ is_Constraint() [2/2]

template<class Real>
bool is_Constraint ( const ROL::Constraint< Real > & )
constexpr

Definition at line 17 of file ROL_Sacado_Traits.hpp.

◆ is_DFad() [1/2]

bool is_DFad ( ...)
constexpr

Definition at line 19 of file ROL_Sacado_Traits.hpp.

◆ is_SFad() [1/2]

bool is_SFad ( ...)
constexpr

Definition at line 20 of file ROL_Sacado_Traits.hpp.

◆ is_DFad() [2/2]

template<typename T>
bool is_DFad ( const Sacado::Fad::DFad< T > & )
constexpr

Definition at line 23 of file ROL_Sacado_Traits.hpp.

◆ is_SFad() [2/2]

template<typename T, int Num>
bool is_SFad ( const Sacado::Fad::SFad< T, Num > & )
constexpr

Definition at line 26 of file ROL_Sacado_Traits.hpp.

◆ Fad_value() [1/3]

bool InvalidType Fad_value ( ...)
constexpr

◆ Fad_value() [2/3]

template<typename T>
T Fad_value ( const Sacado::Fad::DFad< T > & )
constexpr

◆ Fad_value() [3/3]

template<typename T, int Num>
T Fad_value ( const Sacado::Fad::SFad< T, Num > & )
constexpr

◆ process_if_accessor()

template<typename T, typename std::enable_if_t< has_accessor_v< T >, int > = 0>
void process_if_accessor ( const T & acc_specialization)

Definition at line 74 of file ROL_Sacado_Traits.hpp.

References has_accessor_v.

Variable Documentation

◆ has_accessor_v

template<typename T>
bool has_accessor_v = is_accessor_specialization<T>::value
inlineconstexpr

Definition at line 67 of file ROL_Sacado_Traits.hpp.

Referenced by process_if_accessor().