|
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. | |
| virtual | ~ParameterFamilyBase () |
| Destructor. | |
| std::string | getName () const |
| Get the name of the family. | |
| bool | supportsAD () const |
| Indicates whether parameter supports AD derivatives. | |
| bool | supportsAnalytic () const |
| Indicates whether parameter supports analytic derivatives. | |
| template<typename EvalType > | |
| bool | hasType () const |
Determine if family has an entry for the given type EvalType. | |
| template<typename EvalType > | |
| bool | addEntry (const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > &entry) |
| Add a new parameter using custom entry. | |
| template<typename EvalType > | |
| Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > | getEntry () |
| Gets the entry corresponding to type EvalType. | |
| template<typename EvalType > | |
| Teuchos::RCP< const typename Sacado::mpl::apply< EntryType, EvalType >::type > | getEntry () const |
| Gets the entry corresponding to type EvalType. | |
| void | print (std::ostream &os, bool print_values=false) const |
| Print the family. | |
Protected Types | |
| typedef std::map< std::string, Teuchos::RCP< EntryBase > > | EvalMap |
| Map of entries for a parameter name. | |
| typedef EvalMap::const_iterator | const_iterator |
| Const iterator for EvalMap. | |
| typedef EvalMap::iterator | iterator |
| Iterator for EvalMap. | |
Protected Member Functions | |
| template<class EvalType > | |
| std::string | getTypeName () const |
| Returns a string representation of type EntryType. | |
Protected Attributes | |
| EvalMap | family |
| Family of parameter entries. | |
| const std::string | name |
| Family name. | |
| bool | supports_ad |
| Family supports AD. | |
| bool | supports_analytic |
| Family supports analytic derivatives. | |
Private Member Functions | |
| ParameterFamilyBase (const ParameterFamilyBase &) | |
| Private to prohibit copying. | |
| ParameterFamilyBase & | operator= (const ParameterFamilyBase &) |
| Private to prohibit copying. | |
A class to store multiple template instantiations of a single templated parameter.
Definition at line 49 of file Sacado_ParameterFamilyBase.hpp.
typedef std::map<std::string, Teuchos::RCP<EntryBase> > Sacado::ParameterFamilyBase< EntryBase, EntryType >::EvalMap [protected] |
Map of entries for a parameter name.
Definition at line 103 of file Sacado_ParameterFamilyBase.hpp.
typedef EvalMap::const_iterator Sacado::ParameterFamilyBase< EntryBase, EntryType >::const_iterator [protected] |
Const iterator for EvalMap.
Definition at line 106 of file Sacado_ParameterFamilyBase.hpp.
typedef EvalMap::iterator Sacado::ParameterFamilyBase< EntryBase, EntryType >::iterator [protected] |
Iterator for EvalMap.
Definition at line 109 of file Sacado_ParameterFamilyBase.hpp.
| Sacado::ParameterFamilyBase< EntryBase, EntryType >::ParameterFamilyBase | ( | const std::string & | name, |
| bool | supports_ad, | ||
| bool | supports_analytic | ||
| ) |
Constructor.
Definition at line 36 of file Sacado_ParameterFamilyBaseImp.hpp.
| Sacado::ParameterFamilyBase< EntryBase, EntryType >::~ParameterFamilyBase | ( | ) | [virtual] |
Destructor.
Definition at line 48 of file Sacado_ParameterFamilyBaseImp.hpp.
| Sacado::ParameterFamilyBase< EntryBase, EntryType >::ParameterFamilyBase | ( | const ParameterFamilyBase< EntryBase, EntryType > & | ) | [private] |
Private to prohibit copying.
| std::string Sacado::ParameterFamilyBase< EntryBase, EntryType >::getName | ( | ) | const |
Get the name of the family.
Definition at line 55 of file Sacado_ParameterFamilyBaseImp.hpp.
| bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supportsAD | ( | ) | const |
Indicates whether parameter supports AD derivatives.
Definition at line 63 of file Sacado_ParameterFamilyBaseImp.hpp.
| bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supportsAnalytic | ( | ) | const |
Indicates whether parameter supports analytic derivatives.
Definition at line 71 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 80 of file Sacado_ParameterFamilyBaseImp.hpp.
| bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::addEntry | ( | const Teuchos::RCP< typename Sacado::mpl::apply< EntryType, EvalType >::type > & | entry | ) |
Add a new parameter using custom entry.
Returns true if successful in adding entry to library, false otherwise.
Definition at line 98 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 123 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 153 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 182 of file Sacado_ParameterFamilyBaseImp.hpp.
| std::string Sacado::ParameterFamilyBase< EntryBase, EntryType >::getTypeName | ( | ) | const [protected] |
Returns a string representation of type EntryType.
Definition at line 200 of file Sacado_ParameterFamilyBaseImp.hpp.
| ParameterFamilyBase& Sacado::ParameterFamilyBase< EntryBase, EntryType >::operator= | ( | const ParameterFamilyBase< EntryBase, EntryType > & | ) | [private] |
Private to prohibit copying.
EvalMap Sacado::ParameterFamilyBase< EntryBase, EntryType >::family [protected] |
Family of parameter entries.
Definition at line 125 of file Sacado_ParameterFamilyBase.hpp.
const std::string Sacado::ParameterFamilyBase< EntryBase, EntryType >::name [protected] |
Family name.
Definition at line 128 of file Sacado_ParameterFamilyBase.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supports_ad [protected] |
Family supports AD.
Definition at line 131 of file Sacado_ParameterFamilyBase.hpp.
bool Sacado::ParameterFamilyBase< EntryBase, EntryType >::supports_analytic [protected] |
Family supports analytic derivatives.
Definition at line 134 of file Sacado_ParameterFamilyBase.hpp.
1.7.4