CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.3.16.1
Date:
2011/03/07 11:33:04

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.

10 {
11  switch( ptag )
12  {
14  os << "Discard New";
15  break;
17  os << "Discard Old";
18  break;
20  os << "Fail If Full";
21  break;
23  os << "Max";
24  break;
25  default:
26  os << "BUG: Undefined Policy";
27  }
28  return os;
29 }