Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
Sacado::ParameterVectorBase< FamilyType, BaseValueType > Class Template Reference

A class to store the active parameters in a code in an ordered fashion, along with their "base" values, i.e., the floating point value upon which the templated values are based. More...

#include <Sacado_ParameterVectorBase.hpp>

Inheritance diagram for Sacado::ParameterVectorBase< FamilyType, BaseValueType >:
Inheritance graph
[legend]

Classes

struct  Entry
 Container for parameter entries. More...
 

Public Types

typedef EntryVector::iterator iterator
 Iterator typename. More...
 
typedef EntryVector::const_iterator const_iterator
 Const iterator typename. More...
 

Public Member Functions

 ParameterVectorBase ()
 Default constructor. More...
 
 ParameterVectorBase (const ParameterVectorBase &source)
 Copy constructor. More...
 
virtual ~ParameterVectorBase ()
 Destructor. More...
 
ParameterVectorBaseoperator= (const ParameterVectorBase &source)
 Assignment. More...
 
void addParam (const Teuchos::RCP< FamilyType > &family, BaseValueType baseValue)
 Add entry. More...
 
unsigned int size () const
 Return number of parameters in vector. More...
 
Entryoperator[] (int i)
 Element access. More...
 
const Entryoperator[] (int i) const
 Element access. More...
 
iterator begin ()
 Iterator pointing at beginning of vector. More...
 
const_iterator begin () const
 Iterator pointing at beginning of vector. More...
 
iterator end ()
 Iterator pointing at end of vector. More...
 
const_iterator end () const
 Iterator pointing at end of vector. More...
 
void filterParameters (ParameterVectorBase &ad, ParameterVectorBase &analytic, ParameterVectorBase &other, std::vector< int > &index_ad, std::vector< int > &index_analytic, std::vector< int > &index_other)
 Filter vector into types. More...
 

Protected Types

typedef Teuchos::Array< EntryEntryVector
 Vector of all parameter families. More...
 

Protected Attributes

EntryVector params
 Parameter vector. More...
 

Detailed Description

template<typename FamilyType, typename BaseValueType>
class Sacado::ParameterVectorBase< FamilyType, BaseValueType >

A class to store the active parameters in a code in an ordered fashion, along with their "base" values, i.e., the floating point value upon which the templated values are based.

Definition at line 47 of file Sacado_ParameterVectorBase.hpp.

Member Typedef Documentation

template<typename FamilyType, typename BaseValueType>
typedef Teuchos::Array<Entry> Sacado::ParameterVectorBase< FamilyType, BaseValueType >::EntryVector
protected

Vector of all parameter families.

Definition at line 69 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
typedef EntryVector::iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::iterator

Iterator typename.

Definition at line 74 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
typedef EntryVector::const_iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::const_iterator

Const iterator typename.

Definition at line 77 of file Sacado_ParameterVectorBase.hpp.

Constructor & Destructor Documentation

template<typename FamilyType, typename BaseValueType>
Sacado::ParameterVectorBase< FamilyType, BaseValueType >::ParameterVectorBase ( )
inline

Default constructor.

Definition at line 80 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
Sacado::ParameterVectorBase< FamilyType, BaseValueType >::ParameterVectorBase ( const ParameterVectorBase< FamilyType, BaseValueType > &  source)
inline

Copy constructor.

Definition at line 83 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
virtual Sacado::ParameterVectorBase< FamilyType, BaseValueType >::~ParameterVectorBase ( )
inlinevirtual

Destructor.

Definition at line 87 of file Sacado_ParameterVectorBase.hpp.

Member Function Documentation

template<typename FamilyType, typename BaseValueType>
ParameterVectorBase& Sacado::ParameterVectorBase< FamilyType, BaseValueType >::operator= ( const ParameterVectorBase< FamilyType, BaseValueType > &  source)
inline

Assignment.

Definition at line 90 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
void Sacado::ParameterVectorBase< FamilyType, BaseValueType >::addParam ( const Teuchos::RCP< FamilyType > &  family,
BaseValueType  baseValue 
)
inline

Add entry.

Definition at line 94 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
unsigned int Sacado::ParameterVectorBase< FamilyType, BaseValueType >::size ( ) const
inline

Return number of parameters in vector.

Definition at line 100 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
Entry& Sacado::ParameterVectorBase< FamilyType, BaseValueType >::operator[] ( int  i)
inline

Element access.

Definition at line 103 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
const Entry& Sacado::ParameterVectorBase< FamilyType, BaseValueType >::operator[] ( int  i) const
inline

Element access.

Definition at line 106 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::begin ( )
inline

Iterator pointing at beginning of vector.

Definition at line 109 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
const_iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::begin ( ) const
inline

Iterator pointing at beginning of vector.

Definition at line 112 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::end ( )
inline

Iterator pointing at end of vector.

Definition at line 115 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
const_iterator Sacado::ParameterVectorBase< FamilyType, BaseValueType >::end ( ) const
inline

Iterator pointing at end of vector.

Definition at line 118 of file Sacado_ParameterVectorBase.hpp.

template<typename FamilyType, typename BaseValueType>
void Sacado::ParameterVectorBase< FamilyType, BaseValueType >::filterParameters ( ParameterVectorBase< FamilyType, BaseValueType > &  ad,
ParameterVectorBase< FamilyType, BaseValueType > &  analytic,
ParameterVectorBase< FamilyType, BaseValueType > &  other,
std::vector< int > &  index_ad,
std::vector< int > &  index_analytic,
std::vector< int > &  index_other 
)
inline

Filter vector into types.

Definition at line 122 of file Sacado_ParameterVectorBase.hpp.

Member Data Documentation

template<typename FamilyType, typename BaseValueType>
EntryVector Sacado::ParameterVectorBase< FamilyType, BaseValueType >::params
protected

Parameter vector.

Definition at line 153 of file Sacado_ParameterVectorBase.hpp.


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