Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Public Attributes
Arc::ScalableTime< int > Class Template Reference

#include <JobDescription.h>

Collaboration diagram for Arc::ScalableTime< int >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScalableTime ()
 ScalableTime (const int &t)
int scaleMin (double s) const
int scaleMax (double s) const

Public Attributes

std::pair< std::string, double > benchmark
Range< int > range

Detailed Description

template<>
class Arc::ScalableTime< int >

Definition at line 56 of file JobDescription.h.


Constructor & Destructor Documentation

Arc::ScalableTime< int >::ScalableTime ( ) [inline]

Definition at line 58 of file JobDescription.h.

: benchmark("", -1.) {}
Arc::ScalableTime< int >::ScalableTime ( const int &  t) [inline]

Definition at line 59 of file JobDescription.h.

: range(t) {}

Member Function Documentation

int Arc::ScalableTime< int >::scaleMax ( double  s) const [inline]

Definition at line 65 of file JobDescription.h.

{ return (int)(range.max*benchmark.second/s); }
int Arc::ScalableTime< int >::scaleMin ( double  s) const [inline]

Definition at line 64 of file JobDescription.h.

{ return (int)(range.min*benchmark.second/s); }

Member Data Documentation

std::pair<std::string, double> Arc::ScalableTime< int >::benchmark

Definition at line 61 of file JobDescription.h.

Definition at line 62 of file JobDescription.h.


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