![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
Header file for the ENSDF class. More...
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <utility>
#include <map>
#include <string>
#include <vector>
#include <list>
#include <exception>
#include <algorithm>
#include "DataFileException.h"
#include "Isotop.h"
#include "Nukleid.h"
#include "VerbosePrinterEventEnabled.h"
#include "VerbosePrinter.h"
Go to the source code of this file.
Classes | |
class | ENSDF |
Loads all information in the ENSDF data files, and creates Isotop object from them asynchronously. More... | |
Defines | |
#define | PTHREAD_H |
Inclusion guard. | |
#define | STDIO_H |
Inclusion guard. | |
#define | VECTOR |
Inclusion guard. | |
#define | ALGORITHM |
Inclusion guard. | |
#define | ENSDF_H |
Inclusion guard. | |
Functions | |
void * | loadIsotope (void *ptr) |
Function used to create isotopes asynchronously. Is used by pThread in thread maintaining. |
void* loadIsotope | ( | void * | ptr | ) |
Function used to create isotopes asynchronously. Is used by pThread in thread maintaining.
ptr | A pointer to an object of type list< pair<Isotop**, list<list<string> >* > > *, from which isotopes are created. |
Definition at line 115 of file ENSDF.cpp.
References NULL.
Referenced by ENSDF::threadFlush().
{ list< pair<Isotop**, list<list<string> >* > > * toCreateFrom = (list< pair<Isotop**, list<list<string> >* > > * ) ptr; for(list<pair<Isotop**, list< list< string> >* > >::iterator it = toCreateFrom->begin(); it!=toCreateFrom->end(); it++) *(it->first)= new Isotop(*(it->second)); delete toCreateFrom; ptr = NULL; toCreateFrom = NULL; return (void*)NULL; //quick and dirty }