summaryrefslogtreecommitdiff
path: root/TAO/tao/MProfile.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 01:09:35 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 01:09:35 +0000
commitdd162e966e10861b77144645a3ff7268c90178d1 (patch)
tree9e82496ded962b824ff037ee5e1bb355bf04fdda /TAO/tao/MProfile.h
parent35e1925263b2c147b1e34673618b149cf1469359 (diff)
downloadATCD-dd162e966e10861b77144645a3ff7268c90178d1.tar.gz
ChangeLogTag:Thu Mar 11 19:07:20 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/MProfile.h')
-rw-r--r--TAO/tao/MProfile.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/TAO/tao/MProfile.h b/TAO/tao/MProfile.h
index f96bced1cfa..4f44e2c43d7 100644
--- a/TAO/tao/MProfile.h
+++ b/TAO/tao/MProfile.h
@@ -24,18 +24,18 @@
class TAO_Profile;
typedef TAO_Profile *TAO_Profile_ptr;
-typedef CORBA::ULong TAO_PHandle;
+typedef CORBA::ULong TAO_PHandle;
-class TAO_Export TAO_MProfile
+class TAO_Export TAO_MProfile
{
// = TITLE
// This class implements the basic interface for supporting
// multiple profiles.
- //
+ //
// = DESCRIPTION
// Multiple profiles can be treated either as a circular queue or
// a linear array of profiles.
- //
+ //
// It is assumed that locking will only be required when a profile
// list is associated with a STUB_Object. Thus when the
// STUB_Object accepts ownership of an MProfile it also assumes
@@ -45,7 +45,7 @@ public:
TAO_MProfile (CORBA::ULong sz);
TAO_MProfile (TAO_MProfile *mprofiles);
- // **NOTE: IF mprofiles->last_ > 0, THEN this->size_ will be set to
+ // **NOTE: IF mprofiles->last_ > 0, THEN this->size_ will be set to
// mprofiles->last_. Otherwise this->size_ - mprofiles->size_.
// Furthermore, current_ is set back to 0! i.e. rewound.
// The reference count on any profiles in mprofiles is increment
@@ -83,9 +83,13 @@ public:
TAO_PHandle get_current_handle (void);
// Returns the index for the current profile.
- CORBA::ULong profile_count (void);
+ CORBA::ULong profile_count (void) const;
// Returns the number of profiles stored in the list (last_).
+ const TAO_Profile* get_profile (CORBA::ULong index) const;
+ // Return the profile at position <index>.
+ // If <index> is out of range it returns 0.
+
void rewind (void);
// Sets the current index back to 0.
@@ -102,7 +106,7 @@ public:
// forwarded This object is the set of forwarding profiles.
TAO_MProfile *forward_from (void);
- // Returns a pointer to the profile which was forwarded.
+ // Returns a pointer to the profile which was forwarded.
CORBA::Boolean is_equivalent (TAO_MProfile *first,
TAO_MProfile *second,