file gm2calc_1_2_0/gm2calc_1_2_0/wrapper_ESetupError_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_ESetupError_def_gm2calc_1_2_0_hpp__
#define __wrapper_ESetupError_def_gm2calc_1_2_0_hpp__
#include <string>
#include "identification.hpp"
namespace CAT_3(BACKENDNAME,_,SAFE_VERSION)
{
namespace gm2calc
{
// Member functions:
inline ::std::string ESetupError::what() const
{
return get_BEptr()->what();
}
// Wrappers for original constructors:
inline ESetupError::ESetupError(const std::string& message_) :
Error(__factory0(message_))
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Special pointer-based constructor:
inline ESetupError::ESetupError(Abstract_ESetupError* in) :
Error(in)
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Copy constructor:
inline ESetupError::ESetupError(const ESetupError& in) :
Error(in.get_BEptr()->pointer_copy__BOSS())
{
get_BEptr()->set_wptr(this);
get_BEptr()->set_delete_wrapper(false);
}
// Assignment operator:
inline ESetupError& ESetupError::operator=(const ESetupError& in)
{
if (this != &in)
{
get_BEptr()->pointer_assign__BOSS(in.get_BEptr());
}
return *this;
}
// Destructor:
inline ESetupError::~ESetupError()
{
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_ESetupError* gm2calc::ESetupError::get_BEptr() const
{
return dynamic_cast<Abstract_ESetupError*>(BEptr);
}
}
}
#include "gambit/Backends/backend_undefs.hpp"
#endif /* __wrapper_ESetupError_def_gm2calc_1_2_0_hpp__ */
Updated on 2024-07-18 at 13:53:35 +0000