/[marvin]/marvin/src/libsip/type/type.hh
ViewVC logotype

Diff of /marvin/src/libsip/type/type.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by hannibal, Mon Aug 11 22:38:01 2003 UTC revision 1.4 by hannibal, Tue Aug 12 17:56:16 2003 UTC
# Line 42  Line 42 
42  #define TYPE_HH  #define TYPE_HH
43    
44  #include "signal.hh"  #include "signal.hh"
45    #include <float.h>
46    #define maximum(a,b) (((a)>(b))?(a):(b))
47    #define minimum(a,b) (((a)<(b))?(a):(b))
48    #define PI     3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
49    
50  class Type {  class Type {
51    // Associations  private:
52    // Attributes    Signal *_signal;
53    public:
54      // Constructeur
55      Type();
56      Type(double *data);
57      Type(double *data, int length);
58    // Operations    // Operations
59    public:    Signal *get_signal(){ return _signal; }
60      virtual void add () = 0;    void set_signal(Signal *signal){ _signal = signal; }
61      virtual void mult () = 0;    double &operator [] ( int val );
62      virtual void concat () = 0;    double operator [] ( int val ) const;
63      virtual void Haming () = 0;    void operator = ( double *src );
64      virtual void truncate () = 0;    int length();
     virtual void min () = 0;  
     virtual void max () = 0;  
65  };  };
66    
67  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26