20 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"int") << EI_StoredType(
typeid(*this).name()) );
27 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"double") << EI_StoredType(
typeid(*this).name()) );
34 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"bool") << EI_StoredType(
typeid(*this).name()) );
41 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"string") << EI_StoredType(
typeid(*this).name()) );
42 #pragma GCC diagnostic push
43 #pragma GCC diagnostic ignored "-Wreturn-local-addr"
45 #pragma GCC diagnostic pop
51 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"array") << EI_StoredType(
typeid(*this).name()) );
64 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"array") << EI_StoredType(
typeid(*this).name()) );
85 for(
unsigned int i=0; i<
array_.size(); i++)
92 ASSERT( index <
array_.size() ,
"Index %d out of array of size: %d", index,
array_.size());
100 if ( index >=
array_.size() )
102 ASSERT(
array_[index] != NULL,
"Null pointer in storage.");
120 stream << setw(pad) <<
"" <<
"array(" << this->
get_array_size() <<
")" << std::endl;
128 if (*it != NULL)
delete (*it);
158 stream << setw(pad) <<
"" <<
"bool(" <<
value_ <<
")"<<std::endl;
192 stream << setw(pad) <<
"" <<
"int(" <<
value_ <<
")"<<std::endl;
227 stream << setw(pad) <<
"" <<
"double(" <<
value_ <<
")"<<std::endl;
263 stream << setw(pad) <<
"" <<
"string(" <<
value_ <<
")"<<std::endl;
289 stream << setw(pad) <<
"" <<
"null()"<<std::endl;
Global macros to enhance readability and debugging, general constants.
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.