packages/Utils/comm/Timing_Diagnostics.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Return a vector of timer keys.
 */
\brief Return a vector of timer keys.
\ brief Return a vector of timer keys .
Timing_Diagnostics::Vec_Keys Timing_Diagnostics::timer_keys()
{
    using std::string;
    using std::map;
    Vec_Keys keys(timers.size());
    Vec_Keys::iterator v            = keys.begin();
    map<string, double>::iterator m = timers.begin();
    for (; m != timers.end(); m++, v++)
    {
        CHECK(v != keys.end());
        *v = m->first;
    }
    return keys;
}
Timing_Diagnostics :: Vec_Keys Timing_Diagnostics :: timer_keys ( ) { using std :: string ; using std :: map ; Vec_Keys keys ( timers . size ( ) ) ; Vec_Keys :: iterator v = keys . begin ( ) ; map < string , double > :: iterator m = timers . begin ( ) ; for ( ; m != timers . end ( ) ; m ++ , v ++ ) { CHECK ( v != keys . end ( ) ) ; * v = m -> first ; } return keys ; }
\brief Return a vector of timer keys.
\ brief Return a vector of timer keys .
// keys // iterators // add keys to the vector // return the vector