/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
// 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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
/***********************************************************************//** * @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; }
virtual ~GTestEventBin(void){ free_members(); return; }
virtual ~GTestResponse(void){ free_members(); return; }
// Implement Pure virtual methods virtual void clear(void){ free_members(); init_members(); return; }
virtual ~GTestModelData(void) { free_members(); return; }
virtual ~GTestPointing(void) { free_members(); return; }
virtual ~GTestRoi(void){ free_members(); return; }