aboutsummaryrefslogtreecommitdiff
path: root/dep/acelite/ace/Functor.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/acelite/ace/Functor.h')
-rw-r--r--dep/acelite/ace/Functor.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/dep/acelite/ace/Functor.h b/dep/acelite/ace/Functor.h
index cb01630e2fc..0241dc7d8fe 100644
--- a/dep/acelite/ace/Functor.h
+++ b/dep/acelite/ace/Functor.h
@@ -4,7 +4,7 @@
/**
* @file Functor.h
*
- * $Id: Functor.h 92069 2010-09-28 11:38:59Z johnnyw $
+ * $Id: Functor.h 95761 2012-05-15 18:23:04Z johnnyw $
*
* Non-templatized classes and class template specializations for
* implementing function objects that are used in various places
@@ -77,6 +77,23 @@ public:
virtual int execute (void *arg = 0) = 0;
};
+/**
+ * @class ACE_Noop_Command
+ *
+ * Implements a ACE_Command_Base with an empty execute() body.
+ */
+
+class ACE_Export ACE_Noop_Command
+ : public ACE_Command_Base
+{
+public:
+ /// Constructor
+ ACE_Noop_Command();
+
+ /// Implement the empty execute() member function
+ virtual int execute(void*);
+};
+
////////////////////////////////////////////////////////////
// STL-style Functor Classes and Template Specializations //
////////////////////////////////////////////////////////////
@@ -187,7 +204,7 @@ public:
unsigned long operator () (unsigned long t) const;
};
-#if !defined (ACE_LACKS_LONGLONG_T) && (ACE_SIZEOF_LONG < 8)
+#if (ACE_SIZEOF_LONG < 8)
/**
* @brief Function object for hashing a signed 64-bit number
*/
@@ -198,10 +215,8 @@ public:
/// Simply returns t
unsigned long operator () (ACE_INT64 t) const;
};
-#endif /* !ACE_LACKS_LONGLONG_T && ACE_SIZEOF_LONG < 8 */
+#endif /* ACE_SIZEOF_LONG < 8 */
-// We can do this even if ACE_LACKS_UNSIGNEDLONGLONG_T because there's an
-// emulation for it in ACE_U_LongLong.
#if (ACE_SIZEOF_LONG < 8)
/**
* @brief Function object for hashing an unsigned 64-bit number