示例#1
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] model Radial spatial model.
 ***************************************************************************/
GModelRadial& GModelRadial::operator= (const GModelRadial& model)
{
    // Execute only if object is not identical
    if (this != &model) {

        // Copy base class members
        this->GModelSpatial::operator=(model);

        // Free members
        free_members();

        // Initialise members
        init_members();

        // Copy members
        copy_members(model);

    } // endif: object was not identical

    // Return
    return *this;
}
示例#2
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] column Table column.
 * @return Table column.
 ***************************************************************************/
GFitsTableDoubleCol& GFitsTableDoubleCol::operator=(const GFitsTableDoubleCol& column)
{
    // Execute only if object is not identical
    if (this != &column) {

        // Copy base class members
        this->GFitsTableCol::operator=(column);

        // Free members
        free_members();

        // Initialise private members for clean destruction
        init_members();

        // Copy members
        copy_members(column);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#3
0
    // Operators
    GTestRoi& operator= (const GTestRoi& roi){
        
            // Execute only if object is not identical
        if (this != &roi) {

        // Copy base class members
            this->GRoi::operator=(roi);

        // Free members
            free_members();

        // Initialise private members
            init_members();

        // Copy members
            copy_members(roi);

        } // endif: object was not identical

         // Return this object
        return *this;
    }
示例#4
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] url URL.
 * @return URL.
 ***************************************************************************/
GUrlFile& GUrlFile::operator=(const GUrlFile& url)
{
    // Execute only if object is not identical
    if (this != &url) {

        // Copy base class members
        this->GUrl::operator=(url);

        // Free members
        free_members();

        // Initialise members
        init_members();

        // Copy members
        copy_members(url);

    } // endif: object was not identical

    // Return
    return *this;
}
示例#5
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] image FITS image.
 ***************************************************************************/
GFitsImageFloat& GFitsImageFloat::operator=(const GFitsImageFloat& image)
{
    // Execute only if object is not identical
    if (this != &image) {

        // Copy base class members
        this->GFitsImage::operator=(image);

        // Free members
        free_members();

        // Initialise private members for clean destruction
        init_members();

        // Copy members
        copy_members(image);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#6
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] app Application.
 ***************************************************************************/
ctselect& ctselect::operator= (const ctselect& app)
{
    // Execute only if object is not identical
    if (this != &app) {

        // Copy base class members
        this->GApplication::operator=(app);

        // Free members
        free_members();

        // Initialise members
        init_members();

        // Copy members
        copy_members(app);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#7
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] spec Spectrum.
 * @return Spectrum.
 ***************************************************************************/
GMWLSpectrum& GMWLSpectrum::operator=(const GMWLSpectrum& spec)
{
    // Execute only if object is not identical
    if (this != &spec) {

        // Copy base class members
        this->GEventCube::operator=(spec);

        // Free members
        free_members();

        // Initialise members
        init_members();

        // Copy members
        copy_members(spec);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#8
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] wcs World Coordinate System.
 * @return World Coordinate System.
 ***************************************************************************/
GWcsMOL& GWcsMOL::operator=(const GWcsMOL& wcs)
{
    // Execute only if object is not identical
    if (this != &wcs) {

        // Copy base class members
        this->GWcs::operator=(wcs);

        // Free members
        free_members();

        // Initialise private members for clean destruction
        init_members();

        // Copy members
        copy_members(wcs);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#9
0
/***********************************************************************//**
 * @brief Load region map from FITS file name
 *
 * @param[in] filename FITS file name.
 ***************************************************************************/
void GSkyRegionMap::load(const GFilename& filename)
{
    // Free members
    free_members();

    // Initialise private members
    init_members();

    // Load map
    m_map.load(filename);
    
    // Store filename
    m_filename = filename;
    
    // Set non-zero indices
    set_nonzero_indices();
    
    // Compute solid angle
    compute_solid_angle();

    // Return
    return;
}
示例#10
0
/***********************************************************************//**
 * @brief Assignment operator
 *
 * @param[in] matrix Matrix.
 ***************************************************************************/
GMatrix& GMatrix::operator=(const GMatrix& matrix)
{
    // Execute only if object is not identical
    if (this != &matrix) {

        // Assign base class members. Note that this method will also perform
        // the allocation of the matrix memory and the copy of the matrix
        // attributes.
        this->GMatrixBase::operator=(matrix);

        // Free derived class members
        free_members();

        // Initialise derived class members
        init_members();

        // Copy derived class members
        copy_members(matrix);

    } // endif: object was not identical

    // Return this object
    return *this;
}
示例#11
0
 virtual ~GTestEventBin(void){
     free_members();
     return; 
 }
示例#12
0
 virtual ~GTestResponse(void){
     free_members();
     return;
 }
示例#13
0
 // Implement Pure virtual methods
 virtual void clear(void){
     free_members();
     init_members();
     return;
 }
示例#14
0
 virtual ~GTestModelData(void) {
     free_members();
     return;
 }
示例#15
0
 virtual ~GTestPointing(void) {
     free_members();
     return;
 }
示例#16
0
 virtual ~GTestRoi(void){
     free_members();
     return;
 }