XRootD
XrdClHttp::VerbsCache::HttpVerbs Class Reference

#include <XrdClHttpOptionsCache.hh>

+ Collaboration diagram for XrdClHttp::VerbsCache::HttpVerbs:

Public Member Functions

 HttpVerbs ()=default
 
 HttpVerbs (HttpVerb verb)
 
unsigned GetValue () const
 
bool IsSet (HttpVerb verb) const
 
HttpVerbsoperator|= (HttpVerb verb)
 

Detailed Description

Definition at line 46 of file XrdClHttpOptionsCache.hh.

Constructor & Destructor Documentation

◆ HttpVerbs() [1/2]

XrdClHttp::VerbsCache::HttpVerbs::HttpVerbs ( )
default

◆ HttpVerbs() [2/2]

XrdClHttp::VerbsCache::HttpVerbs::HttpVerbs ( HttpVerb  verb)
inline

Definition at line 49 of file XrdClHttpOptionsCache.hh.

49 : m_verbs(static_cast<unsigned>(verb)) {}

Member Function Documentation

◆ GetValue()

unsigned XrdClHttp::VerbsCache::HttpVerbs::GetValue ( ) const
inline

Definition at line 56 of file XrdClHttpOptionsCache.hh.

56 {return m_verbs;}

◆ IsSet()

bool XrdClHttp::VerbsCache::HttpVerbs::IsSet ( HttpVerb  verb) const
inline

Definition at line 51 of file XrdClHttpOptionsCache.hh.

52  {
53  if (verb == HttpVerb::kUnset) {return !m_verbs;}
54  return static_cast<unsigned>(m_verbs) & static_cast<unsigned>(verb);
55  }

References XrdClHttp::VerbsCache::kUnset.

Referenced by XrdClHttp::VerbsCache::Put().

+ Here is the caller graph for this function:

◆ operator|=()

HttpVerbs& XrdClHttp::VerbsCache::HttpVerbs::operator|= ( HttpVerb  verb)
inline

Definition at line 50 of file XrdClHttpOptionsCache.hh.

50 {m_verbs |= static_cast<unsigned>(verb); return *this;}

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