From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/classarmnn_1_1_ref_memory_manager.xhtml | 353 ++++++++++++++++++++++++++ 1 file changed, 353 insertions(+) create mode 100644 21.02/classarmnn_1_1_ref_memory_manager.xhtml (limited to '21.02/classarmnn_1_1_ref_memory_manager.xhtml') diff --git a/21.02/classarmnn_1_1_ref_memory_manager.xhtml b/21.02/classarmnn_1_1_ref_memory_manager.xhtml new file mode 100644 index 0000000000..b0c4671632 --- /dev/null +++ b/21.02/classarmnn_1_1_ref_memory_manager.xhtml @@ -0,0 +1,353 @@ + + + + + + + + + + + + + +ArmNN: RefMemoryManager Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
RefMemoryManager Class Reference
+
+
+ +

#include <RefMemoryManager.hpp>

+
+Inheritance diagram for RefMemoryManager:
+
+
+ + +IMemoryManager + +
+ + + + +

+Classes

class  Pool
 
+ + + + + + + + + + + + + + + + + + +

+Public Member Functions

 RefMemoryManager ()
 
virtual ~RefMemoryManager ()
 
PoolManage (unsigned int numBytes)
 
void Allocate (Pool *pool)
 
void * GetPointer (Pool *pool)
 
void Acquire () override
 
void Release () override
 
- Public Member Functions inherited from IMemoryManager
virtual ~IMemoryManager ()
 
+ + + + +

+Additional Inherited Members

- Protected Member Functions inherited from IMemoryManager
 IMemoryManager ()
 
+

Detailed Description

+
+

Definition at line 16 of file RefMemoryManager.hpp.

+

Constructor & Destructor Documentation

+ +

◆ RefMemoryManager()

+ +
+
+ + + + + + + +
RefMemoryManager ()
+
+ +

Definition at line 14 of file RefMemoryManager.cpp.

+
15 {}
+
+
+ +

◆ ~RefMemoryManager()

+ +
+
+ + + + + +
+ + + + + + + +
~RefMemoryManager ()
+
+virtual
+
+ +

Definition at line 17 of file RefMemoryManager.cpp.

+
18 {}
+
+
+

Member Function Documentation

+ +

◆ Acquire()

+ +
+
+ + + + + +
+ + + + + + + +
void Acquire ()
+
+overridevirtual
+
+ +

Implements IMemoryManager.

+ +

Definition at line 47 of file RefMemoryManager.cpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
48 {
49  for (Pool &pool: m_Pools)
50  {
51  pool.Acquire();
52  }
53 }
+
+
+
+ +

◆ Allocate()

+ +
+
+ + + + + + + + +
void Allocate (RefMemoryManager::Poolpool)
+
+ +

Definition at line 36 of file RefMemoryManager.cpp.

+ +

References ARMNN_ASSERT.

+
37 {
38  ARMNN_ASSERT(pool);
39  m_FreePools.push_back(pool);
40 }
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
+
+
+
+ +

◆ GetPointer()

+ +
+
+ + + + + + + + +
void * GetPointer (RefMemoryManager::Poolpool)
+
+ +

Definition at line 42 of file RefMemoryManager.cpp.

+ +

References RefMemoryManager::Pool::GetPointer().

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
43 {
44  return pool->GetPointer();
45 }
+
+
+ +

◆ Manage()

+ +
+
+ + + + + + + + +
RefMemoryManager::Pool * Manage (unsigned int numBytes)
+
+ +

Definition at line 20 of file RefMemoryManager.cpp.

+ +

References RefMemoryManager::Pool::Reserve().

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
21 {
22  if (!m_FreePools.empty())
23  {
24  Pool* res = m_FreePools.back();
25  m_FreePools.pop_back();
26  res->Reserve(numBytes);
27  return res;
28  }
29  else
30  {
31  m_Pools.push_front(Pool(numBytes));
32  return &m_Pools.front();
33  }
34 }
RefMemoryManager::Pool Pool
+ +
void Reserve(unsigned int numBytes)
+
+
+
+ +

◆ Release()

+ +
+
+ + + + + +
+ + + + + + + +
void Release ()
+
+overridevirtual
+
+ +

Implements IMemoryManager.

+ +

Definition at line 55 of file RefMemoryManager.cpp.

+ +

Referenced by BOOST_AUTO_TEST_CASE().

+
56 {
57  for (Pool &pool: m_Pools)
58  {
59  pool.Release();
60  }
61 }
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1