| /* |
| * Copyright 2019-present Infosys Limited |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| /****************************************************************************** |
| * uEContextManager.cpp |
| * This is an auto generated file. |
| * Please do not edit this file. |
| * All edits to be made through template source file |
| * <TOP-DIR/scripts/SMCodeGen/templates/ctxtManagerTmpls/blockPoolManager.cpp.tt> |
| ******************************************************************************/ |
| |
| #include "memPoolManager.h" |
| #include "contextManager/dataBlocks.h" |
| #include "contextManager/uEContextManager.h" |
| |
| using namespace cmn::memPool; |
| |
| namespace mme |
| { |
| /****************************************************************************** |
| * Constructor |
| ******************************************************************************/ |
| UEContextManager::UEContextManager(int numOfBlocks):poolManager_m(numOfBlocks) |
| { |
| } |
| |
| /****************************************************************************** |
| * Destructor |
| ******************************************************************************/ |
| UEContextManager::~UEContextManager() |
| { |
| } |
| |
| /****************************************************************************** |
| * Allocate UEContext data block |
| ******************************************************************************/ |
| UEContext* UEContextManager::allocateUEContext() |
| { |
| UEContext* UEContext_p = poolManager_m.allocate(); |
| return UEContext_p; |
| } |
| |
| /****************************************************************************** |
| * Deallocate a UEContext data block |
| ******************************************************************************/ |
| void UEContextManager::deallocateUEContext(UEContext* UEContextp ) |
| { |
| poolManager_m.free( UEContextp ); |
| } |
| } |