[ekiga/ds-gsettings3] RefLister: Added size() method.



commit 0d52ce4285858bffc9090af195f654c407625787
Author: Damien Sandras <dsandras beip be>
Date:   Sat Oct 5 16:43:30 2013 +0200

    RefLister: Added size() method.

 lib/engine/framework/reflister.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/framework/reflister.h b/lib/engine/framework/reflister.h
index 2a6bb40..fcfea1a 100644
--- a/lib/engine/framework/reflister.h
+++ b/lib/engine/framework/reflister.h
@@ -71,6 +71,8 @@ namespace Ekiga
 
     void remove_all_objects ();
 
+    int size () const;
+
     iterator begin ();
     iterator end ();
 
@@ -144,6 +146,13 @@ Ekiga::RefLister<ObjectType>::remove_all_objects ()
 }
 
 template<typename ObjectType>
+int
+Ekiga::RefLister<ObjectType>::size () const
+{
+  return objects.size ();
+}
+
+template<typename ObjectType>
 typename Ekiga::RefLister<ObjectType>::iterator
 Ekiga::RefLister<ObjectType>::begin ()
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]