A set of session protocols. More...
#include <I_RecHttp.h>
Public Member Functions | |
| SessionProtocolSet () | |
| Default constructor. | |
| uint32_t | indexToMask (int idx) const |
| void | markIn (int idx) |
| Mark the protocol at idx as present. | |
| void | markIn (self const &that) |
| Mark all the protocols in that as present in this. | |
| void | markOut (int idx) |
| Mark the protocol at a idx as not present. | |
| void | markOut (self const &that) |
| Mark the protocols in that as not in this. | |
| bool | contains (int idx) const |
| Test if a protocol is in the set. | |
| bool | contains (self const &that) const |
| Test if all the protocols in that are in this protocol set. | |
| void | markAllIn () |
| Mark all possible protocols. | |
| void | markAllOut () |
| Clear all protocols. | |
| bool | intersects (self const &that) |
| Check for intersection. | |
| bool | isEmpty () const |
| Check for empty set. | |
| bool | operator== (self const &that) const |
| Equality (identical sets). | |
Static Public Attributes | |
| static int const | MAX = sizeof(uint32_t) * 8 |
A set of session protocols.
This depends on using SessionProtocolNameRegistry to get the indices.
Definition at line 43 of file I_RecHttp.h.
| SessionProtocolSet::SessionProtocolSet | ( | ) | [inline] |
| bool SessionProtocolSet::contains | ( | int | idx | ) | const [inline] |
Test if a protocol is in the set.
Definition at line 72 of file I_RecHttp.h.
References indexToMask().
Referenced by MakeHttpProxyAcceptor(), and HttpProxyPort::print().
| bool SessionProtocolSet::contains | ( | self const & | that | ) | const [inline] |
Test if all the protocols in that are in this protocol set.
Definition at line 74 of file I_RecHttp.h.
| uint32_t SessionProtocolSet::indexToMask | ( | int | idx | ) | const [inline] |
| bool SessionProtocolSet::intersects | ( | self const & | that | ) | [inline] |
Check for intersection.
Definition at line 81 of file I_RecHttp.h.
Referenced by MakeHttpProxyAcceptor().
| bool SessionProtocolSet::isEmpty | ( | ) | const [inline] |
Check for empty set.
Definition at line 84 of file I_RecHttp.h.
Referenced by HttpProxyPort::print().
| void SessionProtocolSet::markAllIn | ( | ) | [inline] |
Mark all possible protocols.
Definition at line 76 of file I_RecHttp.h.
Referenced by ts_session_protocol_well_known_name_indices_init().
| void SessionProtocolSet::markAllOut | ( | ) | [inline] |
Clear all protocols.
Definition at line 78 of file I_RecHttp.h.
Referenced by HttpProxyPort::processSessionProtocolPreference().
| void SessionProtocolSet::markIn | ( | int | idx | ) | [inline] |
Mark the protocol at idx as present.
Definition at line 64 of file I_RecHttp.h.
References indexToMask().
Referenced by SessionProtocolNameRegistry::markIn(), and ts_session_protocol_well_known_name_indices_init().
| void SessionProtocolSet::markIn | ( | self const & | that | ) | [inline] |
Mark all the protocols in that as present in this.
Definition at line 66 of file I_RecHttp.h.
| void SessionProtocolSet::markOut | ( | int | idx | ) | [inline] |
Mark the protocol at a idx as not present.
Definition at line 68 of file I_RecHttp.h.
Referenced by HttpProxyPort::print().
| void SessionProtocolSet::markOut | ( | self const & | that | ) | [inline] |
Mark the protocols in that as not in this.
Definition at line 70 of file I_RecHttp.h.
| bool SessionProtocolSet::operator== | ( | self const & | that | ) | const [inline] |
Equality (identical sets).
Definition at line 87 of file I_RecHttp.h.
int const SessionProtocolSet::MAX = sizeof(uint32_t) * 8 [static] |
Definition at line 51 of file I_RecHttp.h.
Referenced by indexToMask(), and HttpProxyPort::print().
1.7.1