version 1.2, 2005/10/17 20:51:57
|
version 1.4, 2005/11/29 22:10:24
|
|
|
#ifndef _Pegasus_StringRep_h | #ifndef _Pegasus_StringRep_h |
#define _Pegasus_StringRep_h | #define _Pegasus_StringRep_h |
| |
#include <Pegasus/Common/IPC.h> |
#include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/AtomicInt.h> |
#include <new> | #include <new> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
inline void StringRep::unref(const StringRep* rep) | inline void StringRep::unref(const StringRep* rep) |
{ | { |
if (rep != &StringRep::_emptyRep && | if (rep != &StringRep::_emptyRep && |
((StringRep*)rep)->refs.DecAndTestIfZero()) |
((StringRep*)rep)->refs.decAndTestIfZero()) |
StringRep::free((StringRep*)rep); | StringRep::free((StringRep*)rep); |
} | } |
| |