(file) Return to CIMQualifier.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMQualifier.cpp between version 1.30 and 1.33

version 1.30, 2007/09/03 11:27:02 version 1.33, 2008/10/22 08:19:40
Line 53 
Line 53 
  
 CIMQualifier::CIMQualifier(const CIMQualifier& x) CIMQualifier::CIMQualifier(const CIMQualifier& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMQualifier::CIMQualifier( CIMQualifier::CIMQualifier(
Line 72 
Line 74 
  
 CIMQualifier::~CIMQualifier() CIMQualifier::~CIMQualifier()
 { {
     Dec(_rep);      if(_rep)
          _rep->Dec();
 } }
  
 CIMQualifier& CIMQualifier::operator=(const CIMQualifier& x) CIMQualifier& CIMQualifier::operator=(const CIMQualifier& x)
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
  
     return *this;     return *this;
Line 140 
Line 146 
     return _rep->getFlavor();     return _rep->getFlavor();
 } }
  
 const Uint32 CIMQualifier::getPropagated() const  Uint32 CIMQualifier::getPropagated() const
 { {
     CheckRep(_rep);     CheckRep(_rep);
     return (_rep->getPropagated()) ? 1 : 0;     return (_rep->getPropagated()) ? 1 : 0;
Line 169 
Line 175 
     return CIMQualifier(_rep->clone());     return CIMQualifier(_rep->clone());
 } }
  
 void CIMQualifier::_checkRep() const  
 {  
     if (!_rep)  
         throw UninitializedObjectException();  
 }  
   
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
Line 189 
Line 189 
  
 CIMConstQualifier::CIMConstQualifier(const CIMConstQualifier& x) CIMConstQualifier::CIMConstQualifier(const CIMConstQualifier& x)
 { {
     Inc(_rep = x._rep);         _rep = x._rep;
          if (_rep)
              _rep->Inc();
 } }
  
 CIMConstQualifier::CIMConstQualifier(const CIMQualifier& x) CIMConstQualifier::CIMConstQualifier(const CIMQualifier& x)
 { {
     Inc(_rep = x._rep);         _rep = x._rep;
          if (_rep)
              _rep->Inc();
 } }
  
 CIMConstQualifier::CIMConstQualifier( CIMConstQualifier::CIMConstQualifier(
Line 208 
Line 212 
  
 CIMConstQualifier::~CIMConstQualifier() CIMConstQualifier::~CIMConstQualifier()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 CIMConstQualifier& CIMConstQualifier::operator=(const CIMConstQualifier& x) CIMConstQualifier& CIMConstQualifier::operator=(const CIMConstQualifier& x)
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
  
     return *this;     return *this;
Line 226 
Line 234 
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
  
     return *this;     return *this;
Line 263 
Line 274 
     return _rep->getFlavor();     return _rep->getFlavor();
 } }
  
 const Uint32 CIMConstQualifier::getPropagated() const  Uint32 CIMConstQualifier::getPropagated() const
 { {
     CheckRep(_rep);     CheckRep(_rep);
     return (_rep->getPropagated()) ? 1 : 0;     return (_rep->getPropagated()) ? 1 : 0;
Line 286 
Line 297 
     return CIMQualifier(_rep->clone());     return CIMQualifier(_rep->clone());
 } }
  
 void CIMConstQualifier::_checkRep() const  
 {  
     if (!_rep)  
         throw UninitializedObjectException();  
 }  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.30  
changed lines
  Added in v.1.33

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2