Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cMemSignature< _SIGVALID > Class Template Reference

#include <cMem.h>

Public Member Functions

 cMemSignature () noexcept
 
 ~cMemSignature ()
 
bool isValidSignature () const noexcept
 

Static Public Attributes

static const UINT32 k_VALID = _SIGVALID
 used just to make sure this is valid. FEEDF00D More...
 
static const UINT32 k_INVALID = 0xDEADBEA7
 Mark as NOT valid when freed! More...
 

Detailed Description

template<UINT32 _SIGVALID = 0xCA11AB1E>
class Gray::cMemSignature< _SIGVALID >

An unlikely pattern of debug data for validating the heap/memory. These may be scattered about any place.

Note
May not be allocated on the system heap.
This is somewhat redundant with some built in _MSC_VER _DEBUG heap code. heap has its own mechanism to do this.

Constructor & Destructor Documentation

◆ cMemSignature()

template<UINT32 _SIGVALID = 0xCA11AB1E>
Gray::cMemSignature< _SIGVALID >::cMemSignature ( )
inlinenoexcept
Note
virtuals don't work in constructors or destructors !

◆ ~cMemSignature()

template<UINT32 _SIGVALID = 0xCA11AB1E>
Gray::cMemSignature< _SIGVALID >::~cMemSignature ( )
inline
Note
virtuals don't work in constructors or destructors ! so ASSERT( isValidCheck()); not possible here !

Member Function Documentation

◆ isValidSignature()

template<UINT32 _SIGVALID = 0xCA11AB1E>
bool Gray::cMemSignature< _SIGVALID >::isValidSignature ( ) const
inlinenoexcept

Member Data Documentation

◆ k_INVALID

template<UINT32 _SIGVALID = 0xCA11AB1E>
const UINT32 Gray::cMemSignature< _SIGVALID >::k_INVALID = 0xDEADBEA7
static

Mark as NOT valid when freed!

◆ k_VALID

template<UINT32 _SIGVALID = 0xCA11AB1E>
const UINT32 Gray::cMemSignature< _SIGVALID >::k_VALID = _SIGVALID
static

used just to make sure this is valid. FEEDF00D


The documentation for this class was generated from the following file: