}
prefix_ void senf::Statistics::consoleList(std::ostream & os)
+ const
{
os << "RANK WIN MIN AVG MAX\n";
StatisticsBase::consoleList(0, os);
}
prefix_ senf::StatisticsData senf::StatisticsBase::data()
+ const
{
return StatisticsData(min_, avg_, max_, dev_, 0);
}
prefix_ void senf::Statistics::operator()(StatisticsData const & data)
{
- enter(1, data.min, data.avg, data.max, data.stddev);
+ enter(1, data.min, data.avg, data.max, data.stddev);
}
prefix_ void senf::Statistics::operator()(float value, float dev)
{
typedef std::map<unsigned, Collector> Children;
+ // why we can't use ::__gnu_cxx::select2nd instead?!?!
struct Transform {
typedef Children::value_type & first_argument_type;
typedef Collector & result_type;
\param[in] n size of sliding average window */
//\}
- StatisticsData data(); ///< Get the Statistics data as senf::StatisticsData
- /**< Return a Statistic Data object containing values
- from this instance.
- */
+ StatisticsData data() const; ///< Get the Statistics data as senf::StatisticsData
+ /**< Return a Statistic Data object containing values
+ from this instance. */
//-////////////////////////////////////////////////////////////////////////
StatisticsBase::OutputProxy<Statistics> output(unsigned n = 1u);
- void consoleList(std::ostream & os);
+ void consoleList(std::ostream & os) const;
void consoleCollect(std::vector<unsigned> & ranks);
boost::shared_ptr<senf::console::DirectoryNode> consoleOutput(
std::vector<unsigned> & ranks, unsigned window);
\brief signalnames non-inline non-template implementation */
#include "signalnames.hh"
-//#include "signalnames.ih"
// Custom includes
-#include <boost/format.hpp>
-//#include "signalnames.mpp"
#define prefix_
//-/////////////////////////////////////////////////////////////////////////////////////////////////
//-/////////////////////////////////////////////////////////////////////////////////////////////////
#undef prefix_
-//#include "signalnames.mpp"
\f
// Local Variables:
# Set nice default options
env.Append(
- CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', "${profile and '-pg' or None}" ],
+ CXXFLAGS_CLANG = [ '-Wno-unneeded-internal-declaration' ], # needed for BOOST_PARAMETER_KEYWORD
+ CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', "${profile and '-pg' or None}",
+ '${str(CXX).split("/")[-1] == "clang++" and "$CXXFLAGS_CLANG" or None}' ],
CXXFLAGS_final = [ '-O3', '-fno-threadsafe-statics', '-fno-stack-protector',
"${profile and ' ' or '-ffunction-sections'}" ],
CXXFLAGS_normal = [ '-O2', '-g' ],