Test for equality between hdbClass instances (this row has same columns and column settings as the operand)
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hdbClass::operator== | (hdbClass&,) |
Declared in file: hzDatabase.h
Defined in file : hdbClass.cpp
Function Logic:
Function body:
bool hdbClass::operator== (hdbClass& op)
{
// Test for equality between hdbClass instances (this row has same columns and column settings as the operand)
//
// Arguments: 1) op The operand data class
_hzfunc("hdbClass::operator==") ;
const hdbMember* pMA ; // Member pointer for this class
const hdbMember* pMB ; // Member pointer for other class
uint32_t nIndex ; // Member iterator
if (MbrCount() != op.MbrCount())
return false ;
for (nIndex = 0; nIndex < m_arrMembers.Count() ; nIndex++)
{
pMA = m_arrMembers[nIndex] ;
pMB = op.m_arrMembers[nIndex] ;
if (pMA != pMB)
return false ;
}
return true ;
}