Main Page | Class List | Directories | File List | Class Members | File Members

ObitMem.h

Go to the documentation of this file.
00001 /* $Id: ObitMem.h,v 1.5 2007/08/31 17:24:48 bcotton Exp $     */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2004-2006                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;  This program is free software; you can redistribute it and/or    */
00006 /*;  modify it under the terms of the GNU General Public License as   */
00007 /*;  published by the Free Software Foundation; either version 2 of   */
00008 /*;  the License, or (at your option) any later version.              */
00009 /*;                                                                   */
00010 /*;  This program is distributed in the hope that it will be useful,  */
00011 /*;  but WITHOUT ANY WARRANTY; without even the implied warranty of   */
00012 /*;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
00013 /*;  GNU General Public License for more details.                     */
00014 /*;                                                                   */
00015 /*;  You should have received a copy of the GNU General Public        */
00016 /*;  License along with this program; if not, write to the Free       */
00017 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00018 /*;  MA 02139, USA.                                                   */
00019 /*;                                                                   */
00020 /*;  Correspondence this software should be addressed as follows:     */
00021 /*;         Internet email: bcotton@nrao.edu.                         */
00022 /*;         Postal address: William Cotton                            */
00023 /*;                         National Radio Astronomy Observatory      */
00024 /*;                         520 Edgemont Road                         */
00025 /*;                         Charlottesville, VA 22903-2475 USA        */
00026 /*--------------------------------------------------------------------*/
00027 #ifndef OBITMEM_H 
00028 #define OBITMEM_H 
00029 #include "ObitThread.h"
00030 #include <stdio.h>
00031 #include <stdlib.h>
00032 #include "memwatch.h"  /* For debugging memory problems */
00033 
00034 /*-------- Obit: Software for the recently deceased ------------------*/
00044 /*------------------- Macroes ----------------------------------------*/
00045 /*---------------Public functions---------------------------*/
00047 void ObitMemClassInit (void);
00048 
00049 #ifndef MEMWATCH
00050 
00051 gpointer ObitMemAlloc (gulong size);
00052 
00054 gpointer ObitMemAlloc0 (gulong size);
00055 
00057 gpointer ObitMemAllocName (gulong size, gchar *name);
00058 
00060 gpointer ObitMemAlloc0Name (gulong size, gchar *name);
00061 
00063 gpointer ObitMemRealloc (gpointer mem, gulong size);
00064 
00066 gpointer ObitMemFree (gpointer mem);
00067 
00069 gboolean ObitMemValid (gpointer mem);
00070 
00071 #endif  /* MEMWATCH */
00072 
00074 void ObitMemPrint (FILE *file);
00075 
00077 void ObitMemSummary (glong *number, glong *total);
00078 
00079 /*-------------------Class Info--------------------------*/
00086 #endif /* OBITMEM_H */ 
00087 

Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1