blob: 62362bc00ccf3bd71bd3d10016bdf19dca9d0b98 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301 /*
2 * Copyright 2019-present Infosys Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6/******************************************************************************
7 * uEContextManager.cpp
8 * This is an auto generated file.
9 * Please do not edit this file.
10 * All edits to be made through template source file
11 * <TOP-DIR/scripts/SMCodeGen/templates/ctxtManagerTmpls/blockPoolManager.cpp.tt>
12 ******************************************************************************/
13
14#include "memPoolManager.h"
15#include "contextManager/dataBlocks.h"
16#include "contextManager/uEContextManager.h"
17
18using namespace cmn::memPool;
19
20namespace mme
21{
22 /******************************************************************************
23 * Constructor
24 ******************************************************************************/
25 UEContextManager::UEContextManager(int numOfBlocks):poolManager_m(numOfBlocks)
26 {
27 }
28
29 /******************************************************************************
30 * Destructor
31 ******************************************************************************/
32 UEContextManager::~UEContextManager()
33 {
34 }
35
36 /******************************************************************************
37 * Allocate UEContext data block
38 ******************************************************************************/
39 UEContext* UEContextManager::allocateUEContext()
40 {
41 UEContext* UEContext_p = poolManager_m.allocate();
42 return UEContext_p;
43 }
44
45 /******************************************************************************
46 * Deallocate a UEContext data block
47 ******************************************************************************/
48 void UEContextManager::deallocateUEContext(UEContext* UEContextp )
49 {
50 poolManager_m.free( UEContextp );
51 }
52}