Public Member Functions | Protected Attributes | Private Attributes

cmn_Hash Class Reference

#include <cmn_hash.h>

Inheritance diagram for cmn_Hash:
Inheritance graph
[legend]
Collaboration diagram for cmn_Hash:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cmn_Hash ()
virtual ~cmn_Hash ()
bool IsAvailable ()
string str ()

Protected Attributes

cmn_Hash_t m_hash
bool m_available

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 44 of file cmn_hash.h.


Constructor & Destructor Documentation

cmn_Hash::cmn_Hash (  ) 

Definition at line 47 of file cmn_hash.cpp.

References log_FUNC_m.

cmn_Hash::~cmn_Hash (  )  [virtual]

Definition at line 53 of file cmn_hash.cpp.

References log_FUNC_m.

                   {
    log_FUNC_m(~cmn_hash);
}


Member Function Documentation

bool cmn_Hash::IsAvailable (  ) 

Definition at line 57 of file cmn_hash.cpp.

References log_FUNC_m, and m_available.

string cmn_Hash::str (  ) 

Definition at line 63 of file cmn_hash.cpp.

References CMN_HASH_ELEMENTS_d, m_hash, and cmn_Hash_t::ui64.

                    {
    ostringstream ret;
    int i=0;
    while(i < CMN_HASH_ELEMENTS_d - 1){
        ret << hex << m_hash.ui64[i] << "-";
        i++;
    }
    ret << hex << m_hash.ui64[i];
    return ret.str();
}


Member Data Documentation

Reimplemented in cmn_ParityHash.

Definition at line 53 of file cmn_hash.h.

bool cmn_Hash::m_available [protected]

Definition at line 57 of file cmn_hash.h.

Referenced by IsAvailable(), and cmn_ParityHash::Update().

Definition at line 56 of file cmn_hash.h.

Referenced by cmn_ParityHash::cmn_ParityHash(), str(), and cmn_ParityHash::Update().


The documentation for this class was generated from the following files: