SchedBase::ReqBase Class Reference

#include <schedbase.h>

Inheritance diagram for SchedBase::ReqBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

Request base, only contains score of the request.

Definition at line 89 of file schedbase.h.


Public Member Functions

 ReqBase (float score)
virtual ~ReqBase ()
virtual void notify () const =0
 Perform notification of frontend(s).
float getScore () const
void invalidate ()
 Make this request invalid, to be deleted as soon as possible.
bool isValid () const
 Check the validity of this request.
void setValid (bool v)
 Change validity.

Private Attributes

float m_score
 Score of this request.
bool m_valid
 Validity of this request.

Constructor & Destructor Documentation

SchedBase::ReqBase::ReqBase float  score  ) 
 

Definition at line 65 of file schedbase.cpp.

SchedBase::ReqBase::~ReqBase  )  [virtual]
 

Definition at line 66 of file schedbase.cpp.


Member Function Documentation

float SchedBase::ReqBase::getScore  )  const [inline]
 

Definition at line 97 of file schedbase.h.

void SchedBase::ReqBase::invalidate  )  [inline]
 

Make this request invalid, to be deleted as soon as possible.

Definition at line 100 of file schedbase.h.

Referenced by Scheduler< Impl, ImplPtr >::AcceptReq::doConn(), and Scheduler< Impl, ImplPtr >::UploadReq::doSend().

bool SchedBase::ReqBase::isValid  )  const [inline]
 

Check the validity of this request.

Definition at line 103 of file schedbase.h.

virtual void SchedBase::ReqBase::notify  )  const [pure virtual]
 

Perform notification of frontend(s).

Implemented in Scheduler< Impl, ImplPtr >::UploadReq, Scheduler< Impl, ImplPtr >::DownloadReq, Scheduler< Impl, ImplPtr >::AcceptReq, and Scheduler< Impl, ImplPtr >::ConnReq.

void SchedBase::ReqBase::setValid bool  v  )  [inline]
 

Change validity.

Definition at line 106 of file schedbase.h.


Member Data Documentation

float SchedBase::ReqBase::m_score [private]
 

Score of this request.

Definition at line 108 of file schedbase.h.

bool SchedBase::ReqBase::m_valid [private]
 

Validity of this request.

Definition at line 109 of file schedbase.h.


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