9 int ival = (val ==
true) ? 1 : 0;
15 int64_t *copy =
new int64_t[howMany];
16 for (
unsigned int i = 0; i < howMany; ++i) {
17 copy[i] = (int64_t) p[i];
24 uint64_t *copy =
new uint64_t[howMany];
25 for (
unsigned int i = 0; i < howMany; ++i) {
26 copy[i] = (uint64_t) p[i];
31 #elif defined __APPLE__ 34 const int64_t *alias =
reinterpret_cast<const int64_t *
> (p);
35 Write(alias, howMany);
39 const uint64_t *alias =
reinterpret_cast<const uint64_t *
>(p);
40 Write(alias, howMany);
46 double *copy =
new double[howMany];
47 for (
unsigned int i = 0; i < howMany; ++i) {
48 copy[i] = (double) p[i];
56 std::complex<double> *copy =
new std::complex<double>[howMany];
57 for (
int i = 0; i < howMany; i++) {
58 copy[i] = (std::complex<double>)p[i];
66 for (c = 0; c < howMany; c++) {
69 Write(p[c].c_str(), sz);
75 for (i = 0; i < howMany; i++)
76 Write(&(p[i].fVal), 1);
83 for (
int i = 0; i < howMany; i++) {
94 val = (ival == 0) ?
false :
true;
99 int64_t *copy =
new int64_t[howMany];
101 for (
unsigned int i = 0; i < howMany; ++i) {
102 p[i] = (long) copy[i];
108 uint64_t *copy =
new uint64_t[howMany];
110 for (
unsigned int i = 0; i < howMany; ++i) {
111 p[i] = (
long unsigned int) copy[i];
116 #elif defined __APPLE__ 119 int64_t *alias =
reinterpret_cast<int64_t *
>(p);
120 Read(alias, howMany);
124 uint64_t *alias =
reinterpret_cast<uint64_t *
>(p);
125 Read(alias, howMany);
130 double *copy =
new double[howMany];
132 for (
unsigned int i = 0; i < howMany; ++i) {
133 p[i] = (
long double)copy[i];
140 std::complex<double> *copy =
new std::complex<double>[howMany];
142 for (
unsigned int i = 0; i < howMany; ++i) {
143 p[i] = (std::complex<long double>)copy[i];
150 for (
int c = 0; c < howMany; c++) {
153 Read(&stringSize, 1);
154 temp =
new char[stringSize+1];
155 Read(temp, stringSize);
156 temp[stringSize] = 0;
164 for (i = 0; i < howMany; i++) {
165 Read(&(p[i].fVal), 1);
174 for (
unsigned int i = 0; i < howMany; ++i) {
184 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
190 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
196 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
202 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
208 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
214 std::cout << __PRETTY_FUNCTION__ <<
" PLEASE IMPLEMENT ME\n";
REAL val(STATE &number)
Returns value of the variable.
virtual void Write(const bool val)
#define DebugStop()
Returns a message to user put a breakpoint in.
This class implements floating point number associated with a counter of the operations performed wit...
Contains declaration of the abstract TPZStream class. TPZStream defines the interface for saving and ...
virtual void Read(bool &val)