Compute Library
 21.11
IQueue Class Referenceabstract

Base class specifying the queue interface. More...

#include <IQueue.h>

Collaboration diagram for IQueue:
[legend]

Public Member Functions

 IQueue (IContext *ctx)
 Explict Operator Constructor. More...
 
virtual ~IQueue ()
 Destructor. More...
 
bool is_valid () const
 Checks if a queue is valid. More...
 
virtual StatusCode finish ()=0
 

Additional Inherited Members

- Data Fields inherited from AclQueue_
arm_compute::detail::Header header { arm_compute::detail::ObjectType::Queue, nullptr }
 

Detailed Description

Base class specifying the queue interface.

Definition at line 41 of file IQueue.h.

Constructor & Destructor Documentation

◆ IQueue()

IQueue ( IContext ctx)
inlineexplicit

Explict Operator Constructor.

Parameters
[in]ctxContext to be used by the operator

Definition at line 48 of file IQueue.h.

References Header::ctx, AclQueue_::header, and IContext::inc_ref().

49  {
50  this->header.ctx = ctx;
51  this->header.ctx->inc_ref();
52  }
arm_compute::detail::Header header
Definition: IQueue.h:31
void inc_ref() const
Increment context refcount.
Definition: IContext.h:71

◆ ~IQueue()

virtual ~IQueue ( )
inlinevirtual

Destructor.

Definition at line 54 of file IQueue.h.

References Header::ctx, IContext::dec_ref(), AclQueue_::header, and Header::type.

55  {
56  this->header.ctx->dec_ref();
58  };
arm_compute::detail::Header header
Definition: IQueue.h:31
void dec_ref() const
Decrement context refcount.
Definition: IContext.h:76

Member Function Documentation

◆ finish()

virtual StatusCode finish ( )
pure virtual

Implemented in ClQueue, and CpuQueue.

◆ is_valid()

bool is_valid ( ) const
inline

Checks if a queue is valid.

Returns
True if successful otherwise false

Definition at line 63 of file IQueue.h.

References AclQueue_::header, and Header::type.

Referenced by arm_compute::detail::validate_internal_queue().

64  {
65  return this->header.type == detail::ObjectType::Queue;
66  };
arm_compute::detail::Header header
Definition: IQueue.h:31

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