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 <libcwd/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
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 
Deleted with operator delete
Definition: enum_memblk_types.h:47
Freed with free()
Definition: enum_memblk_types.h:52
Deleted with operator delete []
Definition: enum_memblk_types.h:49
Allocated with memalign()
Definition: enum_memblk_types.h:61
Reallocated with realloc()
Definition: enum_memblk_types.h:51
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
Allocated with calloc() or malloc()
Definition: enum_memblk_types.h:50
A deleted memory allocation marker.
Definition: enum_memblk_types.h:55
Allocated with posix_memalign()
Definition: enum_memblk_types.h:59
Allocated with valloc()
Definition: enum_memblk_types.h:62
Allocated with operator new []
Definition: enum_memblk_types.h:48
namespace for libcwd.
Definition: debug.cc:87
Allocated with aligned_alloc()
Definition: enum_memblk_types.h:60
Externally allocated with malloc() (no magic numbers!)
Definition: enum_memblk_types.h:57
Allocated with operator new
Definition: enum_memblk_types.h:46
memblk_types_nt
A flag indicating the type of allocation.
Definition: enum_memblk_types.h:45
A memory allocation marker.
Definition: enum_memblk_types.h:54
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.