summaryrefslogtreecommitdiff
path: root/ace/Based_Pointer_Repository.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-01 22:17:39 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-01 22:17:39 +0000
commit53284e215e3d3351a7d7e9c4b68f14b427fb4377 (patch)
tree97236ece363cff48fd287c780db4290da39b02cb /ace/Based_Pointer_Repository.h
parent7b7c52ad2abd228138ba1a948d5e28bf6dc3b880 (diff)
downloadATCD-53284e215e3d3351a7d7e9c4b68f14b427fb4377.tar.gz
ChangeLogTag:Wed Nov 1 14:11:48 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'ace/Based_Pointer_Repository.h')
-rw-r--r--ace/Based_Pointer_Repository.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/ace/Based_Pointer_Repository.h b/ace/Based_Pointer_Repository.h
index 7873daaacd7..2b14c52fa9f 100644
--- a/ace/Based_Pointer_Repository.h
+++ b/ace/Based_Pointer_Repository.h
@@ -1,19 +1,16 @@
/* -*- C++ -*- */
-// $Id$
-// ============================================================================
-//
-// = LIBRARY
-// ace
-//
-// = FILENAME
-// Based_Pointer_Repository.h
-//
-// = AUTHOR
-// Dietrich Quehl <Dietrich.Quehl@med.siemens.de> and
-// Douglas C. Schmidt <schmidt@.cs.wustl.edu>
-//
-// ============================================================================
+//=============================================================================
+/**
+ * @file Based_Pointer_Repository.h
+ *
+ * $Id$
+ *
+ * @author Dietrich Quehl <Dietrich.Quehl@med.siemens.de>
+ * @author Douglas C. Schmidt <schmidt@.cs.wustl.edu>
+ */
+//=============================================================================
+
#ifndef ACE_BASED_POINTER_REPOSITORY_H
#define ACE_BASED_POINTER_REPOSITORY_H
@@ -24,11 +21,14 @@
// Forward decl., using the "Cheshire Cat" technique.
class ACE_Based_Pointer_Repository_Rep;
+/**
+ * @class ACE_Based_Pointer_Repository
+ *
+ * @brief Maps pointers to the base address of the region to which each
+ * pointer belongs.
+ */
class ACE_Export ACE_Based_Pointer_Repository
{
- // = TITLE
- // Maps pointers to the base address of the region to which each
- // pointer belongs.
public:
// = Use <ACE_Null_Mutex> to allow locking while iterating.
@@ -37,30 +37,32 @@ public:
~ACE_Based_Pointer_Repository (void);
// = Search structure methods.
- int find (void *addr,
+ /**
+ * Return the appropriate <base_addr> region that contains <addr>.
+ * Returns 1 on success and 0 if the <addr> isn't contained in any
+ * <base_addr> region.
+ */
+ int find (void *addr,
void *&base_addr);
- // Return the appropriate <base_addr> region that contains <addr>.
- // Returns 1 on success and 0 if the <addr> isn't contained in any
- // <base_addr> region.
+ /// Bind a new entry to the repository or update the size of an
+ /// existing entry. Returns 0 on success and -1 on failure.
int bind (void *addr,
size_t size);
- // Bind a new entry to the repository or update the size of an
- // existing entry. Returns 0 on success and -1 on failure.
+ /// Unbind from the repository the <base_addr> that <addr> is
+ /// contained within.
int unbind (void *addr);
- // Unbind from the repository the <base_addr> that <addr> is
- // contained within.
private:
+ /// Use the "Cheshire-Cat" technique to hide the implementation in
+ /// order to avoid circular #include dependencies.
ACE_Based_Pointer_Repository_Rep *rep_;
- // Use the "Cheshire-Cat" technique to hide the implementation in
- // order to avoid circular #include dependencies.
};
#include "ace/Singleton.h"
-// Provide a Singleton access point to the based pointer repository.
+/// Provide a Singleton access point to the based pointer repository.
typedef ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>
ACE_BASED_POINTER_REPOSITORY;