Wm4Memory.inl

Go to the documentation of this file.
00001 // Wild Magic Source Code
00002 // David Eberly
00003 // http://www.geometrictools.com
00004 // Copyright (c) 1998-2007
00005 //
00006 // This library is free software; you can redistribute it and/or modify it
00007 // under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation; either version 2.1 of the License, or (at
00009 // your option) any later version.  The license is available for reading at
00010 // either of the locations:
00011 //     http://www.gnu.org/copyleft/lgpl.html
00012 //     http://www.geometrictools.com/License/WildMagicLicense.pdf
00013 // The license applies to versions 0 through 4 of Wild Magic.
00014 //
00015 // Version: 4.0.0 (2006/06/28)
00016 
00017 namespace Wm4
00018 {
00019 //----------------------------------------------------------------------------
00020 inline size_t& Memory::MaxAllowedBytes ()
00021 {
00022     return ms_uiMaxAllowedBytes;
00023 }
00024 //----------------------------------------------------------------------------
00025 inline bool& Memory::TrackSizes ()
00026 {
00027     return ms_bTrackSizes;
00028 }
00029 //----------------------------------------------------------------------------
00030 inline size_t Memory::GetNumNewCalls ()
00031 {
00032     return ms_uiNumNewCalls;
00033 }
00034 //----------------------------------------------------------------------------
00035 inline size_t Memory::GetNumDeleteCalls ()
00036 {
00037     return ms_uiNumDeleteCalls;
00038 }
00039 //----------------------------------------------------------------------------
00040 inline size_t Memory::GetNumBlocks ()
00041 {
00042     return ms_uiNumBlocks;
00043 }
00044 //----------------------------------------------------------------------------
00045 inline size_t Memory::GetNumBytes ()
00046 {
00047     return ms_uiNumBytes;
00048 }
00049 //----------------------------------------------------------------------------
00050 inline size_t Memory::GetMaxAllocatedBytes ()
00051 {
00052     return ms_uiMaxAllocatedBytes;
00053 }
00054 //----------------------------------------------------------------------------
00055 inline size_t Memory::GetMaxBlockSize ()
00056 {
00057     return ms_uiMaxBlockSize;
00058 }
00059 //----------------------------------------------------------------------------
00060 inline size_t Memory::GetHistogram (int i)
00061 {
00062     if (0 <= i && i <= 31)
00063     {
00064         return ms_auiHistogram[i];
00065     }
00066 
00067     return 0;
00068 }
00069 //----------------------------------------------------------------------------
00070 inline const Memory::Block* Memory::GetHead ()
00071 {
00072     return ms_pkHead;
00073 }
00074 //----------------------------------------------------------------------------
00075 inline const Memory::Block* Memory::GetTail ()
00076 {
00077     return ms_pkTail;
00078 }
00079 //----------------------------------------------------------------------------
00080 } //namespace Wm4

Generated on Wed Nov 23 19:01:06 2011 for FreeCAD by  doxygen 1.6.1