anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2019-present, Infosys Limited. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __BearerContextManager__ |
| 18 | #define __BearerContextManager__ |
| 19 | /****************************************************** |
| 20 | * bearerContextManager.h |
| 21 | * This is an auto generated file. |
| 22 | * Please do not edit this file. |
| 23 | * All edits to be made through template source file |
| 24 | * <TOP-DIR/scripts/SMCodeGen/templates/ctxtManagerTmpls/blockPoolManager.h.tt> |
| 25 | ***************************************/ |
| 26 | #include "memPoolManager.h" |
| 27 | |
| 28 | namespace mme |
| 29 | { |
| 30 | class BearerContext; |
| 31 | |
| 32 | class BearerContextManager |
| 33 | { |
| 34 | public: |
| 35 | /**************************************** |
| 36 | * BearerContextManager |
| 37 | * constructor |
| 38 | ****************************************/ |
| 39 | BearerContextManager(int numOfBlocks); |
| 40 | |
| 41 | /**************************************** |
| 42 | * BearerContextManager |
| 43 | * Destructor |
| 44 | ****************************************/ |
| 45 | ~BearerContextManager(); |
| 46 | |
| 47 | /****************************************** |
| 48 | * allocateBearerContext |
| 49 | * allocate BearerContext data block |
| 50 | ******************************************/ |
| 51 | BearerContext* allocateBearerContext(); |
| 52 | |
| 53 | /****************************************** |
| 54 | * deallocateBearerContext |
| 55 | * deallocate a BearerContext data block |
| 56 | ******************************************/ |
| 57 | void deallocateBearerContext(BearerContext* BearerContextp ); |
| 58 | |
| 59 | private: |
| 60 | cmn::memPool::MemPoolManager<BearerContext> poolManager_m; |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | #endif |
| 65 | |
| 66 | |