ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Classes | Defines | Functions
ENSDF.h File Reference

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.

Detailed Description

Header file for the ENSDF class.

Author:
Rikard Lundmark

Definition in file ENSDF.h.


Function Documentation

void* loadIsotope ( void *  ptr)

Function used to create isotopes asynchronously. Is used by pThread in thread maintaining.

Parameters:
ptrA 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
}
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark