31 #if defined(Signal_RECURSES)
32 #error Recursive header files inclusion detected in Signal.h
33 #else // defined(Signal_RECURSES)
35 #define Signal_RECURSES
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CowPtr.h"
57 template <
typename TValue>
85 void init(
unsigned int s,
int z = 0,
bool p =
false,
97 void init(
const Value* t,
unsigned int size,
int z = 0,
bool p =
false,
108 SignalData(
unsigned int s,
int z = 0,
bool p =
false,
119 SignalData(
const Value* t,
unsigned int size,
int z = 0,
bool p =
false,
161 template <
typename TValue>
222 Signal(
unsigned int size,
int z,
bool periodic,
223 const TValue & def = TValue( 0 ) );
233 Signal(
const TValue* t,
unsigned int size,
int z,
bool periodic,
234 const TValue & def = TValue( 0 ) );
258 void init(
unsigned int s,
int z = 0,
bool p =
false,
259 const TValue & def = TValue( 0 ) );
270 void init(
const TValue* t,
unsigned int size,
int z = 0,
bool p =
false,
271 const TValue & def = TValue( 0 ) );
277 unsigned int size()
const;
307 void setAll(
const TValue & val = TValue( 0 ) );
317 void multiply(
const TValue & val );
367 template <
typename TValue>
369 operator<< ( std::ostream & out, const Signal<TValue> & object );
376 #include "DGtal/math/Signal.ih"
381 #endif // !defined Signal_h
383 #undef Signal_RECURSES
384 #endif // else defined(Signal_RECURSES)