66 |
/** \name Ctor & dtor. |
/** \name Ctor & dtor. |
67 |
** \{ */ |
** \{ */ |
68 |
|
|
69 |
/** \brief Construct a new abstract type |
/** \brief Construct a new type of signal |
|
** \param data: data witch represents signal in double |
|
|
** \param length: length of data, it's the number of double, be carefull, it should be allocated |
|
70 |
*/ |
*/ |
71 |
|
Type(); |
72 |
|
Type(double *data); |
73 |
Type(double *data, int length); |
Type(double *data, int length); |
74 |
/** \} */ |
/** \} */ |
75 |
|
|
76 |
// Operations |
// Operations |
77 |
/** \name Operations |
/** \name Operations |
78 |
** \{ */ |
** \{ */ |
79 |
|
void set_signal(Signal *signal){ _signal = signal; } |
80 |
/** \brief set the signal of type |
void operator = ( double *src ); |
81 |
** \param signal is the new signal. |
|
|
*/ |
|
|
void set_signal(Signal *signal){ _signal = signal;} |
|
|
|
|
82 |
/** \brief display the signal contained in this |
/** \brief display the signal contained in this |
83 |
** \param str where the signal shouild be print |
** \param str where the signal shouild be print |
84 |
*/ |
*/ |
86 |
/** \} */ |
/** \} */ |
87 |
|
|
88 |
|
|
89 |
/** \name Accessors. |
/** \name Accessors. |
90 |
** \{ */ |
** \{ */ |
91 |
Signal *get_signal() const { return _signal; } |
Signal *get_signal() const { return _signal; } |
92 |
double *get_data() const { return _signal->get_data(); } |
double *get_data() const { return _signal->get_data(); } |
103 |
/** \} */ |
/** \} */ |
104 |
}; |
}; |
105 |
|
|
|
/** \brief Overload operator << |
|
|
*/ |
|
106 |
std::ostream operator<<(std::ostream ostr, Type a); |
std::ostream operator<<(std::ostream ostr, Type a); |
107 |
|
|
108 |
|
|