Enumerations | |
enum | PolicyTag { DiscardNew, DiscardOld, FailIfFull, Max } |
Functions | |
std::ostream & | operator<< (std::ostream &os, const enquing_policy::PolicyTag &ptag) |
This enumeration is used to denote which queuing discipline is used for enquing items when the queue in question is full.
Definition at line 23 of file EnquingPolicyTag.h.
{ DiscardNew, DiscardOld, FailIfFull, Max };
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; }