#include <datanode.h>
Definition at line 33 of file datanode.h.
Public Methods | |
| DataNode (void) | |
| DataNode (const DataNode &A) | |
| const DataNode & | operator= (const DataNode &A) |
| const DataNode & | operator= (const double x) |
| const DataNode & | operator= (const int x) |
| const DataNode & | operator= (const unsigned x) |
| const DataNode & | operator+= (const double x) |
| const DataNode & | operator-= (const double x) |
| const DataNode & | operator *= (const double x) |
| const DataNode & | operator/= (const double x) |
| const DataNode & | operator+= (const int x) |
| const DataNode & | operator-= (const int x) |
| const DataNode & | operator *= (const int x) |
| const DataNode & | operator/= (const int x) |
| const DataNode & | operator+= (const unsigned x) |
| const DataNode & | operator-= (const unsigned x) |
| const DataNode & | operator *= (const unsigned x) |
| const DataNode & | operator/= (const unsigned x) |
| void | double_val (const double x) |
| void | int_val (const int x) |
| void | unsigned_val (const unsigned x) |
| double | double_val (void) const |
| int | int_val (void) const |
| unsigned | unsigned_val (void) const |
Public Attributes | |
| int | missing |
Protected Methods | |
| void | copyfrom (const DataNode &A) |
Protected Attributes | |
| union { | |
| int int_value | |
| double double_value | |
| unsigned unsigned_value | |
| } | data |
Friends | |
| class | Individual |
| class | Field |
| std::ostream & | operator<< (std::ostream &stream, const DataNode &A) |
|
|
Definition at line 48 of file datanode.h. References missing.
00048 {missing=1;} // missing is the default
|
|
|
Definition at line 31 of file datanode.cpp. References copyfrom().
00032 {
00033 copyfrom(A);
00034 }
|
|
|
Definition at line 36 of file datanode.cpp. Referenced by DataNode(), and operator=().
|
|
|
Definition at line 92 of file datanode.h. References data.
00092 {return data.double_value;}
|
|
|
|
Definition at line 93 of file datanode.h. References data.
00093 {return data.int_value;}
|
|
|
Definition at line 90 of file datanode.h.
|
|
|
Definition at line 84 of file datanode.h. References data.
00084 {data.unsigned_value *= x;
00085 return *this;}
|
|
|
Definition at line 75 of file datanode.h. References data.
00075 {data.int_value *= x;
00076 return *this;}
|
|
|
Definition at line 66 of file datanode.h. References data.
00066 {data.double_value *= x;
00067 return *this;}
|
|
|
Definition at line 80 of file datanode.h. References data.
00080 {data.unsigned_value += x;
00081 return *this;}
|
|
|
Definition at line 71 of file datanode.h. References data.
00071 {data.int_value += x;
00072 return *this;}
|
|
|
Definition at line 62 of file datanode.h. References data.
00062 {data.double_value += x;
00063 return *this;}
|
|
|
Definition at line 82 of file datanode.h. References data.
00082 {data.unsigned_value -= x;
00083 return *this;}
|
|
|
Definition at line 73 of file datanode.h. References data.
00073 {data.int_value -= x;
00074 return *this;}
|
|
|
Definition at line 64 of file datanode.h. References data.
00064 {data.double_value -= x;
00065 return *this;}
|
|
|
Definition at line 86 of file datanode.h. References data.
00086 {data.unsigned_value /= x;
00087 return *this;}
|
|
|
Definition at line 77 of file datanode.h. References data.
00077 {data.int_value /= x;
00078 return *this;}
|
|
|
Definition at line 68 of file datanode.h. References data.
00068 {data.double_value /= x;
00069 return *this;}
|
|
|
Definition at line 60 of file datanode.h.
|
|
|
Definition at line 57 of file datanode.h.
|
|
|
Definition at line 54 of file datanode.h.
|
|
|
Definition at line 43 of file datanode.cpp. References copyfrom().
00044 {
00045 copyfrom(A);
00046 return *this;
00047 }
|
|
|
Definition at line 94 of file datanode.h. References data.
00094 {return data.unsigned_value;}
|
|
|
Definition at line 91 of file datanode.h. Referenced by matvec::Data::col(), matvec::Model::hashxact(), matvec::Data::input(), matvec::Population::input_data(), matvec::Population::input_markerData(), matvec::Data::print(), matvec::Model::re_hash_data(), matvec::Model::save_pos_val(), and matvec::Field::sub().
|
|
|
Definition at line 35 of file datanode.h. |
|
|
Definition at line 34 of file datanode.h. |
|
||||||||||||
|
Definition at line 49 of file datanode.cpp.
00050 {
00051 std::cout.precision(6);
00052 if (A.missing) {
00053 stream << " " << std::setw(12) << ".";
00054 }
00055 else {
00056 stream << " " << std::setw(12) << A.data.double_value;
00057 }
00058 return stream;
00059 }
|
|
|
Referenced by copyfrom(), double_val(), int_val(), matvec::Field::operator *=(), operator *=(), matvec::Field::operator+=(), operator+=(), matvec::Field::operator-=(), operator-=(), matvec::Field::operator/=(), operator/=(), matvec::operator<<(), operator=(), and unsigned_val(). |
|
|
Definition at line 39 of file datanode.h. |
|
|
Definition at line 38 of file datanode.h. |
|
|
|
Definition at line 40 of file datanode.h. |
1.2.16