Changeset 3121


Ignore:
Timestamp:
05/16/17 14:07:28 (7 years ago)
Author:
Malte Marquarding
Message:

shared_ptr now in std namespace

Location:
trunk/external-alma/components/SpectralComponents
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/components/SpectralComponents/CompiledSpectralElement.cc

    r2980 r3121  
    105105const String& CompiledSpectralElement::getFunction() const {
    106106        // return _function;
    107         std::tr1::shared_ptr<Function<Double, Double> >  f = _getFunction();
     107        std::shared_ptr<Function<Double, Double> >  f = _getFunction();
    108108        return dynamic_cast<CompiledFunction<Double> *>(SpectralElement::_getFunction().get())->getText();
    109109}
     
    112112void CompiledSpectralElement::_setFunction(const String& function) {
    113113        //_function = function;
    114         std::tr1::shared_ptr<Function<Double, Double> > f = _getFunction();
     114        std::shared_ptr<Function<Double, Double> > f = _getFunction();
    115115        CompiledFunction<Double> *cf = f.get() == 0
    116116                ? new CompiledFunction<Double>()
  • trunk/external-alma/components/SpectralComponents/GaussianSpectralElement.cc

    r2980 r3121  
    4343: PCFSpectralElement(SpectralElement::GAUSSIAN, 1, 0, 2*sqrt(C::ln2)/C::pi) {
    4444        _setFunction(
    45                 std::tr1::shared_ptr<Gaussian1D<Double> >(
     45                std::shared_ptr<Gaussian1D<Double> >(
    4646                        new Gaussian1D<Double>(1, 0, 1)
    4747                )
     
    5454) : PCFSpectralElement(SpectralElement::GAUSSIAN, ampl, center, sigma) {
    5555        _setFunction(
    56                 std::tr1::shared_ptr<Gaussian1D<Double> >(
     56                std::shared_ptr<Gaussian1D<Double> >(
    5757                        new Gaussian1D<Double>(ampl, center, sigma*SigmaToFWHM)
    5858                )
     
    6363        const Vector<Double> &param
    6464) : PCFSpectralElement(SpectralElement::GAUSSIAN, param) {
    65         std::tr1::shared_ptr<Gaussian1D<Double> >(
     65        std::shared_ptr<Gaussian1D<Double> >(
    6666                new Gaussian1D<Double>(param[AMP], param[CENTER], param[WIDTH]*SigmaToFWHM)
    6767        );
  • trunk/external-alma/components/SpectralComponents/LorentzianSpectralElement.cc

    r2980 r3121  
    4040: PCFSpectralElement(SpectralElement::LORENTZIAN, Vector<Double>(3)) {
    4141        _setFunction(
    42                 std::tr1::shared_ptr<Lorentzian1D<Double> >(
     42                std::shared_ptr<Lorentzian1D<Double> >(
    4343                        new Lorentzian1D<Double>(1)
    4444                )
     
    5757        }
    5858        _setFunction(
    59                 std::tr1::shared_ptr<Lorentzian1D<Double> >(
     59                std::shared_ptr<Lorentzian1D<Double> >(
    6060                        new Lorentzian1D<Double>(ampl, center, fwhm)
    6161                )
     
    7070        }
    7171        _setFunction(
    72                 std::tr1::shared_ptr<Lorentzian1D<Double> >(
     72                std::shared_ptr<Lorentzian1D<Double> >(
    7373                        new Lorentzian1D<Double>(param[AMP], param[CENTER], param[WIDTH])
    7474                )
  • trunk/external-alma/components/SpectralComponents/PCFSpectralElement.cc

    r2980 r3121  
    207207        // own functions in their constructors
    208208        _setFunction(
    209                 std::tr1::shared_ptr<Function<Double> >(
     209                std::shared_ptr<Function<Double> >(
    210210                        new Gaussian1D<Double>()
    211211                )
  • trunk/external-alma/components/SpectralComponents/PolynomialSpectralElement.cc

    r2980 r3121  
    3838: SpectralElement(SpectralElement::POLYNOMIAL, Vector<Double>(0)) {
    3939        _setFunction(
    40                 std::tr1::shared_ptr<Polynomial<Double> >(
     40                std::shared_ptr<Polynomial<Double> >(
    4141                        new Polynomial<Double>()
    4242                )
     
    4747  : SpectralElement(SpectralElement::POLYNOMIAL, Vector<Double>(n+1, 0.)) {
    4848        _setFunction(
    49                 std::tr1::shared_ptr<Polynomial<Double> >(
     49                std::shared_ptr<Polynomial<Double> >(
    5050                        new Polynomial<Double>(n)
    5151                )
     
    5656: SpectralElement(SpectralElement::POLYNOMIAL, param) {
    5757        _setFunction(
    58                 std::tr1::shared_ptr<Polynomial<Double> >(
     58                std::shared_ptr<Polynomial<Double> >(
    5959                        new Polynomial<Double>(param.size())
    6060                )
  • trunk/external-alma/components/SpectralComponents/PowerLogPolynomialSpectralElement.cc

    r2980 r3121  
    4646        //_makeFunction();
    4747        _setFunction(
    48                 std::tr1::shared_ptr<PowerLogarithmicPolynomial<Double> >(
     48                std::shared_ptr<PowerLogarithmicPolynomial<Double> >(
    4949                        new PowerLogarithmicPolynomial(n)
    5050                )
     
    5757        //_makeFunction();
    5858        _setFunction(
    59                 std::tr1::shared_ptr<PowerLogarithmicPolynomial<Double> >(
     59                std::shared_ptr<PowerLogarithmicPolynomial<Double> >(
    6060                        new PowerLogarithmicPolynomial<Double>(param.tovector())
    6161                )
Note: See TracChangeset for help on using the changeset viewer.