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());
99 ASSERT( index <
array_.size() ,
"Index %d out of array of size: %d", index,
array_.size());
111 if ( index >=
array_.size() )
113 ASSERT(
array_[index] != NULL,
"Null pointer in storage.");
131 stream << setw(pad) <<
"" <<
"array(" << this->
get_array_size() <<
")" << std::endl;
139 if (*it != NULL)
delete (*it);
169 stream << setw(pad) <<
"" <<
"bool(" <<
value_ <<
")"<<std::endl;
203 stream << setw(pad) <<
"" <<
"int(" <<
value_ <<
")"<<std::endl;
238 stream << setw(pad) <<
"" <<
"double(" <<
value_ <<
")"<<std::endl;
274 stream << setw(pad) <<
"" <<
"string(" <<
value_ <<
")"<<std::endl;
300 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.