47 #include "IterationPack_IterQuantity.hpp" 48 #include "Teuchos_Assert.hpp" 54 TEUCHOS_TEST_FOR_EXCEPTION(
56 ,
"IterQuantity::assert_has_storage_k(offset) : There is not storage available for " 57 <<
name() <<
" for the k" << std::showpos << offset <<
" iteration" );
62 TEUCHOS_TEST_FOR_EXCEPTION(
64 ,
"IterQuantity::assert_updated_k(offset) : The interation quantity " <<
name()
65 <<
" has not been been updated for the k" << std::showpos << offset
66 <<
" iteration yet." );
void assert_updated_k(int offset) const
Assert updated_k(offset) == true (throw QuanityNotSet).
void assert_has_storage_k(int offset) const
Assert has_storage_k(offset) == true (throw NoStorageAvailable).
virtual bool updated_k(int offset) const =0
Determine if the quanity for the k offset iteration has been accessed by a call to set_k() (see IterQ...
Thrown when memory access is attempted when it has not yet been updated.
Thrown memory if attempted to be set that storage can not be allocated to.
virtual const char * name() const =0
Return the name (zero terminated string) of this quantity.
virtual bool has_storage_k(int offset) const =0
Determine if there is storage advailable for the k offset iteration quanity.