#include <IterationPack_IterQuantityAccessContiguousDecl.hpp>
Inheritance diagram for IterationPack::IterQuantityAccessContiguous< T_info >:
Constructors/initalizers | |
| IterQuantityAccessContiguous (int num_quantities, const std::string &name, const abstract_factory_ptr_t &abstract_factory=Teuchos::rcp(new abstract_factory_std_t())) | |
Construct storage for num_quantities with the name name given an abstract factory. | |
| void | set_factory (const abstract_factory_ptr_t &abstract_factory) |
| Set the abstract factory to use to allocate storate. | |
| void | resize (int num_quantities) |
| Resize the number of contiguous storage locations. | |
| ~IterQuantityAccessContiguous () | |
| | |
Access | |
| int | num_quantities () const |
| Return the number of continous storage locations. | |
Overridden from IterQuantity | |
| IterQuantity * | clone () const |
| | |
| const char * | name () const |
| | |
| bool | has_storage_k (int offset) const |
| | |
| bool | updated_k (int offset) const |
| | |
| int | last_updated () const |
| | |
| void | set_not_updated_k (int offset) |
| | |
| void | set_all_not_updated () |
| | |
| bool | will_loose_mem (int offset, int set_offset) const |
| | |
| void | next_iteration () |
| | |
| void | print_concrete_type (std::ostream &out) const |
| | |
Overridden from IterQuantityAccess | |
| T_info & | get_k (int offset) |
| | |
| const T_info & | get_k (int offset) const |
| | |
| T_info & | set_k (int offset) |
| | |
| T_info & | set_k (int set_offset, int get_offset) |
| | |
Public Types | |
| typedef IterQuantityAccess< T_info > | base_t |
| | |
| typedef Teuchos::RefCountPtr< const Teuchos::AbstractFactory< T_info > > | abstract_factory_ptr_t |
| | |
| typedef Teuchos::AbstractFactoryStd< T_info, T_info > | abstract_factory_std_t |
| | |
This class implements the IterQuantityAccess interface for the case where storage is provided for consecutive iterations. This class allows the number of iterations to be variable on construction. For 3 storage locations, this class could provide memory for the intervals [k-5, k-4, k-3], or [k-1, k, k+1] or [k+1, k+2, k+3] etc. The particular interval being represented is dependent on the sequence in which set_k(offset) and next_iteration() are called. The only rule is that backward interation is not allowed. For example, if the [k, k+1] interval is being represented then set_k(-1) will throw an exception but set_k(+5) would not. Backward memory is keep as long as possible and is only changed by set_k(). For example, if the range [k-1, k] is being represented and set_k(+1) is called, the interval [k, k+1] is now represented and the value for the kth iteration is still keep but the value for the k-1 iteration is lost. This could have been determined a priori by calling will_loose_mem().
The default constructor, copy constructor and assignment operators are not not allowed (i.e. declared private).
Definition at line 73 of file IterationPack_IterQuantityAccessContiguousDecl.hpp.
|
|||||
|
Definition at line 77 of file IterationPack_IterQuantityAccessContiguousDecl.hpp. |
|
|||||
|
Definition at line 81 of file IterationPack_IterQuantityAccessContiguousDecl.hpp. |
|
|||||
|
Definition at line 83 of file IterationPack_IterQuantityAccessContiguousDecl.hpp. |
|
||||||||||||||||||||
|
Construct storage for
After construction Preconditions:
If Definition at line 46 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Definition at line 60 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Set the abstract factory to use to allocate storate. Postconditions:
If Definition at line 65 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Resize the number of contiguous storage locations. Postconditions:
Definition at line 79 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Return the number of continous storage locations.
Definition at line 245 of file IterationPack_IterQuantityAccessContiguousDecl.hpp. |
|
|||||||||
|
Implements IterationPack::IterQuantity. Definition at line 93 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Implements IterationPack::IterQuantity. Definition at line 101 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantity. Definition at line 106 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantity. Definition at line 113 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Implements IterationPack::IterQuantity. Definition at line 122 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantity. Definition at line 137 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Implements IterationPack::IterQuantity. Definition at line 143 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||||||||
|
Implements IterationPack::IterQuantity. Definition at line 149 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
|||||||||
|
Implements IterationPack::IterQuantity. Definition at line 155 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantity. Definition at line 162 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantityAccess< T_info >. Definition at line 176 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantityAccess< T_info >. Definition at line 181 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||
|
Implements IterationPack::IterQuantityAccess< T_info >. Definition at line 187 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
|
||||||||||||||||
|
Implements IterationPack::IterQuantityAccess< T_info >. Definition at line 252 of file IterationPack_IterQuantityAccessContiguousDef.hpp. |
1.3.9.1