Add statistics() method to split-list
[libcds.git] / cds / container / split_list_set_rcu.h
index 51d645833d34c0b92f4c85b318eca39788205160..14fe8c38767736159f1122a26d3a44d478c34ffa 100644 (file)
@@ -186,6 +186,7 @@ namespace cds { namespace container {
         /// Hash functor for \ref value_type and all its derivatives that you use
         typedef typename base_class::hash           hash;
         typedef typename base_class::item_counter   item_counter; ///< Item counter type
         /// Hash functor for \ref value_type and all its derivatives that you use
         typedef typename base_class::hash           hash;
         typedef typename base_class::item_counter   item_counter; ///< Item counter type
+        typedef typename base_class::stat           stat; ///< Internal statistics
 
         typedef typename base_class::rcu_lock      rcu_lock   ; ///< RCU scoped lock
         /// Group of \p extract_xxx functions require external locking if underlying ordered list requires that
 
         typedef typename base_class::rcu_lock      rcu_lock   ; ///< RCU scoped lock
         /// Group of \p extract_xxx functions require external locking if underlying ordered list requires that
@@ -780,6 +781,12 @@ namespace cds { namespace container {
         {
             return base_class::size();
         }
         {
             return base_class::size();
         }
+
+        /// Returns internal statistics
+        stat const& statistics() const
+        {
+            return base_class::statistics();
+        }
     };
 }}  // namespace cds::container
 
     };
 }}  // namespace cds::container