Makes this chain equal to the supplied chain operand. Any pre-existing contents are disregarded.
| Return Type | Function name | Arguments |
|---|---|---|
| hzChain& | hzChain::operator= | (hzChain&,) |
Declared in file: hzChain.h
Defined in file : hzChain.cpp
Function Logic:
Function body:
hzChain& hzChain::operator= (hzChain& op)
{
// Makes this chain equal to the supplied chain operand. Any pre-existing contents are disregarded.
//
// Arguments: 1) op The supplied chain
//
// Returns: Reference to this chain
_hzfunc("hzChain::operator=(hzChain)") ;
Clear() ;
if (op.mx)
{
if (_hzGlobal_MT)
__sync_add_and_fetch(&(op.mx->m_copy), 1);
else
op.mx->m_copy++ ;
}
mx = op.mx ;
return *this ;
}