QxOrm
1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
mem_pool_base.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
2
// vim:tabstop=4:shiftwidth=4:expandtab:
3
4
/*
5
* Copyright (C) 2004-2008 Wu Yongwei <adah at users dot sourceforge dot net>
6
*
7
* This software is provided 'as-is', without any express or implied
8
* warranty. In no event will the authors be held liable for any
9
* damages arising from the use of this software.
10
*
11
* Permission is granted to anyone to use this software for any purpose,
12
* including commercial applications, and to alter it and redistribute
13
* it freely, subject to the following restrictions:
14
*
15
* 1. The origin of this software must not be misrepresented; you must
16
* not claim that you wrote the original software. If you use this
17
* software in a product, an acknowledgement in the product
18
* documentation would be appreciated but is not required.
19
* 2. Altered source versions must be plainly marked as such, and must
20
* not be misrepresented as being the original software.
21
* 3. This notice may not be removed or altered from any source
22
* distribution.
23
*
24
* This file is part of Stones of Nvwa:
25
* http://sourceforge.net/projects/nvwa
26
*
27
*/
28
40
#ifndef QT_NO_DEBUG
41
#ifndef _QX_MODE_RELEASE
42
#if _QX_USE_MEM_LEAK_DETECTION
43
44
#ifndef _MEM_POOL_BASE_H
45
#define _MEM_POOL_BASE_H
46
47
#ifdef _MSC_VER
48
#pragma once
49
#endif
50
51
#include <stddef.h>
52
53
namespace
qx
{
54
namespace
memory {
55
59
class
QX_DLL_EXPORT
mem_pool_base
60
{
61
public
:
62
virtual
~mem_pool_base
();
63
virtual
void
recycle
() = 0;
64
static
void
*
alloc_sys
(
size_t
__size);
65
static
void
dealloc_sys
(
void
* __ptr);
66
68
struct
_Block_list
{
_Block_list
*
_M_next
; };
69
};
70
71
}
// namespace memory
72
}
// namespace qx
73
74
#endif
// _MEM_POOL_BASE_H
75
#endif
// _QX_USE_MEM_LEAK_DETECTION
76
#endif
// _QX_MODE_RELEASE
77
#endif
// QT_NO_DEBUG
QX_DLL_EXPORT
#define QX_DLL_EXPORT
Definition
QxMacro.h:182
qx::memory::mem_pool_base
Definition
mem_pool_base.h:60
qx::memory::mem_pool_base::~mem_pool_base
virtual ~mem_pool_base()
qx::memory::mem_pool_base::alloc_sys
static void * alloc_sys(size_t __size)
qx::memory::mem_pool_base::dealloc_sys
static void dealloc_sys(void *__ptr)
qx::memory::mem_pool_base::recycle
virtual void recycle()=0
qx
Root namespace for all QxOrm library features.
Definition
IxCollection.h:50
qx::memory::mem_pool_base::_Block_list
Definition
mem_pool_base.h:68
qx::memory::mem_pool_base::_Block_list::_M_next
_Block_list * _M_next
Definition
mem_pool_base.h:68
include
QxMemLeak
mem_pool_base.h
Generated on Wed Jul 24 2024 21:08:17 for QxOrm by
1.11.0