Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

emutil.cpp File Reference

#include "all_imageio.h"
#include "portable_fileio.h"
#include "emcache.h"
#include "emdata.h"
#include "ctf.h"
#include "emassert.h"
#include "exception.h"
#include <boost/shared_ptr.hpp>
#include <sys/param.h>

Include dependency graph for emutil.cpp:

Include dependency graph

Go to the source code of this file.

Functions

int imgscore_cmp (const void *imgscore1, const void *imgscore2)

Variables

const int ATTR_NAME_LEN = 128


Function Documentation

int imgscore_cmp const void *  imgscore1,
const void *  imgscore2
[static]
 

Definition at line 1135 of file emutil.cpp.

References Assert.

Referenced by EMAN::ImageSort::sort().

01136 {
01137         Assert(imgscore1 != 0);
01138         Assert(imgscore2 != 0);
01139 
01140         float c = ((ImageScore *)imgscore1)->score - ((ImageScore *)imgscore2)->score;
01141         if (c<0) {
01142                 return 1;
01143         }
01144         else if (c>0) {
01145                 return -1;
01146         }
01147         return 0;
01148 }


Variable Documentation

const int ATTR_NAME_LEN = 128 [static]
 

Definition at line 60 of file emutil.cpp.


Generated on Tue Jul 12 13:49:25 2011 for EMAN2 by  doxygen 1.3.9.1