32 #include "byteswap_compat.h"
33 #include "DmrppUInt64.h"
41 DmrppUInt64::_duplicate(
const DmrppUInt64 &)
45 DmrppUInt64::DmrppUInt64(
const string &n) : UInt64(n), DmrppCommon()
49 DmrppUInt64::DmrppUInt64(
const string &n,
const string &d) : UInt64(n, d), DmrppCommon()
54 DmrppUInt64::ptr_duplicate()
56 return new DmrppUInt64(*
this);
59 DmrppUInt64::DmrppUInt64(
const DmrppUInt64 &rhs) : UInt64(rhs), DmrppCommon(rhs)
65 DmrppUInt64::operator=(
const DmrppUInt64 &rhs)
70 dynamic_cast<UInt64 &
>(*this) = rhs;
73 DmrppCommon::m_duplicate_common(rhs);
81 BESDEBUG(
"dmrpp",
"Entering " <<__PRETTY_FUNCTION__ <<
" for '" << name() <<
"'" << endl);
86 set_value(*
reinterpret_cast<dods_uint64*
>(read_atomic(name())));
88 if ( this->twiddle_bytes() ) {
89 d_buf = bswap_64(d_buf);
97 void DmrppUInt64::dump(ostream & strm)
const
99 strm << BESIndent::LMarg <<
"DmrppUInt64::dump - (" << (
void *)
this <<
")" << endl;
101 DmrppCommon::dump(strm);
103 strm << BESIndent::LMarg <<
"value: " << d_buf << endl;
104 BESIndent::UnIndent();