Changeset 3340 in Sophya


Ignore:
Timestamp:
Oct 5, 2007, 2:13:07 PM (18 years ago)
Author:
cmv
Message:

add virtual destructor for g++ >4. cmv 05/10/2007

Location:
trunk/SophyaLib/TArray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/matharr.h

    r2322 r3340  
    1212namespace SOPHYA {
    1313
    14 //! Class for simple mathematical operation on arrays 
     14//! Class for simple mathematical operation on arrays
    1515template <class T>
    1616class MathArray {
    1717public:
    18 // Applying a function
     18  virtual ~MathArray(void) {};
     19
     20// Applying a function 
    1921  // Replaces the input array content with the result f(x)
    2022  virtual TArray<T>&  ApplyFunctionInPlace(TArray<T> & a, Arr_DoubleFunctionOfX f);
     
    115117class ComplexMathArray {
    116118public:
     119  virtual ~ComplexMathArray(void) {};
     120
    117121// Applying a function
    118122  // Replaces the input array content with the result f(x)
  • trunk/SophyaLib/TArray/smakefile

    r3007 r3340  
    4949  $(SOPHYAINCP)dvlist.h \
    5050  $(SOPHYAINCP)mutyv.h \
    51   $(SOPHYAINCP)ndatablock.h utilarr.h \
    52   tmatrix.h tmatrix_tsnl.h tvector.h tvector_tsnl.h \
     51  $(SOPHYAINCP)ndatablock.h utilarr.h tmatrix.h \
     52  tmatrix_tsnl.h tvector.h tvector_tsnl.h \
    5353  $(SOPHYAINCP)ppersist.h \
    5454  $(SOPHYAINCP)datatype.h
    5555        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  fioarr.cc
    5656 
    57 $(SOPHYAOBJP)matharr.o: matharr.cc \
    58   $(SOPHYAINCP)sopnamsp.h \
     57$(SOPHYAOBJP)matharr.o: matharr.cc $(SOPHYAINCP)sopnamsp.h \
    5958  $(SOPHYAINCP)machdefs.h matharr.h tarray.h \
    6059  basarr.h $(SOPHYAINCP)anydataobj.h \
     
    7574        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  matharr.cc
    7675 
    77 $(SOPHYAOBJP)sopemtx.o: sopemtx.cc \
    78   $(SOPHYAINCP)sopnamsp.h \
    79   $(SOPHYAINCP)machdefs.h sopemtx.h \
    80   tmatrix.h tarray.h basarr.h \
    81   $(SOPHYAINCP)anydataobj.h \
     76$(SOPHYAOBJP)sopemtx.o: sopemtx.cc $(SOPHYAINCP)sopnamsp.h \
     77  $(SOPHYAINCP)machdefs.h sopemtx.h tmatrix.h \
     78  tarray.h basarr.h $(SOPHYAINCP)anydataobj.h \
    8279  $(SOPHYAINCP)machdefs.h \
    8380  $(SOPHYAINCP)mutyv.h \
     
    9895        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  sopemtx.cc
    9996 
    100 $(SOPHYAOBJP)tarray.o: tarray.cc $(SOPHYAINCP)sopnamsp.h \
    101   $(SOPHYAINCP)machdefs.h \
     97$(SOPHYAOBJP)tarray.o: tarray.cc $(SOPHYAINCP)machdefs.h \
    10298  $(SOPHYAINCP)pexceptions.h \
    10399  $(SOPHYAINCP)machdefs.h tarray.h basarr.h \
     
    118114        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tarray.cc
    119115 
    120 $(SOPHYAOBJP)tarrinit.o: tarrinit.cc \
    121   $(SOPHYAINCP)sopnamsp.h \
     116$(SOPHYAOBJP)tarrinit.o: tarrinit.cc $(SOPHYAINCP)sopnamsp.h \
    122117  $(SOPHYAINCP)machdefs.h tarrinit.h \
    123118  $(SOPHYAINCP)sophyainit.h \
     
    136131  $(SOPHYAINCP)dvlist.h \
    137132  $(SOPHYAINCP)mutyv.h \
    138   $(SOPHYAINCP)ndatablock.h utilarr.h \
    139   tmatrix.h tmatrix_tsnl.h tvector.h tvector_tsnl.h \
     133  $(SOPHYAINCP)ndatablock.h utilarr.h tmatrix.h \
     134  tmatrix_tsnl.h tvector.h tvector_tsnl.h \
    140135  $(SOPHYAINCP)ppersist.h
    141136        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tarrinit.cc
    142137 
    143 $(SOPHYAOBJP)tmatrix.o: tmatrix.cc \
    144   $(SOPHYAINCP)sopnamsp.h \
     138$(SOPHYAOBJP)tmatrix.o: tmatrix.cc $(SOPHYAINCP)sopnamsp.h \
    145139  $(SOPHYAINCP)machdefs.h \
    146140  $(SOPHYAINCP)pexceptions.h \
     
    163157        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tmatrix.cc
    164158 
    165 $(SOPHYAOBJP)tvector.o: tvector.cc \
    166   $(SOPHYAINCP)sopnamsp.h \
     159$(SOPHYAOBJP)tvector.o: tvector.cc $(SOPHYAINCP)sopnamsp.h \
    167160  $(SOPHYAINCP)machdefs.h \
    168161  $(SOPHYAINCP)pexceptions.h \
    169   $(SOPHYAINCP)machdefs.h tvector.h \
    170   tmatrix.h tarray.h basarr.h \
    171   $(SOPHYAINCP)anydataobj.h \
     162  $(SOPHYAINCP)machdefs.h tvector.h tmatrix.h \
     163  tarray.h basarr.h $(SOPHYAINCP)anydataobj.h \
    172164  $(SOPHYAINCP)mutyv.h \
    173165  $(SOPHYAINCP)timestamp.h \
     
    186178        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tvector.cc
    187179 
    188 $(SOPHYAOBJP)utilarr.o: utilarr.cc \
    189   $(SOPHYAINCP)sopnamsp.h \
     180$(SOPHYAOBJP)utilarr.o: utilarr.cc $(SOPHYAINCP)sopnamsp.h \
    190181  $(SOPHYAINCP)machdefs.h utilarr.h \
    191182  $(SOPHYAINCP)mutyv.h \
Note: See TracChangeset for help on using the changeset viewer.