Compute Library
 22.05
ObjectBase< T > Class Template Reference

Object base class for library objects. More...

#include <Acl.hpp>

Public Member Functions

 ~ObjectBase ()=default
 Destructor. More...
 
 ObjectBase (const ObjectBase< T > &)=default
 Copy constructor. More...
 
 ObjectBase (ObjectBase< T > &&)=default
 Move Constructor. More...
 
ObjectBase< T > & operator= (const ObjectBase< T > &)=default
 Copy assignment operator. More...
 
ObjectBase< T > & operator= (ObjectBase< T > &&)=default
 Move assignment operator. More...
 
void reset (T *val)
 Reset object value. More...
 
const T * get () const
 Access uderlying object. More...
 
T * get ()
 Access uderlying object. More...
 

Detailed Description

template<typename T>
class acl::detail::ObjectBase< T >

Object base class for library objects.

Class is defining basic common interface for all the library objects

Template Parameters
TObject type to be templated on

Definition at line 131 of file Acl.hpp.

Constructor & Destructor Documentation

◆ ~ObjectBase()

~ObjectBase ( )
default

Destructor.

◆ ObjectBase() [1/2]

ObjectBase ( const ObjectBase< T > &  )
default

Copy constructor.

◆ ObjectBase() [2/2]

ObjectBase ( ObjectBase< T > &&  )
default

Move Constructor.

Member Function Documentation

◆ get() [1/2]

const T* get ( ) const
inline

Access uderlying object.

Returns
Underlying object

Definition at line 156 of file Acl.hpp.

Referenced by Activation::Activation(), TensorPack::add(), acl::detail::operator==(), Queue::Queue(), Operator::run(), Tensor::Tensor(), TensorPack::TensorPack(), and arm_compute::test::validation::TEST_CASE().

157  {
158  return _object.get();
159  }

◆ get() [2/2]

T* get ( )
inline

Access uderlying object.

Returns
Underlying object

Definition at line 164 of file Acl.hpp.

165  {
166  return _object.get();
167  }

◆ operator=() [1/2]

ObjectBase<T>& operator= ( const ObjectBase< T > &  )
default

Copy assignment operator.

◆ operator=() [2/2]

ObjectBase<T>& operator= ( ObjectBase< T > &&  )
default

Move assignment operator.

◆ reset()

void reset ( T *  val)
inline

Reset object value.

Parameters
[in]valValue to set

Definition at line 148 of file Acl.hpp.

149  {
150  _object.reset(val, detail::ObjectDeleter<T *>::Destroy);
151  }

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