#if !defined(PPASSEMBLAGE_H_INCLUDED) #define PPASSEMBLAGE_H_INCLUDED #include "NumKeyword.h" #define EXTERNAL extern #include "global.h" #include // assert #include // std::map #include // std::string #include // std::list #include // std::vector #include "char_star.h" #include "PPassemblageComp.h" #include "cxxMix.h" class cxxPPassemblage : public cxxNumKeyword { public: cxxPPassemblage(); cxxPPassemblage(struct pp_assemblage *); cxxPPassemblage(const std::map &entity_map, cxxMix &mx, int n_user); ~cxxPPassemblage(); struct pp_assemblage *cxxPPassemblage2pp_assemblage(); struct pure_phase *cxxPPassemblageComp2pure_phase(); void dump_raw(std::ostream& s_oss, unsigned int indent)const; void read_raw(CParser& parser); const cxxNameDouble& get_totals()const { return this->totals; }; #ifdef USE_MPI void mpi_pack(std::vector& ints, std::vector& doubles); void mpi_unpack(int *ints, int *ii, double *doubles, int *dd); #endif void totalize(); #ifdef ORCHESTRA void ORCH_write_chemistry(std::ostream &chemistry_dat); void ORCH_write_output_vars(std::ostream &outstream); void ORCH_read(std::vector > output_vector, std::vector < std::pair < std::string, double > >::iterator &it); void ORCH_store_global(std::map < std::string, double > output_map); #endif private: void add(const cxxPPassemblage &addee, double extensive); // not written void dump_xml(std::ostream& os, unsigned int indent = 0)const; protected: std::list ppAssemblageComps; cxxNameDouble eltList; cxxNameDouble totals; public: //static std::map& map; }; #endif // !defined(PPASSEMBLAGE_H_INCLUDED)