Files
harbour-core/harbour/samples/cccppc/tbuffer.cls
1999-11-09 01:37:27 +00:00

53 lines
1.2 KiB
OpenEdge ABL
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// $Id$
//
//*******************************************************************
// tbuffer.cls: Ktir nyŁ buffer
// 1999, Csisz r Levente
// Mveletek: get,unget,put,unput
// A get s a put egy fifo t rat val˘sˇt meg.
// A stringeket ”sszevonja.
// Nil-t nem t rol a bufferben.
class TBUFFER OBJECT
attrib buffer // {{tipus,tartalom[,szamlalo]},...}
nmethod get()
// Kiveszi s visszaadja a buffer els“ elemt.
// Ha a buffer <20>res, akkor nil-t ad.
nmethod unget(item)
// Az itemet visszateszi a puffer elejre.
// Ha az item nil, akkor nem csin l semmit.
nmethod put(item)
// Az itemet beteszi a puffer vgre.
// Ha az item nil, akkor nem csin l semmit.
nmethod unput()
// Kiveszi s visszaadja a buffer utols˘ elemt.
// Ha a buffer <20>res, akkor nil-t ad.
nmethod clear()
// Ki<4B>rˇti a puffert.
nmethod bItemNumber()
// H ny elem a buffer. Az ”sszevont stringeket egynek sz molja.
nmethod getBItem(i)
// Az i. buffer elemet adja.
nmethod appendBuffer(aTBuffer)
// Az aTBuffer tartalm t hozz appendeli a this-hez.
rmethod oinit()
// metaclass
// rmethod oinitclass()