CUBRID Engine
latest
Main Page
Namespaces
Classes
Files
File List
File Members
parser_allocator.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2008 Search Solution Corporation
3
* Copyright 2016 CUBRID Corporation
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
//
20
// parser_allocator.hpp - C++ extensions to parser allocation
21
//
22
23
#ifndef _PARSER_ALLOCATOR_HPP_
24
#define _PARSER_ALLOCATOR_HPP_
25
26
#include "
mem_block.hpp
"
27
28
// forward def
29
struct
parser_context
;
30
31
class
parser_block_allocator
:
public
cubmem::block_allocator
32
{
33
public
:
34
parser_block_allocator
() =
delete
;
35
parser_block_allocator
(
parser_context
*
parser
);
36
37
private
:
38
void
alloc
(
cubmem::block
&b,
size_t
size);
39
void
dealloc
(
cubmem::block
&b);
40
41
parser_context
*
m_parser
;
42
};
43
44
#endif // _PARSER_ALLOCATOR_HPP_
parser_block_allocator::alloc
void alloc(cubmem::block &b, size_t size)
Definition:
parser_allocator.cpp:39
parser_context
Definition:
parse_tree.h:3530
parser
SP_PARSER_CTX * parser
Definition:
shard_proxy_handler.c:52
parser_block_allocator
Definition:
parser_allocator.hpp:31
cubmem::block_allocator
Definition:
mem_block.hpp:99
parser_block_allocator::dealloc
void dealloc(cubmem::block &b)
Definition:
parser_allocator.cpp:67
mem_block.hpp
parser_block_allocator::m_parser
parser_context * m_parser
Definition:
parser_allocator.hpp:41
parser_block_allocator::parser_block_allocator
parser_block_allocator()=delete
cubmem::block
Definition:
mem_block.hpp:55
src
parser
parser_allocator.hpp
Generated by
1.8.11