blob: 7b55924ee875fe36f684828e0b7ae5fd233aded7 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
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 __SessionContextManager__
18#define __SessionContextManager__
19/******************************************************
20* sessionContextManager.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
28namespace mme
29{
30 class SessionContext;
31 class SessionContextManager
32 {
33 public:
34 /****************************************
35 * SessionContextManager
36 * constructor
37 ****************************************/
38 SessionContextManager(int numOfBlocks);
39
40 /****************************************
41 * SessionContextManager
42 * Destructor
43 ****************************************/
44 ~SessionContextManager();
45
46 /******************************************
47 * allocateSessionContext
48 * allocate SessionContext data block
49 ******************************************/
50 SessionContext* allocateSessionContext();
51
52 /******************************************
53 * deallocateSessionContext
54 * deallocate a SessionContext data block
55 ******************************************/
56 void deallocateSessionContext(SessionContext* SessionContextp );
57
58 private:
59 cmn::memPool::MemPoolManager<SessionContext> poolManager_m;
60 };
61};
62
63#endif
64
65