CMS 3D CMS Logo

Enumerations | Functions

stor::enquing_policy Namespace Reference

Enumerations

enum  PolicyTag { DiscardNew, DiscardOld, FailIfFull, Max }

Functions

std::ostream & operator<< (std::ostream &os, const enquing_policy::PolicyTag &ptag)

Detailed Description

This enumeration is used to denote which queuing discipline is used for enquing items when the queue in question is full.

Author:
mommsen
Revision:
1.4
Date:
2011/03/07 15:31:31

Enumeration Type Documentation

Enumerator:
DiscardNew 
DiscardOld 
FailIfFull 
Max 

Definition at line 23 of file EnquingPolicyTag.h.


Function Documentation

std::ostream & stor::enquing_policy::operator<< ( std::ostream &  os,
const enquing_policy::PolicyTag ptag 
)

Definition at line 8 of file EnquingPolicyTag.cc.

References DiscardNew, DiscardOld, FailIfFull, and Max.

{
  switch( ptag )
    {
    case enquing_policy::DiscardNew:
      os << "Discard New";
      break;
    case enquing_policy::DiscardOld:
      os << "Discard Old";
      break;
    case enquing_policy::FailIfFull:
      os << "Fail If Full";
      break;
    case enquing_policy::Max:
      os << "Max";
      break;
    default:
      os << "BUG: Undefined Policy";
    }
  return os;
}