file Pythia_8_212/wrapper_Couplings_def.h

[No description available]

Functions

Name
namespaceCAT_3(BACKENDNAME , _ , SAFE_VERSION )

Functions Documentation

function CAT_3

namespace CAT_3(
    BACKENDNAME ,
    _ ,
    SAFE_VERSION 
)

Source code

#ifndef __wrapper_Couplings_def_Pythia_8_212_h__
#define __wrapper_Couplings_def_Pythia_8_212_h__



#include "identification.hpp"

namespace CAT_3(BACKENDNAME,_,SAFE_VERSION)
{
    
    namespace Pythia8
    {
        
        // Member functions: 
        
        // Wrappers for original constructors: 
        inline Couplings::Couplings() :
            CoupSM(__factory0()),
            isSUSY( get_BEptr()->isSUSY_ref__BOSS())
        {
            get_BEptr()->set_wptr(this);
            get_BEptr()->set_delete_wrapper(false);
        }
        
        // Special pointer-based constructor: 
        inline Couplings::Couplings(Abstract_Couplings* in) :
            CoupSM(in),
            isSUSY( get_BEptr()->isSUSY_ref__BOSS())
        {
            get_BEptr()->set_wptr(this);
            get_BEptr()->set_delete_wrapper(false);
        }
        
        // Copy constructor: 
        inline Couplings::Couplings(const Couplings& in) :
            CoupSM(in.get_BEptr()->pointer_copy__BOSS()),
            isSUSY( get_BEptr()->isSUSY_ref__BOSS())
        {
            get_BEptr()->set_wptr(this);
            get_BEptr()->set_delete_wrapper(false);
        }
        
        // Assignment operator: 
        inline Couplings& Couplings::operator=(const Couplings& in)
        {
            if (this != &in)
            {
                get_BEptr()->pointer_assign__BOSS(in.get_BEptr());
            }
            return *this;
        }
        
        
        // Destructor: 
        inline Couplings::~Couplings()
        {
            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_Couplings* Pythia8::Couplings::get_BEptr() const
        {
            return dynamic_cast<Abstract_Couplings*>(BEptr);
        }
    }
    
}


#include "gambit/Backends/backend_undefs.hpp"

#endif /* __wrapper_Couplings_def_Pythia_8_212_h__ */

Updated on 2024-07-18 at 13:53:35 +0000