packages/Matprop/xs/XS.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Get the material ids in the database.
 *
 * \param matids input/output vector that is resized to accomodate the stored
 * matids
 */
\brief Get the material ids in the database.
\param matids input/output vector that is resized to accomodate the stored
matids
\ brief Get the material ids in the database . \ param matids input / output vector that is resized to accomodate the stored matids
void XS::get_matids(Vec_Int &matids) const
{
    REQUIRE(d_totals[TOTAL].size() == d_Nm);
    matids.resize(d_Nm);
    Vec_Int::iterator id_itr = matids.begin();
    for (hash_iter mitr = d_totals[TOTAL].begin();
         mitr != d_totals[TOTAL].end(); ++mitr, ++id_itr)
    {
        *id_itr = mitr->first;
    }
}
void XS :: get_matids ( Vec_Int & matids ) const { REQUIRE ( d_totals [ TOTAL ] . size ( ) == d_Nm ) ; matids . resize ( d_Nm ) ; Vec_Int :: iterator id_itr = matids . begin ( ) ; for ( hash_iter mitr = d_totals [ TOTAL ] . begin ( ) ; mitr != d_totals [ TOTAL ] . end ( ) ; ++ mitr , ++ id_itr ) { * id_itr = mitr -> first ; } }
\brief Get the material ids in the database.
\ brief Get the material ids in the database .
// size the input vector