#include <SString.h>
Public Methods | |
| ACE_EXPLICIT | ACE_Auto_String_Free (char *p=0) |
| ACE_Auto_String_Free (ACE_Auto_String_Free &rhs) | |
| ACE_Auto_String_Free & | operator= (ACE_Auto_String_Free &rhs) |
| ~ACE_Auto_String_Free (void) | |
| char * | operator * () const |
| char | operator[] (int i) const |
| char * | get (void) const |
| char * | release (void) |
| void | reset (char *p=0) |
Private Attributes | |
| char * | p_ |
Keeps a pointer to a string and deallocates it (using <ACE_OS::free>) on its destructor. If you need to delete using "delete[]" the ACE_Auto_Array_Ptr<char*> is your choice. The class plays the same role as auto_ptr<>
Definition at line 461 of file SString.h.
|
|
Definition at line 223 of file SString.i.
00224 : p_ (p) 00225 { 00226 } |
|
|
Definition at line 229 of file SString.i.
|
|
|
Definition at line 255 of file SString.i. References reset.
00256 {
00257 this->reset (0);
00258 }
|
|
|
Definition at line 273 of file SString.i. References p_.
00274 {
00275 return this->p_;
00276 }
|
|
|
Definition at line 261 of file SString.i. References p_.
00262 {
00263 return this->p_;
00264 }
|
|
|
Definition at line 244 of file SString.i.
|
|
|
Definition at line 267 of file SString.i. References p_.
00268 {
00269 return this->p_[i];
00270 }
|
|
|
Definition at line 279 of file SString.i. References p_.
|
|
|
Definition at line 236 of file SString.i. References ACE_OS_Memory::free, and p_. Referenced by operator=, and ~ACE_Auto_String_Free.
00237 {
00238 if (this->p_ != 0)
00239 ACE_OS::free (this->p_);
00240 this->p_ = p;
00241 }
|
|
|
Definition at line 476 of file SString.h. Referenced by get, operator *, operator=, operator[], release, and reset. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002