#include <State.h>

Container for state data. More...

Public Types

typedef std::shared_ptr< StateSP
 
typedef std::shared_ptr< const StateSCP
 

Public Member Functions

 State ()
 
bool operator== (const State &a) const
 
const StateInfodefinition () const
 return a const reference to definition More...
 
SCP_StateInfo scp_definition () const
 return a shared (read-only) definition pointer More...
 
bool has_definition () const
 return whether the class has a non-null definition More...
 
void get_definition (StateInfo &) const
 populate an existing StateInfo with a copy of definition More...
 
void set_definition (const StateInfo &)
 set the definition (copy operation) More...
 
void getptr_definition (const StateInfo *&) const
 retrieve pointer (read-only) to definition More...
 
void manageptr_definition (StateInfo *&)
 set the definition (ownership transfer) More...
 
const Concentrationsconcs () const
 return a const reference to concs More...
 
SCP_Concentrations scp_concs () const
 return a shared (read-only) concs pointer More...
 
bool has_concs () const
 return whether the class has a non-null concs More...
 
void get_concs (Concentrations &) const
 populate an existing Concentrations with a copy of concs More...
 
void set_concs (const Concentrations &)
 set the concs (copy operation) More...
 
void getptr_concs (const Concentrations *&) const
 retrieve pointer (read-only) to concs More...
 
void manageptr_concs (Concentrations *&)
 set the concs (ownership transfer) More...
 
const AlphaSpectraalpha_spectra () const
 return a const reference to alpha_spectra More...
 
SCP_AlphaSpectra scp_alpha_spectra () const
 return a shared (read-only) alpha_spectra pointer More...
 
bool has_alpha_spectra () const
 return whether the class has a non-null alpha_spectra More...
 
void get_alpha_spectra (AlphaSpectra &) const
 populate an existing AlphaSpectra with a copy of alpha_spectra More...
 
void set_alpha_spectra (const AlphaSpectra &)
 set the alpha_spectra (copy operation) More...
 
void getptr_alpha_spectra (const AlphaSpectra *&) const
 retrieve pointer (read-only) to alpha_spectra More...
 
void manageptr_alpha_spectra (AlphaSpectra *&)
 set the alpha_spectra (ownership transfer) More...
 
const NeutronSpectraneutron_spectra () const
 return a const reference to neutron_spectra More...
 
SCP_NeutronSpectra scp_neutron_spectra () const
 return a shared (read-only) neutron_spectra pointer More...
 
bool has_neutron_spectra () const
 return whether the class has a non-null neutron_spectra More...
 
void get_neutron_spectra (NeutronSpectra &) const
 populate an existing NeutronSpectra with a copy of neutron_spectra More...
 
void set_neutron_spectra (const NeutronSpectra &)
 set the neutron_spectra (copy operation) More...
 
void getptr_neutron_spectra (const NeutronSpectra *&) const
 retrieve pointer (read-only) to neutron_spectra More...
 
void manageptr_neutron_spectra (NeutronSpectra *&)
 set the neutron_spectra (ownership transfer) More...
 
const GammaSpectragamma_spectra () const
 return a const reference to gamma_spectra More...
 
SCP_GammaSpectra scp_gamma_spectra () const
 return a shared (read-only) gamma_spectra pointer More...
 
bool has_gamma_spectra () const
 return whether the class has a non-null gamma_spectra More...
 
void get_gamma_spectra (GammaSpectra &) const
 populate an existing GammaSpectra with a copy of gamma_spectra More...
 
void set_gamma_spectra (const GammaSpectra &)
 set the gamma_spectra (copy operation) More...
 
void getptr_gamma_spectra (const GammaSpectra *&) const
 retrieve pointer (read-only) to gamma_spectra More...
 
void manageptr_gamma_spectra (GammaSpectra *&)
 set the gamma_spectra (ownership transfer) More...
 
const BetaSpectrabeta_spectra () const
 return a const reference to beta_spectra More...
 
SCP_BetaSpectra scp_beta_spectra () const
 return a shared (read-only) beta_spectra pointer More...
 
bool has_beta_spectra () const
 return whether the class has a non-null beta_spectra More...
 
void get_beta_spectra (BetaSpectra &) const
 populate an existing BetaSpectra with a copy of beta_spectra More...
 
void set_beta_spectra (const BetaSpectra &)
 set the beta_spectra (copy operation) More...
 
void getptr_beta_spectra (const BetaSpectra *&) const
 retrieve pointer (read-only) to beta_spectra More...
 
void manageptr_beta_spectra (BetaSpectra *&)
 set the beta_spectra (ownership transfer) More...
 
size_t total_nuclides () const
 
size_t num_neutron_groups () const
 
size_t num_alpha_groups () const
 
size_t num_gamma_groups () const
 
size_t num_beta_groups () const
 
void accumulate (const State &, double wt=1.0)
 
Scale::Json::Value to_json () const
 
std::string to_string () const
 

Static Public Member Functions

static bool match (const State &a, const State &b)
 

Protected Member Functions

void canonicalize_definition ()
 
void canonicalize_concs ()
 
void canonicalize_neutron_spectra ()
 
void canonicalize_gamma_spectra ()
 
void canonicalize_alpha_spectra ()
 
void canonicalize_beta_spectra ()
 

Protected Attributes

SP_StateInfo b_definition
 
SP_Concentrations b_concs
 
SP_NeutronSpectra b_neutron_spectra
 
SP_GammaSpectra b_gamma_spectra
 
SP_AlphaSpectra b_alpha_spectra
 
SP_BetaSpectra b_beta_spectra
 

Friends

class StateSet
 
class GridView_State
 

Detailed Description

Container for state data.

The State is a data set which contains:

The StateInfo is required but all other components are optional. The StateSet (list of states) is the in-memory version of the SCALE/ORIGEN concs file, sometimes called the ft71 file as in legacy SCALE it was always output as ft71f*.

Examples:
tstGridView.cpp, tstState.cpp, and tstStateSet.cpp.

Member Typedef Documentation

typedef std::shared_ptr<State> SP
typedef std::shared_ptr<const State> SCP

Constructor & Destructor Documentation

State ( )

Member Function Documentation

bool match ( const State a,
const State b 
)
static
SCP_StateInfo scp_definition ( ) const

return a shared (read-only) definition pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Examples:
tstGridView.cpp.

Referenced by TEST().

bool has_definition ( ) const

return whether the class has a non-null definition

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::accumulate(), Origen::createContentString(), StateSetIO_bof::write(), and StateSetIO_s62b::write().

void get_definition ( StateInfo definition) const

populate an existing StateInfo with a copy of definition

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_definition ( const StateInfo definition)

set the definition (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Examples:
tstGridView.cpp, and tstState.cpp.

Referenced by FakeFactory::newspStateSet_10nuclide(), StateSetIO_s62b::read(), StateSetIO_bof::read(), StateSetIO_s61::read(), Origen::saveStateSet(), FakeFactory::StateSet_random1(), and TEST().

void getptr_definition ( const StateInfo *&  ) const

retrieve pointer (read-only) to definition

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_definition ( StateInfo *&  definition)

set the definition (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

const Concentrations & concs ( ) const

return a const reference to concs

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Invalid if this instance of State goes out of scope.

Examples:
tstState.cpp, and tstStateSet.cpp.

Referenced by State::accumulate(), Obiwan_diff::diff(), State::match(), State::operator==(), TEST(), timing_ref(), timing_ref_at(), StateSetIO_s62b::write(), and StateSetIO_bof::write().

SCP_Concentrations scp_concs ( ) const

return a shared (read-only) concs pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by StateSet::concs().

bool has_concs ( ) const

return whether the class has a non-null concs

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::accumulate(), State::total_nuclides(), and StateSetIO_bof::write().

void get_concs ( Concentrations concs) const

populate an existing Concentrations with a copy of concs

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_concs ( const Concentrations concs)

set the concs (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Examples:
tstState.cpp, and tstStateSet.cpp.

Referenced by State::accumulate(), FakeFactory::newspStateSet_10nuclide(), StateSetIO_s61::read(), StateSetIO_s62b::read(), StateSetIO_bof::read(), Origen::saveStateSet(), FakeFactory::StateSet_random1(), and TEST().

void getptr_concs ( const Concentrations *&  ) const

retrieve pointer (read-only) to concs

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_concs ( Concentrations *&  concs)

set the concs (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

const AlphaSpectra & alpha_spectra ( ) const

return a const reference to alpha_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Invalid if this instance of State goes out of scope.

Referenced by State::operator==(), StateSetIO_s62b::write(), and StateSetIO_bof::write().

SCP_AlphaSpectra scp_alpha_spectra ( ) const

return a shared (read-only) alpha_spectra pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by StateSet::alpha_spectra().

bool has_alpha_spectra ( ) const

return whether the class has a non-null alpha_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::num_alpha_groups(), and StateSetIO_bof::write().

void get_alpha_spectra ( AlphaSpectra alpha_spectra) const

populate an existing AlphaSpectra with a copy of alpha_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_alpha_spectra ( const AlphaSpectra alpha_spectra)

set the alpha_spectra (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by FakeFactory::newspStateSet_10nuclide(), StateSetIO_s62b::read(), StateSetIO_bof::read(), and FakeFactory::StateSet_random1().

void getptr_alpha_spectra ( const AlphaSpectra *&  ) const

retrieve pointer (read-only) to alpha_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_alpha_spectra ( AlphaSpectra *&  alpha_spectra)

set the alpha_spectra (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

const NeutronSpectra & neutron_spectra ( ) const

return a const reference to neutron_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Invalid if this instance of State goes out of scope.

Referenced by State::operator==(), StateSetIO_s62b::write(), and StateSetIO_bof::write().

SCP_NeutronSpectra scp_neutron_spectra ( ) const

return a shared (read-only) neutron_spectra pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by StateSet::neutron_spectra().

bool has_neutron_spectra ( ) const

return whether the class has a non-null neutron_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::num_neutron_groups(), and StateSetIO_bof::write().

void get_neutron_spectra ( NeutronSpectra neutron_spectra) const

populate an existing NeutronSpectra with a copy of neutron_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_neutron_spectra ( const NeutronSpectra neutron_spectra)

set the neutron_spectra (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by FakeFactory::newspStateSet_10nuclide(), StateSetIO_s62b::read(), StateSetIO_bof::read(), and FakeFactory::StateSet_random1().

void getptr_neutron_spectra ( const NeutronSpectra *&  ) const

retrieve pointer (read-only) to neutron_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_neutron_spectra ( NeutronSpectra *&  neutron_spectra)

set the neutron_spectra (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

const GammaSpectra & gamma_spectra ( ) const

return a const reference to gamma_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Invalid if this instance of State goes out of scope.

Referenced by State::operator==(), StateSetIO_s62b::write(), and StateSetIO_bof::write().

SCP_GammaSpectra scp_gamma_spectra ( ) const

return a shared (read-only) gamma_spectra pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by StateSet::gamma_spectra().

bool has_gamma_spectra ( ) const

return whether the class has a non-null gamma_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::num_gamma_groups(), and StateSetIO_bof::write().

void get_gamma_spectra ( GammaSpectra gamma_spectra) const

populate an existing GammaSpectra with a copy of gamma_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_gamma_spectra ( const GammaSpectra gamma_spectra)

set the gamma_spectra (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by FakeFactory::newspStateSet_10nuclide(), StateSetIO_s62b::read(), StateSetIO_s61::read(), StateSetIO_bof::read(), and FakeFactory::StateSet_random1().

void getptr_gamma_spectra ( const GammaSpectra *&  ) const

retrieve pointer (read-only) to gamma_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_gamma_spectra ( GammaSpectra *&  gamma_spectra)

set the gamma_spectra (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

const BetaSpectra & beta_spectra ( ) const

return a const reference to beta_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Invalid if this instance of State goes out of scope.

Referenced by State::operator==(), StateSetIO_s62b::write(), and StateSetIO_bof::write().

SCP_BetaSpectra scp_beta_spectra ( ) const

return a shared (read-only) beta_spectra pointer

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by StateSet::beta_spectra().

bool has_beta_spectra ( ) const

return whether the class has a non-null beta_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by State::num_beta_groups(), and StateSetIO_bof::write().

void get_beta_spectra ( BetaSpectra beta_spectra) const

populate an existing BetaSpectra with a copy of beta_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void set_beta_spectra ( const BetaSpectra beta_spectra)

set the beta_spectra (copy operation)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

Referenced by FakeFactory::newspStateSet_10nuclide(), StateSetIO_s62b::read(), StateSetIO_bof::read(), and FakeFactory::StateSet_random1().

void getptr_beta_spectra ( const BetaSpectra *&  ) const

retrieve pointer (read-only) to beta_spectra

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

void manageptr_beta_spectra ( BetaSpectra *&  beta_spectra)

set the beta_spectra (ownership transfer)

Auto-generated from macro #ORIGEN_ACCESSORS_SP_OBJECT().

size_t total_nuclides ( ) const
void accumulate ( const State state,
double  wt = 1.0 
)
Json::Value to_json ( ) const

References State::b_concs.

Referenced by State::to_string().

std::string to_string ( ) const

References State::to_json().

void canonicalize_definition ( )
protected
void canonicalize_concs ( )
protected
void canonicalize_neutron_spectra ( )
protected
void canonicalize_gamma_spectra ( )
protected
void canonicalize_alpha_spectra ( )
protected
void canonicalize_beta_spectra ( )
protected

Friends And Related Function Documentation

friend class StateSet
friend
friend class GridView_State
friend

Member Data Documentation

SP_StateInfo b_definition
protected
SP_NeutronSpectra b_neutron_spectra
protected
SP_GammaSpectra b_gamma_spectra
protected
SP_AlphaSpectra b_alpha_spectra
protected
SP_BetaSpectra b_beta_spectra
protected

The documentation for this class was generated from the following files: