aboutsummaryrefslogtreecommitdiff
path: root/dep/ACE_wrappers/ace/Dynamic.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/ACE_wrappers/ace/Dynamic.h')
-rw-r--r--dep/ACE_wrappers/ace/Dynamic.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dep/ACE_wrappers/ace/Dynamic.h b/dep/ACE_wrappers/ace/Dynamic.h
index 48b10b87eaa..6906ebf1267 100644
--- a/dep/ACE_wrappers/ace/Dynamic.h
+++ b/dep/ACE_wrappers/ace/Dynamic.h
@@ -1,4 +1,5 @@
// -*- C++ -*-
+
//==========================================================================
/**
* @file Dynamic.h
@@ -9,14 +10,19 @@
* @author Irfan Pyarali.
*/
//==========================================================================
+
#ifndef ACE_DYNAMIC_H
#define ACE_DYNAMIC_H
#include /**/ "ace/pre.h"
+
#include /**/ "ace/ACE_export.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
/**
* @class ACE_Dynamic
*
@@ -31,19 +37,25 @@ public:
// = Initialization and termination method.
/// Constructor.
ACE_Dynamic (void);
+
/// Destructor.
~ACE_Dynamic (void);
+
/**
* Sets a flag that indicates that the object was dynamically
* created. This method is usually called in operator new and then
* checked and reset in the constructor.
*/
void set (void);
+
/// @c true if we were allocated dynamically, else @c false.
bool is_dynamic (void);
+
/// Resets state flag.
void reset (void);
+
static ACE_Dynamic *instance (void);
+
private:
/**
* Flag that indicates that the object was dynamically created. This
@@ -52,10 +64,13 @@ private:
*/
bool is_dynamic_;
};
+
ACE_END_VERSIONED_NAMESPACE_DECL
+
#if defined (__ACE_INLINE__)
#include "ace/Dynamic.inl"
#endif /* __ACE_INLINE__ */
+
#include /**/ "ace/post.h"
#endif /* ACE_DYNAMIC_H */