/[resiprocate]/branches/b-identity-0505/dum/Handle.hxx
ViewVC logotype

Diff of /branches/b-identity-0505/dum/Handle.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3089 by derek, Mon Jul 12 02:36:14 2004 UTC revision 3267 by jason, Tue Aug 17 23:50:49 2004 UTC
# Line 37  Line 37 
37        {        {
38           if (!mHam)           if (!mHam)
39           {           {
40                //assert(0);
41              throw HandleException("Reference to unitialized handle.", __FILE__, __LINE__);              throw HandleException("Reference to unitialized handle.", __FILE__, __LINE__);
42           }           }
43           return static_cast<T*>(mHam->getHandled(mId));           return static_cast<T*>(mHam->getHandled(mId));
# Line 58  Line 59 
59           return notValid;           return notValid;
60        }        }
61                
62          bool operator==(const Handle<T>& other)
63          {
64             return mId == other.mId;
65          }
66          
67    
68     protected:     protected:
69        Handle(HandleManager& ham, Handled* handled) : mHam(&ham), mId(mHam->create(this))        Handle(HandleManager& ham, Handled* handled) : mHam(&ham), mId(mHam->create(this))

Legend:
Removed from v.3089  
changed lines
  Added in v.3267

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27