30 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"int") << EI_StoredType(
typeid(*this).name()) );
37 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"double") << EI_StoredType(
typeid(*this).name()) );
44 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"bool") << EI_StoredType(
typeid(*this).name()) );
51 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"string") << EI_StoredType(
typeid(*this).name()) );
52 #pragma GCC diagnostic push 53 #pragma GCC diagnostic ignored "-Wreturn-local-addr" 55 #pragma GCC diagnostic pop 61 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"array") << EI_StoredType(
typeid(*this).name()) );
74 THROW( ExcStorageTypeMismatch() << EI_RequestedType(
"array") << EI_StoredType(
typeid(*this).name()) );
95 for(
unsigned int i=0; i<
array_.size(); i++)
103 ASSERT(
array_[index] == NULL )(index).error(
"Can not replace non NULL pointer.");
111 .error(
"Can not replace non NULL pointer.");
139 stream << setw(pad) <<
"" <<
"array(" << this->
get_array_size() <<
")" << std::endl;
147 if (*
it != NULL)
delete (*it);
177 stream << setw(pad) <<
"" <<
"bool(" <<
value_ <<
")"<<std::endl;
211 stream << setw(pad) <<
"" <<
"int(" <<
value_ <<
")"<<std::endl;
246 stream << setw(pad) <<
"" <<
"double(" <<
value_ <<
")"<<std::endl;
282 stream << setw(pad) <<
"" <<
"string(" <<
value_ <<
")"<<std::endl;
308 stream << setw(pad) <<
"" <<
"null()"<<std::endl;
IntFormatSpec< int, AlignTypeSpec< TYPE_CODE >, Char > pad(int value, unsigned width, Char fill= ' ')
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
static constexpr bool value
Global macros to enhance readability and debugging, general constants.
#define ASSERT_PTR(ptr)
Definition of assert macro checking non-null pointer (PTR)
#define ASSERT_LT(a, b)
Definition of comparative assert macro (Less Than)
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.