Metric.h File Reference

#include <map>
#include <string>
#include <sstream>
#include <iostream>
#include "Utils.h"

Include dependency graph for Metric.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  NumericResult
struct  MetricResult
class  Metric
class  NumberFunctions
class  NumberSinks
class  NumberResources
class  NumberVariables
class  NumberClasses
class  NumberInput
class  NumberDiffuseInputs
class  NumberSunkDiffuseInputs

Functions

std::ostream & operator<< (std::ostream &stream, const NumericResult &)
std::ostream & operator<< (std::ostream &stream, const MetricResult &)


Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const MetricResult  
)

Definition at line 36 of file Metric.cpp.

References MetricResult::main, and MetricResult::storage.

00036                                                                        {
00037     stream << "(main=" << metric.main << ')';
00038     for (map<string, NumericResult>::const_iterator iter=metric.storage.begin(); iter!=metric.storage.end();++iter)
00039         stream << '(' << iter->first << "=" <<  iter->second << ')';
00040     return stream;
00041 }

std::ostream& operator<< ( std::ostream &  stream,
const NumericResult  
)

Definition at line 31 of file Metric.cpp.

References NumericResult::toString().

00031                                                                      {
00032     stream << num.toString();
00033     return stream;
00034 }

Here is the call graph for this function:


Generated on Wed Feb 27 20:31:19 2008 for php.ast.svn.src. by  doxygen 1.5.3