emutil.h File Reference

#include "emobject.h"
#include "emassert.h"
#include <string.h>

Include dependency graph for emutil.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  EMAN

Classes

class  EMAN::EMUtil
struct  EMAN::ImageScore
class  EMAN::ImageSort

Defines

#define eman__emutil__h__   1
 
Id
emutil.h,v 1.71 2012/08/19 18:13:46 gtang Exp


Functions

template<class T>
void EMDeletePtr (T &x)
template<class T>
void EMDeleteArray (T &x)


Define Documentation

#define eman__emutil__h__   1

Id
emutil.h,v 1.71 2012/08/19 18:13:46 gtang Exp

Definition at line 37 of file emutil.h.


Function Documentation

template<class T>
void EMDeleteArray ( T &  x  )  [inline]

Definition at line 66 of file emutil.h.

References Assert.

Referenced by ali3d_d(), EMAN::PawelProjector::backproject3d(), EMAN::ChaoProjector::backproject3d(), CleanStack(), CleanStack_Cart(), EMAN::PCA::dopca_lan(), EMAN::PCA::dopca_ooc(), fcalc(), fgcalc(), EMAN::PCA::Lanczos(), EMAN::PCAlarge::Lanczos(), EMAN::PCA::Lanczos_ooc(), main(), EMAN::ChaoProjector::project3d(), EMAN::PawelProjector::project3d(), ReadAngTrandDist(), ReadAngTrandDist_Cart(), ReadStackandDist(), ReadStackandDist_Cart(), recons3d_CGLS_mpi_Cart(), recons3d_HyBR_mpi_Cart(), recons3d_sirt_mpi(), recons3d_sirt_mpi_Cart(), and unified().

00067 {
00068 #ifdef _WIN32
00069         if(x != NULL) {
00070                 delete x;
00071                 x = NULL;
00072         }
00073 #else
00074         {Assert(x != NULL);}
00075      delete [] x;
00076      x = NULL;
00077 #endif
00078 }

template<class T>
void EMDeletePtr ( T &  x  )  [inline]

Definition at line 51 of file emutil.h.

References Assert.

Referenced by ali3d_d(), EMAN::varimax::analyze(), EMAN::PCAlarge::analyze(), EMAN::PCAsmall::analyze(), EMAN::PCA::dopca_lan(), EMAN::PCA::dopca_ooc(), EMAN::PCAlarge::insert_image(), EMAN::PCAsmall::insert_image(), EMAN::PCA::Lanczos_ooc(), main(), ReadStackandDist(), ReadStackandDist_Cart(), recons3d_4nn(), EMAN::varimax::set_params(), EMAN::PCAlarge::set_params(), and EMAN::PCAsmall::set_params().

00052 {
00053 #ifdef _WIN32
00054         if(x != NULL) {
00055                 delete x;
00056                 x = NULL;
00057         }
00058 #else
00059         {Assert(x != NULL);}
00060         delete x;
00061         x = NULL;
00062 #endif
00063 }


Generated on Tue Jun 11 12:40:59 2013 for EMAN2 by  doxygen 1.4.7