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

Diff for /pegasus/src/Pegasus/Common/List.h between version 1.4 and 1.5

version 1.4, 2006/11/10 18:14:58 version 1.5, 2007/02/13 19:25:53
Line 77 
Line 77 
  
     void clear();     void clear();
  
     size_t size() const { return _size; }      Uint32 size() const { return _size; }
  
     size_t empty() const { return _size == 0; }      Boolean empty() const { return _size == 0; }
  
     Linkable* front() { return _front; }     Linkable* front() { return _front; }
  
Line 123 
Line 123 
     Magic<0x6456FD0A> _magic;     Magic<0x6456FD0A> _magic;
     Linkable* _front;     Linkable* _front;
     Linkable* _back;     Linkable* _back;
     size_t _size;      Uint32 _size;
     void (*_destructor)(Linkable*);     void (*_destructor)(Linkable*);
 }; };
  
Line 314 
Line 314 
  
     /** Returns the number of elements in the list.     /** Returns the number of elements in the list.
     */     */
     size_t size() const      Uint32 size() const
     {     {
         AutoLock al(*this);         AutoLock al(*this);
         return _rep.size();         return _rep.size();
Line 322 
Line 322 
  
     /** Returns true if the list is empty (i.e., has zero elements).     /** Returns true if the list is empty (i.e., has zero elements).
     */     */
     size_t is_empty() const      Boolean is_empty() const
     {     {
         AutoLock al(*this);         AutoLock al(*this);
         return _rep.empty();         return _rep.empty();


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2