8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 00:03:03 +01:00
firebird-mirror/src/jrd/all.h
2004-07-30 22:38:08 +00:00

72 lines
1.9 KiB
C++

/*
* PROGRAM: JRD Access Method
* MODULE: all.h
* DESCRIPTION: Block allocator blocks
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the License at http://www.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
* or implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
* Copyright (C) Inprise Corporation.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
#ifndef JRD_ALL_H
#define JRD_ALL_H
#include "../jrd/jrd.h"
#include "../common/classes/alloc.h"
#include "../jrd/block_cache.h"
#include "../jrd/lls.h"
#include "fb_string.h"
void ALL_fini(void);
void ALL_init(void);
struct blk;
namespace Jrd {
class SparseBitmap;
class BitmapSegment;
class Database;
class DataComprControl;
}
void ALL_print_memory_pool_info(FILE*, Jrd::Database*);
#ifdef DEV_BUILD
void ALL_check_memory(void);
#endif
class JrdMemoryPool : public MemoryPool
{
protected:
// Dummy constructor and destructor. Should never be called
JrdMemoryPool();
~JrdMemoryPool();
public:
static JrdMemoryPool *createDbPool(Firebird::MemoryStats &stats);
static JrdMemoryPool *createPool();
static void deletePool(JrdMemoryPool* pool);
static void noDbbDeletePool(JrdMemoryPool* pool);
Jrd::SparseBitmap* plb_buckets; /* available bit map buckets */
Jrd::BitmapSegment* plb_segments; /* available bit map segments */
Jrd::DataComprControl* plb_dccs;
};
TEXT* ALL_cstring(JrdMemoryPool* pool, const Firebird::string& in_string);
#endif // JRD_ALL_H