Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
Arc::cmp Class Reference
Collaboration diagram for Arc::cmp:
Collaboration graph

List of all members.

Public Member Functions

 cmp (const std::string benchmark)
bool ComparePerformance (const ExecutionTarget *T1, const ExecutionTarget *T2)

Private Attributes

std::string benchmark

Detailed Description

Definition at line 18 of file BenchmarkBroker.cpp.

Constructor & Destructor Documentation

Arc::cmp::cmp ( const std::string  benchmark) [inline]

Definition at line 20 of file BenchmarkBroker.cpp.

Member Function Documentation

bool Arc::cmp::ComparePerformance ( const ExecutionTarget T1,
const ExecutionTarget T2 

Definition at line 28 of file BenchmarkBroker.cpp.

    double T1performance = 0;
    double T2performance = 0;
    std::map<std::string, double>::const_iterator iter;

    for (iter = T1->Benchmarks.begin(); iter != T1->Benchmarks.end(); iter++)
      if (lower(iter->first) == benchmark) {
        T1performance = iter->second;

    for (iter = T2->Benchmarks.begin(); iter != T2->Benchmarks.end(); iter++)
      if (lower(iter->first) == benchmark) {
        T1performance = iter->second;

    return T1performance > T2performance;

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string Arc::cmp::benchmark [private]

Definition at line 25 of file BenchmarkBroker.cpp.

The documentation for this class was generated from the following file: