#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 |
| |
Functions | |
template<class T> | |
void | EMDeletePtr (T &x) |
template<class T> | |
void | EMDeleteArray (T &x) |
#define eman__emutil__h__ 1 |
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 }
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 }