Adaptation::ServicePlan Class Reference

#include <ServiceGroups.h>

Collaboration diagram for Adaptation::ServicePlan:

Public Types

typedef unsigned int Pos
 

Public Member Functions

 ServicePlan ()
 
 ServicePlan (const ServiceGroupPointer &g, const ServiceFilter &filter)
 true iff there are no more services planned More...
 
bool exhausted () const
 
ServicePointer current () const
 returns nil if the plan is complete More...
 
ServicePointer replacement (const ServiceFilter &filter)
 next to try after failure More...
 
ServicePointer next (const ServiceFilter &filter)
 next in chain after success More...
 
std::ostream & print (std::ostream &os) const
 

Private Attributes

ServiceGroupPointer group
 the group we are iterating More...
 
Pos pos
 current service position within the group More...
 
bool atEof
 cached information for better performance More...
 

Detailed Description

iterates services stored in a group; iteration is not linear because we need to both replace failed services and advance to the next chain link

Definition at line 122 of file ServiceGroups.h.

Member Typedef Documentation

Definition at line 125 of file ServiceGroups.h.

Constructor & Destructor Documentation

Adaptation::ServicePlan::ServicePlan ( )

Definition at line 275 of file ServiceGroups.cc.

Adaptation::ServicePlan::ServicePlan ( const ServiceGroupPointer g,
const ServiceFilter filter 
)
explicit

Definition at line 279 of file ServiceGroups.cc.

References atEof, group, and pos.

Member Function Documentation

Adaptation::ServicePointer Adaptation::ServicePlan::current ( ) const

current service

Definition at line 289 of file ServiceGroups.cc.

bool Adaptation::ServicePlan::exhausted ( ) const
inline

Definition at line 132 of file ServiceGroups.h.

References atEof.

Adaptation::ServicePointer Adaptation::ServicePlan::next ( const ServiceFilter filter)

Definition at line 304 of file ServiceGroups.cc.

std::ostream & Adaptation::ServicePlan::print ( std::ostream &  os) const

Definition at line 312 of file ServiceGroups.cc.

Referenced by Adaptation::operator<<().

Adaptation::ServicePointer Adaptation::ServicePlan::replacement ( const ServiceFilter filter)

Definition at line 296 of file ServiceGroups.cc.

Member Data Documentation

bool Adaptation::ServicePlan::atEof
private

Definition at line 144 of file ServiceGroups.h.

Referenced by exhausted(), and ServicePlan().

ServiceGroupPointer Adaptation::ServicePlan::group
private

Definition at line 142 of file ServiceGroups.h.

Referenced by ServicePlan().

Pos Adaptation::ServicePlan::pos
private

Definition at line 143 of file ServiceGroups.h.

Referenced by ServicePlan().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors