Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <Sacado_ParameterFamilyBase.hpp>
Public Member Functions | |
ParameterFamilyBase (const std::string &name, bool supports_ad, bool supports_analytic) | |
Constructor. More... | |
virtual | ~ParameterFamilyBase () |
Destructor. More... | |
std::string | getName () const |
Get the name of the family. More... | |
bool | supportsAD () const |
Indicates whether parameter supports AD derivatives. More... | |
bool | supportsAnalytic () const |
Indicates whether parameter supports analytic derivatives. More... | |
template<typename EvalType > | |
bool | hasType () const |
Determine if family has an entry for the given type EvalType . More... | |
template<typename EvalType > | |
bool | addEntry (const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > &entry, const bool allow_overwrite=false) |
Add a new parameter using custom entry. More... | |
template<typename EvalType > | |
Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > | getEntry () |
Gets the entry corresponding to type EvalType. More... | |
template<typename EvalType > | |
Teuchos::RCP< const typename Sacado::mpl::apply< EntryType, EvalType >::type > | getEntry () const |
Gets the entry corresponding to type EvalType. More... | |
void | print (std::ostream &os, bool print_values=false) const |
Print the family. More... | |
Protected Types | |
typedef std::map< std::string, Teuchos::RCP< EntryBase > > | EvalMap |
Map of entries for a parameter name. More... | |
typedef EvalMap::const_iterator | const_iterator |
Const iterator for EvalMap. More... | |
typedef EvalMap::iterator | iterator |
Iterator for EvalMap. More... | |
Protected Member Functions | |
template<class EvalType > | |
std::string | getTypeName () const |
Returns a string representation of type EntryType. More... | |
Protected Attributes | |
EvalMap | family |
Family of parameter entries. More... | |
const std::string | name |
Family name. More... | |
bool | supports_ad |
Family supports AD. More... | |
bool | supports_analytic |
Family supports analytic derivatives. More... | |
Private Member Functions | |
ParameterFamilyBase (const ParameterFamilyBase &) | |
Private to prohibit copying. More... | |
ParameterFamilyBase & | operator= (const ParameterFamilyBase &) |
Private to prohibit copying. More... | |
A class to store multiple template instantiations of a single templated parameter.
Definition at line 27 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Map of entries for a parameter name.
Definition at line 83 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Const iterator for EvalMap.
Definition at line 86 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Iterator for EvalMap.
Definition at line 89 of file Sacado_ParameterFamilyBase.hpp.
Sacado::ParameterFamilyBase< EntryBase, EntryType >::ParameterFamilyBase | ( | const std::string & | name, |
bool | supports_ad, | ||
bool | supports_analytic | ||
) |
Constructor.
Definition at line 14 of file Sacado_ParameterFamilyBaseImp.hpp.
|
virtual |
Destructor.
Definition at line 26 of file Sacado_ParameterFamilyBaseImp.hpp.
|
private |
Private to prohibit copying.
std::string Sacado::ParameterFamilyBase< EntryBase, EntryType >::getName | ( | ) | const |
Get the name of the family.
Definition at line 33 of file Sacado_ParameterFamilyBaseImp.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supportsAD | ( | ) | const |
Indicates whether parameter supports AD derivatives.
Definition at line 41 of file Sacado_ParameterFamilyBaseImp.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supportsAnalytic | ( | ) | const |
Indicates whether parameter supports analytic derivatives.
Definition at line 49 of file Sacado_ParameterFamilyBaseImp.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::hasType | ( | ) | const |
Determine if family has an entry for the given type EvalType
.
Definition at line 58 of file Sacado_ParameterFamilyBaseImp.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::addEntry | ( | const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > & | entry, |
const bool | allow_overwrite = false |
||
) |
Add a new parameter using custom entry.
Returns true if successful in adding entry to library, false otherwise. If allow_overwrite
is true, any existing entry will be overwritten by the supplied entry.
Definition at line 76 of file Sacado_ParameterFamilyBaseImp.hpp.
Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > Sacado::ParameterFamilyBase< EntryBase, EntryType >::getEntry | ( | ) |
Gets the entry corresponding to type EvalType.
Definition at line 104 of file Sacado_ParameterFamilyBaseImp.hpp.
Teuchos::RCP< const typename Sacado::mpl::apply< EntryType, EvalType >::type > Sacado::ParameterFamilyBase< EntryBase, EntryType >::getEntry | ( | ) | const |
Gets the entry corresponding to type EvalType.
Definition at line 134 of file Sacado_ParameterFamilyBaseImp.hpp.
void Sacado::ParameterFamilyBase< EntryBase, EntryType >::print | ( | std::ostream & | os, |
bool | print_values = false |
||
) | const |
Print the family.
Set print_values = true to print each parameter value for each evaluation type.
Definition at line 163 of file Sacado_ParameterFamilyBaseImp.hpp.
|
protected |
Returns a string representation of type EntryType.
Definition at line 181 of file Sacado_ParameterFamilyBaseImp.hpp.
|
private |
Private to prohibit copying.
|
protected |
Family of parameter entries.
Definition at line 105 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Family name.
Definition at line 108 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Family supports AD.
Definition at line 111 of file Sacado_ParameterFamilyBase.hpp.
|
protected |
Family supports analytic derivatives.
Definition at line 114 of file Sacado_ParameterFamilyBase.hpp.