Boost logo

Boost-Commit :

From: chintanraoh_at_[hidden]
Date: 2008-05-31 10:09:39


Author: chintanraoh
Date: 2008-05-31 10:09:39 EDT (Sat, 31 May 2008)
New Revision: 45972
URL: http://svn.boost.org/trac/boost/changeset/45972

Log:
contains a half done trie class and a simple test case file
Removed:
   sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/dsearch.hpp

Deleted: sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/dsearch.hpp
==============================================================================
--- sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/dsearch.hpp 2008-05-31 10:09:39 EDT (Sat, 31 May 2008)
+++ (empty file)
@@ -1,82 +0,0 @@
-// Copyright 2008 Chintan Rao H.
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-
-#ifndef BOOST_DSEARCH_DSEARCH_HPP
-#define BOOST_DSEARCH_DSEARCH_HPP
-
-namespace boost {
-namespace dsearch {
-
-/// The dsearch class does nothing.
-/** \ingroup group_nothing
- \param T The type on which dsearch does nothing.
- \warning This class does nothing.
- \todo Make this class do something.
- \bug This class does do something.
-
- Since dsearch does nothing, it is not very useful.
-*/
-template<typename T
-#ifndef DOXYGEN_DOCS_ONLY
- , typename Enable=void // maybe documentation doesn't need to know about this.
-#endif
->
-class dsearch
-{
-public:
- /// Default constructor.
- /** This constructor actually does something. It sets the internal
- counters to 0.
- */
- dsearch() : nothing_count(0), call_count(0) {}
-
- /// This function does nothing with the passed parameter.
- void nothing(T t)
- {
- nothing_count++;
- call_count++;
- }
-
- /// This function does nothing with the passed parameter a specified number of times.
- /** \param n Number of times nothing is done.
-
- This function is equivalent to calling nothing n times.
- */
- void nothing(T t, unsigned n)
- {
- call_count++;
- for (unsigned i=0; i<n; i++)
- nothing(t);
- call_count-=n;
- }
-
- /// This function can be used to determine how many times nothing has been done.
- /** \returns count of how many times nothing has been done.
- */
- int get_nothing_count()
- {
- return nothing_count;
- }
- /// This function can be used to determine how many calls have been made to the object.
- /** \returns count of how many times a method of this object has been called by the user.
- */
- int get_call_count()
- {
- return call_count;
- }
-protected:
- /// The number of times this object did nothing.
- int nothing_count;
-private:
- // Number of times the member function was called.
- int call_count;
-};
-
-} // namespace dsearch
-} // namespace boost
-
-#endif // BOOST_DSEARCH_DSEARCH_HPP
-


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk