summaryrefslogtreecommitdiff
path: root/ace/SString.h
diff options
context:
space:
mode:
authormarina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-24 02:35:10 +0000
committermarina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-24 02:35:10 +0000
commit102c16fd7790625e10a8eec295088d95cedd78fb (patch)
tree5dc2b3441beadaf02da7f3662fad6bd0f1574b92 /ace/SString.h
parent5e0be478de831bccecec19ea100689f3d25fa49b (diff)
downloadATCD-102c16fd7790625e10a8eec295088d95cedd78fb.tar.gz
Updated ACE_CString to include a private member <buf_len_>
Diffstat (limited to 'ace/SString.h')
-rw-r--r--ace/SString.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/SString.h b/ace/SString.h
index 83182433516..45ec9a08c76 100644
--- a/ace/SString.h
+++ b/ace/SString.h
@@ -33,9 +33,7 @@ class ACE_Export ACE_CString
//
// = DESCRIPTION
// This is a place holder until all compilers implement the
- // ANSI/ISO C++ standard String class. Note that we need to use
- // this class since the ACE ACE_Map_Manager requires an object
- // that supports the operator == and operator !=. This class uses
+ // ANSI/ISO C++ standard String class. This class uses
// an ACE_Allocator to allocate memory. The user can make this a
// persistant class by providing an ACE_Allocator with a
// persistable memory pool. NOTE: if an instance of this class is
@@ -170,7 +168,11 @@ private:
// Pointer to a memory allocator.
size_t len_;
- // Length of the ACE_CString (not counting the trailing '\0').
+ // Length of the ACE_CString data (not counting the trailing '\0').
+
+ size_t buf_len_;
+ // Length of the ACE_CString data buffer. Keeping track of the
+ // length allows to avoid unnecessary dynamic allocations.
char *rep_;
// Pointer to data.