Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

enum_memblk_types.h
Go to the documentation of this file.
1 // $Header$
2 //
3 // Copyright (C) 2000 - 2004, by
4 //
5 // Carlo Wood, Run on IRC <carlo@alinoe.com>
6 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
7 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
8 //
9 // This file may be distributed under the terms of the Q Public License
10 // version 1.0 as appearing in the file LICENSE.QPL included in the
11 // packaging of this file.
12 //
13 
18 #ifndef LIBCWD_ENUM_MEMBLK_TYPES_H
19 #define LIBCWD_ENUM_MEMBLK_TYPES_H
20 
21 #ifndef LIBCWD_CONFIG_H
22 #include "config.h"
23 #endif
24 #ifndef LIBCW_IOSFWD
25 #define LIBCW_IOSFWD
26 #include <iosfwd> // Needed for ostream.
27 #endif
28 
29 namespace libcwd {
30 
31 //===================================================================================================
32 // Flags used to mark the type of `memblk':
33 //
34 
44 // If you change this, then also edit `expected_from' in debugmalloc.cc!
53 #if CWDEBUG_MARKER
54  memblk_type_marker,
55  memblk_type_deleted_marker,
56 #endif
58  // These four must be last (we use if (f >= memblk_type_posix_memalign) in debugmalloc.cc).
63 };
64 extern // new-line needed for buggy doxygen
65  ::std::ostream& operator<<(std::ostream& os, memblk_types_nt);
66 
67 } // namespace libcwd
68 
69 #endif // LIBCWD_ENUM_MEMBLK_TYPES_H
70 
namespace for libcwd.
Definition: debug.cc:87
std::ostream & operator<<(std::ostream &os, memblk_types_nt memblk_type)
Allow writing a memblk_types_nt directly to an ostream.
Definition: debugmalloc.cc:688
memblk_types_nt
A flag indicating the type of allocation.
Definition: enum_memblk_types.h:45
@ memblk_type_external
Externally allocated with malloc() (no magic numbers!)
Definition: enum_memblk_types.h:57
@ memblk_type_aligned_alloc
Allocated with aligned_alloc()
Definition: enum_memblk_types.h:60
@ memblk_type_new
Allocated with operator new
Definition: enum_memblk_types.h:46
@ memblk_type_memalign
Allocated with memalign()
Definition: enum_memblk_types.h:61
@ memblk_type_deleted_array
Deleted with operator delete []
Definition: enum_memblk_types.h:49
@ memblk_type_malloc
Allocated with calloc() or malloc()
Definition: enum_memblk_types.h:50
@ memblk_type_new_array
Allocated with operator new []
Definition: enum_memblk_types.h:48
@ memblk_type_realloc
Reallocated with realloc()
Definition: enum_memblk_types.h:51
@ memblk_type_freed
Freed with free()
Definition: enum_memblk_types.h:52
@ memblk_type_valloc
Allocated with valloc()
Definition: enum_memblk_types.h:62
@ memblk_type_deleted
Deleted with operator delete
Definition: enum_memblk_types.h:47
@ memblk_type_posix_memalign
Allocated with posix_memalign()
Definition: enum_memblk_types.h:59
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.