X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=documentation%2Fclassarm__compute_1_1test_1_1_c_l_lut_accessor.xhtml;h=bfd48fc62d93895c4531764cb10947f45e34a6de;hb=b3a371bc429d2ba45e56baaf239d8200c2662a74;hp=abaeafd47f6056346abf967cd2ab072eb311a48b;hpb=f45d5a9be1bf4d315a227b80617582b8eb4214d2;p=platform%2Fupstream%2Farmcl.git diff --git a/documentation/classarm__compute_1_1test_1_1_c_l_lut_accessor.xhtml b/documentation/classarm__compute_1_1test_1_1_c_l_lut_accessor.xhtml index abaeafd..bfd48fc 100644 --- a/documentation/classarm__compute_1_1test_1_1_c_l_lut_accessor.xhtml +++ b/documentation/classarm__compute_1_1test_1_1_c_l_lut_accessor.xhtml @@ -40,7 +40,7 @@
Compute Library -  18.01 +  18.05
@@ -139,14 +139,19 @@ Public Member Functions  Create an accessor for the given CLLut. More...
   ~CLLutAccessor () + Default destructor. More...
   CLLutAccessor (const CLLutAccessor &)=delete + Prevent instances of this class from being copy constructed. More...
  CLLutAccessoroperator= (const CLLutAccessor &)=delete + Prevent instances of this class from being copied. More...
   CLLutAccessor (CLLutAccessor &&)=default + Allow instances of this class to be move constructed. More...
  CLLutAccessoroperator= (CLLutAccessor &&)=default + Allow instance of this class to be moved. More...
  int num_elements () const override  Number of elements of the Lut. More...
@@ -166,6 +171,7 @@ Public Member Functions Additional Inherited Members - Public Types inherited from ILutAccessor< T > using value_type = T + Lut value type. More...
 

Detailed Description

@@ -204,7 +210,7 @@ class arm_compute::test::CLLutAccessor< T >

References CLLut::map().

-

Referenced by CLLutAccessor< T >::~CLLutAccessor().

+

Referenced by CLLutAccessor< T >::~CLLutAccessor().

43  : _lut{ lut }
44  {
45  _lut.map(true);
46  }
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
@@ -230,10 +236,12 @@ class arm_compute::test::CLLutAccessor< T >
-

Definition at line 47 of file CLLutAccessor.h.

+

Default destructor.

+ +

Definition at line 48 of file CLLutAccessor.h.

References CLLutAccessor< T >::CLLutAccessor(), CLLutAccessor< T >::operator=(), and CLLut::unmap().

-
48  {
49  _lut.unmap();
50  }
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
+
49  {
50  _lut.unmap();
51  }
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
@@ -259,6 +267,8 @@ class arm_compute::test::CLLutAccessor< T >
+

Prevent instances of this class from being copy constructed.

+
@@ -283,6 +293,8 @@ class arm_compute::test::CLLutAccessor< T >
+

Allow instances of this class to be move constructed.

+

Member Function Documentation

@@ -308,15 +320,16 @@ class arm_compute::test::CLLutAccessor< T >

Number of elements of the Lut.

+
Returns
the number of elements.

Implements ILutAccessor< T >.

-

Definition at line 57 of file CLLutAccessor.h.

+

Definition at line 62 of file CLLutAccessor.h.

References CLLut::num_elements().

-

Referenced by CLLutAccessor< T >::operator[]().

-
58  {
59  return _lut.num_elements();
60  }
size_t num_elements() const override
Returns the total number of elements in the LUT.
+

Referenced by CLLutAccessor< T >::operator[]().

+
63  {
64  return _lut.num_elements();
65  }
size_t num_elements() const override
Returns the total number of elements in the LUT.
@@ -342,7 +355,9 @@ class arm_compute::test::CLLutAccessor< T >
-

Referenced by CLLutAccessor< T >::~CLLutAccessor().

+

Prevent instances of this class from being copied.

+ +

Referenced by CLLutAccessor< T >::~CLLutAccessor().

@@ -368,6 +383,8 @@ class arm_compute::test::CLLutAccessor< T >
+

Allow instance of this class to be moved.

+
@@ -403,12 +420,12 @@ class arm_compute::test::CLLutAccessor< T >

Implements ILutAccessor< T >.

-

Definition at line 62 of file CLLutAccessor.h.

+

Definition at line 67 of file CLLutAccessor.h.

-

References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().

-
63  {
64  auto lut = reinterpret_cast<T *>(_lut.buffer());
65  int32_t real_index = _lut.index_offset() + static_cast<int32_t>(input_value);
66 
67  if(0 <= real_index && real_index < num_elements())
68  {
69  return lut[real_index];
70  }
71  ARM_COMPUTE_ERROR("Error index not in range.");
72  }
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
-
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Definition: Error.h:238
-
int num_elements() const override
Number of elements of the Lut.
Definition: CLLutAccessor.h:57
+

References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().

+
68  {
69  auto lut = reinterpret_cast<T *>(_lut.buffer());
70  int32_t real_index = _lut.index_offset() + static_cast<int32_t>(input_value);
71 
72  if(0 <= real_index && real_index < num_elements())
73  {
74  return lut[real_index];
75  }
76  ARM_COMPUTE_ERROR("Error index not in range.");
77  }
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Definition: Error.h:260
+
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
+
int num_elements() const override
Number of elements of the Lut.
Definition: CLLutAccessor.h:62
uint8_t * buffer() const override
Returns a pointer to the start of the LUT.
@@ -446,12 +463,12 @@ class arm_compute::test::CLLutAccessor< T >

Implements ILutAccessor< T >.

-

Definition at line 74 of file CLLutAccessor.h.

+

Definition at line 79 of file CLLutAccessor.h.

-

References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().

-
75  {
76  auto lut = reinterpret_cast<T *>(_lut.buffer());
77  int32_t real_index = _lut.index_offset() + static_cast<int32_t>(input_value);
78 
79  if(0 <= real_index && real_index < num_elements())
80  {
81  return lut[real_index];
82  }
83  ARM_COMPUTE_ERROR("Error index not in range.");
84  }
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
-
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Definition: Error.h:238
-
int num_elements() const override
Number of elements of the Lut.
Definition: CLLutAccessor.h:57
+

References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().

+
80  {
81  auto lut = reinterpret_cast<T *>(_lut.buffer());
82  int32_t real_index = _lut.index_offset() + static_cast<int32_t>(input_value);
83 
84  if(0 <= real_index && real_index < num_elements())
85  {
86  return lut[real_index];
87  }
88  ARM_COMPUTE_ERROR("Error index not in range.");
89  }
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Definition: Error.h:260
+
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
+
int num_elements() const override
Number of elements of the Lut.
Definition: CLLutAccessor.h:62
uint8_t * buffer() const override
Returns a pointer to the start of the LUT.
@@ -465,7 +482,7 @@ class arm_compute::test::CLLutAccessor< T >