From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...sarmnn_1_1_sample_memory_manager_1_1_pool.xhtml | 268 +++++++++++++++++++++ 1 file changed, 268 insertions(+) create mode 100644 20.02/classarmnn_1_1_sample_memory_manager_1_1_pool.xhtml (limited to '20.02/classarmnn_1_1_sample_memory_manager_1_1_pool.xhtml') diff --git a/20.02/classarmnn_1_1_sample_memory_manager_1_1_pool.xhtml b/20.02/classarmnn_1_1_sample_memory_manager_1_1_pool.xhtml new file mode 100644 index 0000000000..2ff927d599 --- /dev/null +++ b/20.02/classarmnn_1_1_sample_memory_manager_1_1_pool.xhtml @@ -0,0 +1,268 @@ + + + + + + + + + + + + + +ArmNN: SampleMemoryManager::Pool Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SampleMemoryManager::Pool Class Reference
+
+
+ +

#include <SampleMemoryManager.hpp>

+ + + + + + + + + + + + + + +

+Public Member Functions

 Pool (unsigned int numBytes)
 
 ~Pool ()
 
void Acquire ()
 
void Release ()
 
void * GetPointer ()
 
void Reserve (unsigned int numBytes)
 
+

Detailed Description

+
+

Definition at line 33 of file SampleMemoryManager.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Pool()

+ +
+
+ + + + + + + + +
Pool (unsigned int numBytes)
+
+ +

Definition at line 61 of file SampleMemoryManager.cpp.

+
62  : m_Size(numBytes),
63  m_Pointer(nullptr)
64 {}
+
+
+ +

◆ ~Pool()

+ +
+
+ + + + + + + +
~Pool ()
+
+ +

Definition at line 66 of file SampleMemoryManager.cpp.

+ +

References SampleMemoryManager::Pool::Release().

+
67 {
68  if (m_Pointer)
69  {
70  Release();
71  }
72 }
+
+
+
+

Member Function Documentation

+ +

◆ Acquire()

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

Definition at line 84 of file SampleMemoryManager.cpp.

+
85 {
86  m_Pointer = ::operator new(size_t(m_Size));
87 }
+
+
+ +

◆ GetPointer()

+ +
+
+ + + + + + + +
void * GetPointer ()
+
+ +

Definition at line 74 of file SampleMemoryManager.cpp.

+ +

Referenced by SampleMemoryManager::GetPointer().

+
75 {
76  return m_Pointer;
77 }
+
+
+ +

◆ Release()

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

Definition at line 89 of file SampleMemoryManager.cpp.

+ +

Referenced by SampleMemoryManager::Pool::~Pool().

+
90 {
91  ::operator delete(m_Pointer);
92  m_Pointer = nullptr;
93 }
+
+
+ +

◆ Reserve()

+ +
+
+ + + + + + + + +
void Reserve (unsigned int numBytes)
+
+ +

Definition at line 79 of file SampleMemoryManager.cpp.

+ +

Referenced by SampleMemoryManager::Manage().

+
80 {
81  m_Size = std::max(m_Size, numBytes);
82 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1