Action #503

Feature #490: Avoid casts for derived classes

Rework GModelSpectral interface

Added by Knödlseder Jürgen about 12 years ago. Updated almost 12 years ago.

Status:ClosedStart date:09/20/2012
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-Estimated time:0.00 hour
Target version:00-07-00
Duration:

Description

Here a list of methods implemented in derived classes of GModelSpectral:

GModelSpectralConst:
  • double norm(void) const;

Note: this is just a luxury method as the same can be achieved by using the parameter access method.

GModelSpectralExpPlaw:
  • void autoscale(void);
  • double norm(void) const;
  • double index(void) const;
  • double ecut(void) const;
  • double pivot(void) const;

Note: the methods except of autoscale() are just a luxury as the same can be achieved by using the parameter access method. autoscale() is pretty low-level, and likely not a generic method.

GModelSpectralFunc:
  • double norm(void) const;

Note: this is just a luxury method as the same can be achieved by using the parameter access method.

GModelSpectralNodes:
None

GModelSpectralPlaw:
  • void autoscale(void);
  • double norm(void) const;
  • double index(void) const;
  • double pivot(void) const;

Note: the methods except of autoscale() are just a luxury as the same can be achieved by using the parameter access method. autoscale() is pretty low-level, and likely not a generic method.

GModelSpectralPlaw2:
  • double integral(void) const;
  • double index(void) const;
  • double emin(void) const;
  • double emax(void) const;

Note: these are just luxury methods as the same can be achieved by using the parameter access method.


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen about 12 years ago

  • Description updated (diff)

#2 Updated by Knödlseder Jürgen about 12 years ago

  • Start date set to 09/20/2012

due to changes in a related task

#3 Updated by Knödlseder Jürgen about 12 years ago

  • Status changed from New to Feedback
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

The interface has not been reworked. Instead, output typemaps have been implemented that perform typecasting at the access level.

#4 Updated by Knödlseder Jürgen almost 12 years ago

  • Status changed from Feedback to Closed
  • Estimated time set to 0.00

Also available in: Atom PDF