GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4ObjectQueue Class Reference

Class containing a pointer queue for objects. More...

#include <TGo4ObjectQueue.h>

Inheritance diagram for TGo4ObjectQueue:

Public Member Functions

 TGo4ObjectQueue ()
 TGo4ObjectQueue ()
 TGo4ObjectQueue (const char *name)
 TGo4ObjectQueue (const char *name)
virtual ~TGo4ObjectQueue ()
virtual ~TGo4ObjectQueue ()
void AddObject (TObject *object, Bool_t clone=kFALSE)
 Add object pointer to queue.
void AddObject (TObject *object, Bool_t clone=kFALSE)
 Add object pointer to queue.
void AddObjectFromBuffer (TBuffer *buffer)
 Reconstruct a TObject queue entry from a given TBuffer pointer.
void AddObjectFromBuffer (TBuffer *buffer)
 Reconstruct a TObject queue entry from a given TBuffer pointer.
TObject * WaitObject ()
 Wait for object from queue.
TObject * WaitObject ()
 Wait for object from queue.
Public Member Functions inherited from TGo4Queue
 TGo4Queue (const char *name=nullptr)
 TGo4Queue (const char *name=nullptr)
virtual ~TGo4Queue ()
virtual ~TGo4Queue ()
void Clear (Option_t *opt="") override
void Clear (Option_t *opt="") override
Int_t GetEntries () const
Int_t GetEntries () const
Bool_t IsEmpty () const
Bool_t IsEmpty () const
void SetMaxEntries (Int_t max)
void SetMaxEntries (Int_t max)
virtual void Wake ()
virtual void Wake ()

Additional Inherited Members

Protected Member Functions inherited from TGo4Queue
void Add (TObject *ob)
void Add (TObject *ob)
TObject * Next ()
TObject * Next ()
TObject * Wait ()
TObject * Wait ()

Detailed Description

Class containing a pointer queue for objects.

Is able to add any object contained in a TBuffer into the queue using the root streamer

Definition at line 24 of file TGo4ObjectQueue.h.

Constructor & Destructor Documentation

◆ TGo4ObjectQueue() [1/4]

TGo4ObjectQueue::TGo4ObjectQueue ( )

Definition at line 19 of file TGo4ObjectQueue.cxx.

References TGo4Queue::TGo4Queue(), and GO4TRACE.

◆ TGo4ObjectQueue() [2/4]

TGo4ObjectQueue::TGo4ObjectQueue ( const char * name)

Definition at line 25 of file TGo4ObjectQueue.cxx.

References TGo4Queue::TGo4Queue(), and GO4TRACE.

◆ ~TGo4ObjectQueue() [1/2]

TGo4ObjectQueue::~TGo4ObjectQueue ( )
virtual

Definition at line 31 of file TGo4ObjectQueue.cxx.

References GO4TRACE.

◆ TGo4ObjectQueue() [3/4]

TGo4ObjectQueue::TGo4ObjectQueue ( )

◆ TGo4ObjectQueue() [4/4]

TGo4ObjectQueue::TGo4ObjectQueue ( const char * name)

◆ ~TGo4ObjectQueue() [2/2]

virtual TGo4ObjectQueue::~TGo4ObjectQueue ( )
virtual

Member Function Documentation

◆ AddObject() [1/2]

void TGo4ObjectQueue::AddObject ( TObject * object,
Bool_t clone = kFALSE )

Add object pointer to queue.

We Renamed the protected baseclass method to avoid user confusion.

Definition at line 42 of file TGo4ObjectQueue.cxx.

References TGo4Queue::Add(), and GO4TRACE.

Referenced by main(), and TGo4Task::SubmitLocalCommand().

◆ AddObject() [2/2]

void TGo4ObjectQueue::AddObject ( TObject * object,
Bool_t clone = kFALSE )

Add object pointer to queue.

We Renamed the protected baseclass method to avoid user confusion.

◆ AddObjectFromBuffer() [1/2]

void TGo4ObjectQueue::AddObjectFromBuffer ( TBuffer * buffer)

Reconstruct a TObject queue entry from a given TBuffer pointer.

To be used for streaming the receiving socket contents into the queue. Operation should be thread locked by the calling user.

Definition at line 54 of file TGo4ObjectQueue.cxx.

References TGo4Queue::Add(), and GO4TRACE.

Referenced by main().

◆ AddObjectFromBuffer() [2/2]

void TGo4ObjectQueue::AddObjectFromBuffer ( TBuffer * buffer)

Reconstruct a TObject queue entry from a given TBuffer pointer.

To be used for streaming the receiving socket contents into the queue. Operation should be thread locked by the calling user.

◆ WaitObject() [1/2]

TObject * TGo4ObjectQueue::WaitObject ( )

Wait for object from queue.

We Renamed the protected baseclass method to avoid user confusion.

Definition at line 36 of file TGo4ObjectQueue.cxx.

References GO4TRACE, and TGo4Queue::Wait().

Referenced by main(), and TGo4LocalCommandRunnable::Run().

◆ WaitObject() [2/2]

TObject * TGo4ObjectQueue::WaitObject ( )

Wait for object from queue.

We Renamed the protected baseclass method to avoid user confusion.


The documentation for this class was generated from the following files: