Overture  Version 25
conversion.h
Go to the documentation of this file.
1 #ifndef APP_CONVERSION_H
2 #define APP_CONVERSION_H
3 
4 #include "A++.h"
5 #include "OvertureDefine.h"
6 // define "=" operators for mixed mode A++ operations
7 
8 
9 #define convertToIntArray convertTo_intArray
10 
11 #ifdef OV_USE_DOUBLE
12 #define convertToRealArray convertTo_doubleArray
13 #else
14 #define convertToRealArray convertTo_floatArray
15 #endif
16 
17 void equals(const intArray &y, const intArray & x);
18 void equals(const floatArray &y, const floatArray & x);
19 void equals(const doubleArray &y, const doubleArray & x);
20 
21 void equals(const intArray &y, const floatArray & x);
22 void equals(const intArray &y, const doubleArray & x);
23 void equals(const floatArray &y, const intArray & x);
24 void equals(const floatArray &y, const doubleArray & x);
25 void equals(const doubleArray &y, const intArray & x);
26 void equals(const doubleArray &y, const floatArray & x);
27 
28 
29 #ifdef USE_OLD_APP
30 // define bitwise A++ operators
31 intArray operator | ( const intArray & x, const int & value );
32 intArray& operator |= ( intArray & x, const int & value );
33 intArray operator & ( const intArray & x, const int & value );
34 intArray& operator &= ( intArray & x, const int & value );
35 #endif
36 
37 #ifdef USE_PPP
38 void equals(const intSerialArray &y, const intSerialArray & x);
39 void equals(const floatSerialArray &y, const floatSerialArray & x);
40 void equals(const doubleSerialArray &y, const doubleSerialArray & x);
41 
42 void equals(const intSerialArray &y, const floatSerialArray & x);
43 void equals(const intSerialArray &y, const doubleSerialArray & x);
44 void equals(const floatSerialArray &y, const intSerialArray & x);
45 void equals(const floatSerialArray &y, const doubleSerialArray & x);
46 void equals(const doubleSerialArray &y, const intSerialArray & x);
47 void equals(const doubleSerialArray &y, const floatSerialArray & x);
48 
49 #ifdef USE_OLD_APP
50 intSerialArray operator | ( const intSerialArray & x, const int & value );
51 intSerialArray& operator |= ( intSerialArray & x, const int & value );
52 
53 intSerialArray operator & ( const intSerialArray & x, const int & value );
54 intSerialArray& operator &= ( intSerialArray & x, const int & value );
55 #endif
56 #endif
57 
58 #endif