#include <Sacado_Fad_StaticStorage.hpp>
Inheritance diagram for Sacado::Fad::StaticStorage< T, Num >:

Public Member Functions | |
| StaticStorage (const T &x) | |
| Default constructor. | |
| StaticStorage (const int sz, const T &x) | |
Constructor with size sz. | |
| StaticStorage (const StaticStorage &x) | |
| Copy constructor. | |
| ~StaticStorage () | |
| Destructor. | |
| StaticStorage & | operator= (const StaticStorage &x) |
| Assignment. | |
| int | size () const |
| Returns number of derivative components. | |
| void | resize (int sz) |
| Resize the derivative array to sz. | |
| void | zero () |
| Zero out derivative array. | |
Public Attributes | |
| T | val_ |
| Value. | |
| T | dx_ [Num] |
| Derivative array. | |
| int | sz_ |
| Size of derivative array. | |
This class uses a statically allocated array whose dimension is fixed by the template parameter Num.
Definition at line 48 of file Sacado_Fad_StaticStorage.hpp.
| Sacado::Fad::StaticStorage< T, Num >::StaticStorage | ( | const T & | x | ) | [inline] |
| Sacado::Fad::StaticStorage< T, Num >::StaticStorage | ( | const int | sz, | |
| const T & | x | |||
| ) | [inline] |
Constructor with size sz.
Initializes derivative array 0 of length sz
Definition at line 59 of file Sacado_Fad_StaticStorage.hpp.
| Sacado::Fad::StaticStorage< T, Num >::StaticStorage | ( | const StaticStorage< T, Num > & | x | ) | [inline] |
| Sacado::Fad::StaticStorage< T, Num >::~StaticStorage | ( | ) | [inline] |
| StaticStorage& Sacado::Fad::StaticStorage< T, Num >::operator= | ( | const StaticStorage< T, Num > & | x | ) | [inline] |
| int Sacado::Fad::StaticStorage< T, Num >::size | ( | ) | const [inline] |
Returns number of derivative components.
Definition at line 83 of file Sacado_Fad_StaticStorage.hpp.
| void Sacado::Fad::StaticStorage< T, Num >::resize | ( | int | sz | ) | [inline] |
| void Sacado::Fad::StaticStorage< T, Num >::zero | ( | ) | [inline] |
| T Sacado::Fad::StaticStorage< T, Num >::val_ |
| T Sacado::Fad::StaticStorage< T, Num >::dx_[Num] |
| int Sacado::Fad::StaticStorage< T, Num >::sz_ |
1.4.7