file gm2calc_1_2_0/gm2calc_1_2_0/wrapper_EReadError_def.hpp
[No description available]
Functions
Name | |
---|---|
namespace | CAT_3(BACKENDNAME , _ , SAFE_VERSION ) |
Functions Documentation
function CAT_3
namespace CAT_3(
BACKENDNAME ,
_ ,
SAFE_VERSION
)
Source code
#ifndef __wrapper_EReadError_def_gm2calc_1_2_0_hpp__
#define __wrapper_EReadError_def_gm2calc_1_2_0_hpp__
#include <string>
#include "identification.hpp"
namespace CAT_3(BACKENDNAME,_,SAFE_VERSION)
{
namespace gm2calc
{
// Member functions:
inline ::std::string EReadError::what() const
{
return get_BEptr()->what();
}
// Wrappers for original constructors:
inline EReadError::EReadError(const std::string& message_) :
Error(__factory0(message_))
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Special pointer-based constructor:
inline EReadError::EReadError(Abstract_EReadError* in) :
Error(in)
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Copy constructor:
inline EReadError::EReadError(const EReadError& in) :
Error(in.get_BEptr()->pointer_copy__BOSS())
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Assignment operator:
inline EReadError& EReadError::operator=(const EReadError& in)
{
if (this != &in)
{
get_BEptr()->pointer_assign__BOSS(in.get_BEptr());
}
return *this;
}
// Destructor:
inline EReadError::~EReadError()
{
if (get_BEptr() != 0)
{
get_BEptr()->set_delete_wrapper(false);
if (can_delete_BEptr())
{
delete BEptr;
BEptr = 0;
}
}
set_delete_BEptr(false);
}
// Returns correctly casted pointer to Abstract class:
inline Abstract_EReadError* gm2calc::EReadError::get_BEptr() const
{
return dynamic_cast<Abstract_EReadError*>(BEptr);
}
}
}
#include "gambit/Backends/backend_undefs.hpp"
#endif /* __wrapper_EReadError_def_gm2calc_1_2_0_hpp__ */
Updated on 2024-07-18 at 13:53:35 +0000