//++ ------------------------------------------------------------------------------------
// Details: Move that object to *this object.
// Type:    Method.
// Args:    vrwOther    - (RW) The object to copy from.
// Return:  MIstatus::success - Functional succeeded.
//          MIstatus::failure - Functional failed.
// Throws:  None.
//--
bool
CMICmnLLDBDebugSessionInfoVarObj::MoveOther(CMICmnLLDBDebugSessionInfoVarObj &vrwOther)
{
    // Check for self-assignment
    if (this == &vrwOther)
        return MIstatus::success;

    CopyOther(vrwOther);
    vrwOther.m_eVarFormat = eVarFormat_Natural;
    vrwOther.m_eVarType = eVarType_Internal;
    vrwOther.m_strName.clear();
    vrwOther.m_SBValue.Clear();
    vrwOther.m_strNameReal.clear();
    vrwOther.m_strFormattedValue.clear();
    vrwOther.m_strVarObjParentName.clear();

    return MIstatus::success;
}
//++ ------------------------------------------------------------------------------------
// Details:	CMICmnLLDBDebugSessionInfoVarObj assignment opertator.
// Type:	Method.
// Args:	vrOther	- (R) The object to copy from.
// Return:	CMICmnLLDBDebugSessionInfoVarObj & - Updated *this object.
// Throws:	None.
//--
CMICmnLLDBDebugSessionInfoVarObj & CMICmnLLDBDebugSessionInfoVarObj::operator= ( const CMICmnLLDBDebugSessionInfoVarObj & vrOther )
{
	CopyOther( vrOther );

	return *this;
}
//++ ------------------------------------------------------------------------------------
// Details:	CMICmnLLDBDebugSessionInfoVarObj copy constructor.
// Type:	Method.
// Args:	vrOther	- (R) The object to copy from.
// Return:	None.
// Throws:	None.
//--
CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj( CMICmnLLDBDebugSessionInfoVarObj & vrOther )
{
	CopyOther( vrOther );
}
Exemple #4
0
StrVecCont::StrVecCont(const StrVecCont &other):m_vecstrings{}
{
    CopyOther(other);
}
Exemple #5
0
StrVecCont& StrVecCont::operator= (const StrVecCont &other){
    if (this == &other) return *this;
    CopyOther(other);
    return *this;
}