From 44d94a1a9e863dea9a2c30349fd723b3b661ded1 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 28 Nov 2000 17:07:44 +0000 Subject: * Removed smart pointers * Removed global.h --- comm/MsgBuffer.cc | 8 ++------ comm/MsgBuffer.h | 14 ++++++-------- 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'comm') diff --git a/comm/MsgBuffer.cc b/comm/MsgBuffer.cc index f98d92c..225c764 100644 --- a/comm/MsgBuffer.cc +++ b/comm/MsgBuffer.cc @@ -3,10 +3,10 @@ * * by Michel Beaudouin-Lafon * - * Copyright 1990-1995 + * Copyright 1990-1997 * Laboratoire de Recherche en Informatique (LRI) * - * Messages, buffers + * Buffers for messages * * $Id$ * $CurLog$ @@ -43,10 +43,6 @@ When extracting data, the buffer may not contain enough bytes. We say that a ``get error'' has occurred and the buffer remembers it until it is modified by the functions \fun{Append} or \fun{More}, or by \fun{operator $<<$}. -The class \typ{^{pUchMsgBuffer}} implements smart pointers to buffers. -Smart pointers behave like pointers but they manage a reference count on the -pointed to objects for an automatic reclaim of dynamically allocated objects. - \fig{FIGURES/buffer}{Some operations on a buffer.} ?*/ diff --git a/comm/MsgBuffer.h b/comm/MsgBuffer.h index 869933b..442787e 100644 --- a/comm/MsgBuffer.h +++ b/comm/MsgBuffer.h @@ -3,10 +3,10 @@ * * by Michel Beaudouin-Lafon * - * Copyright 1990-1995 + * Copyright 1990-1997 * Laboratoire de Recherche en Informatique (LRI) * - * Messages, buffers + * Buffers for messages * * $Id$ * $CurLog$ @@ -16,18 +16,17 @@ #define Buffer_H_ #include "cplus_bugs.h" -#include "global.h" -#include "ccu/SmartPointer.h" +#include "ccu/bool.h" +#include "ccu/word.h" #include "IOS.h" class CcuString; class UchMessage; // Buffer is the buffer itself, End points after its last byte // Start and Stop limit its content -// UchMsgBuffer derives from CcuSmartData to be able to have smart pointers (pUchMsgBuffer) // a buffer grows and shrinks automatically // -class UchMsgBuffer : public CcuSmartData, public UchIOS { +class UchMsgBuffer : public UchIOS { protected: byte* Begin; byte* Start; @@ -102,6 +101,5 @@ public: friend UchMsgBuffer& DbgPrint (UchMsgBuffer&, int); }; -PointerClass (pUchMsgBuffer, UchMsgBuffer) - #endif /* Buffer_H_ */ + -- cgit v1.1