Desc. & Idea | Warnings | Methods | Atributes | Operators | Specials |
This class is intended as a member of global kernel info (GKI). It's a tool for storing incomming LKIs. It is in fact a matrix of size (number of processes)x(number of different IDs of LKI). You can store them, retrieve statistics about number of arrived LKI and their up-to-date status. You can retrieve special LKI or sequentialy retrieve all of them. This class is intended to be overriden if smarter behavior is required.
None.
Public:
TBag(uint inprcss,int* ipids,uint inkis,uint* iids)
TBag(BYTE** rawbytes,uint len,BOOL subclass=FALSE)
virtual ~TBag();
virtual char* Dump()
virtual uint GetSerSize(BOOL subclass=FALSE)
virtual uint Serialize(BYTE **rawbytes,BOOL subclass=FALSE)
virtual BOOL Store(uint id,int pid,TKernelInfo* ki)
virtual TKernelInfo* Get(uint id,int pid)
virtual TKernelInfo* GetFirst(uint* id=NULL,int* pid=NULL)
virtual TKernelInfo* GetNext(uint* id=NULL,int* pid=NULL)
virtual BOOL IsFull()
virtual void ClearAll()
virtual void Clear(uint id,int pid)
virtual uint GetArrived() (see attribute arrived)
void SetOwner(TGlobalKI& gki) (see attribute owner)
Protected:
Private:
Public:
int *pids
uint nprcss
uint nkis
uint *ids
TKernelInfo **kis
Protected:
uint arrived
uint current
TGlobalKI *owner
Private:
uint current
This attribute stores the current position in matrix during the sequential search by methods GetFirst(), GetNext().
TGlobalKI *owner
This attribute specify the global kernel info owning this TBag object.
Public:
Protected:
Private:
None.