CYCLUS
Loading...
Searching...
No Matches
pyne.cc File Reference
#include "pyne.h"
#include <utility>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <stdlib.h>
#include <assert.h>
#include <cstddef>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <math.h>

Go to the source code of this file.

Classes

class  Json::BatchAllocator< AllocatedType, objectPerAllocation >
 
struct  simple_xs
 

Namespaces

namespace  Json
 
namespace  pyne
 
namespace  pyne::nucname
 

Macros

#define JSON_ASSERT(condition)   assert( condition );
 
#define JSON_ASSERT_MESSAGE(condition, message)   if (!( condition )) JSON_FAIL_MESSAGE( message )
 
#define JSON_ASSERT_UNREACHABLE   assert( false )
 
#define JSON_FAIL_MESSAGE(message)   throw std::runtime_error( message );
 
#define JSONCPP_BATCHALLOCATOR_H_INCLUDED
 
#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
 
#define PYNE_4HFU6PUEQJB3ZJ4UIFLVU4SPCM
 
#define TOTAL_STATE_MAPS   922
 

Typedefs

typedef struct simple_xs simple_xs
 
typedef char Json::UIntToStringBuffer[uintToStringBufferSize]
 

Enumerations

enum  { Json::uintToStringBufferSize = 3*sizeof(LargestUInt)+1 }
 

Functions

static void _load_simple_xs_map (std::string energy)
 
static std::string Json::codePointToUTF8 (unsigned int cp)
 
static bool Json::containsControlCharacter (const char *str)
 
static bool Json::containsNewLine (Reader::Location begin, Reader::Location end)
 
std::map< int, pyne::dose > & dose_source_map (int source)
 
static char * Json::duplicateStringValue (const char *value, unsigned int length=unknown)
 
std::set< std::string > fluka_builtin (pyne::fluka_mat_strings, pyne::fluka_mat_strings+pyne::FLUKA_MAT_NUM)
 
static bool Json::in (Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4)
 
static bool Json::in (Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4, Reader::Char c5)
 
static bool Json::isControlCharacter (char ch)
 
std::ostream & Json::operator<< (std::ostream &, const Value &root)
 
std::ostream & operator<< (std::ostream &os, pyne::Material mat)
 
std::ostringstream & operator<< (std::ostringstream &os, pyne::Material mat)
 
std::istream & Json::operator>> (std::istream &, Value &)
 
template<>
void pyne::_load_data< pyne::alpha > ()
 
template<>
void pyne::_load_data< pyne::atomic > ()
 
template<>
void pyne::_load_data< pyne::beta > ()
 
template<>
void pyne::_load_data< pyne::decay > ()
 
template<>
void pyne::_load_data< pyne::ecbp > ()
 
template<>
void pyne::_load_data< pyne::gamma > ()
 
template<>
void pyne::_load_data< pyne::level_data > ()
 
static void Json::releaseStringValue (char *value)
 
std::string source_string (int source)
 
static void Json::uintToString (LargestUInt value, char *&current)
 
std::string Json::valueToQuotedString (const char *value)
 
std::string Json::valueToString (bool value)
 
std::string Json::valueToString (double value)
 
std::string Json::valueToString (Int value)
 
std::string Json::valueToString (LargestInt value)
 
std::string Json::valueToString (LargestUInt value)
 
std::string Json::valueToString (UInt value)
 

Variables

int pyne::nucname::map_metastable [TOTAL_STATE_MAPS]
 
int pyne::nucname::map_nuc_ids [TOTAL_STATE_MAPS]
 
static const unsigned int Json::unknown = (unsigned)-1
 
State Map functions

These convert from/to decay state ids (used in decay data) to metastable ids (the PyNE default)

std::map< int, int > pyne::nucname::state_id_map
 

Macro Definition Documentation

◆ JSON_ASSERT

#define JSON_ASSERT ( condition)    assert( condition );

Definition at line 14408 of file pyne.cc.

◆ JSON_ASSERT_MESSAGE

#define JSON_ASSERT_MESSAGE ( condition,
message )   if (!( condition )) JSON_FAIL_MESSAGE( message )

Definition at line 14410 of file pyne.cc.

◆ JSON_ASSERT_UNREACHABLE

#define JSON_ASSERT_UNREACHABLE   assert( false )

Definition at line 14407 of file pyne.cc.

◆ JSON_FAIL_MESSAGE

#define JSON_FAIL_MESSAGE ( message)    throw std::runtime_error( message );

Definition at line 14409 of file pyne.cc.

◆ JSONCPP_BATCHALLOCATOR_H_INCLUDED

#define JSONCPP_BATCHALLOCATOR_H_INCLUDED

Definition at line 13975 of file pyne.cc.

◆ LIB_JSONCPP_JSON_TOOL_H_INCLUDED

#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED

Json-cpp amalgated source (http://jsoncpp.sourceforge.net/).

It is intented to be used with #include <json.h>

Definition at line 13075 of file pyne.cc.

◆ PYNE_4HFU6PUEQJB3ZJ4UIFLVU4SPCM

#define PYNE_4HFU6PUEQJB3ZJ4UIFLVU4SPCM

Definition at line 434 of file pyne.cc.

◆ TOTAL_STATE_MAPS

#define TOTAL_STATE_MAPS   922

Definition at line 437 of file pyne.cc.

Typedef Documentation

◆ simple_xs

typedef struct simple_xs simple_xs

Function Documentation

◆ _load_simple_xs_map()

static void _load_simple_xs_map ( std::string energy)
static

Definition at line 12865 of file pyne.cc.

◆ dose_source_map()

std::map< int, pyne::dose > & dose_source_map ( int source)

Definition at line 10777 of file pyne.cc.

◆ fluka_builtin()

std::set< std::string > fluka_builtin ( pyne::fluka_mat_strings ,
pyne::fluka_mat_strings+pyne::FLUKA_MAT_NUM  )

------------------------------------------------------------------------—// Create a set out of the static string array.

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & os,
pyne::Material mat )

Definition at line 18089 of file pyne.cc.

◆ operator<<() [2/2]

std::ostringstream & operator<< ( std::ostringstream & os,
pyne::Material mat )

Definition at line 18101 of file pyne.cc.

◆ pyne::_load_data< pyne::alpha >()

template<>
void pyne::_load_data< pyne::alpha > ( )

Definition at line 12404 of file pyne.cc.

◆ pyne::_load_data< pyne::atomic >()

template<>
void pyne::_load_data< pyne::atomic > ( )

Definition at line 11573 of file pyne.cc.

◆ pyne::_load_data< pyne::beta >()

template<>
void pyne::_load_data< pyne::beta > ( )

Definition at line 12481 of file pyne.cc.

◆ pyne::_load_data< pyne::decay >()

template<>
void pyne::_load_data< pyne::decay > ( )

Definition at line 12016 of file pyne.cc.

◆ pyne::_load_data< pyne::ecbp >()

template<>
void pyne::_load_data< pyne::ecbp > ( )

Definition at line 12566 of file pyne.cc.

◆ pyne::_load_data< pyne::gamma >()

template<>
void pyne::_load_data< pyne::gamma > ( )

Definition at line 12159 of file pyne.cc.

◆ pyne::_load_data< pyne::level_data >()

template<>
void pyne::_load_data< pyne::level_data > ( )

Definition at line 11714 of file pyne.cc.

◆ source_string()

std::string source_string ( int source)

Functions for Source Location in nuc_data.h5 and related Map Pointers.

Definition at line 10765 of file pyne.cc.