XRootD
XrdCl::BindPrefSelector Struct Reference
+ Collaboration diagram for XrdCl::BindPrefSelector:

Public Member Functions

 BindPrefSelector (std::vector< std::string > &&bindprefs)
 
const std::string & Get ()
 

Detailed Description

Definition at line 197 of file XrdClXRootDTransport.cc.

Constructor & Destructor Documentation

◆ BindPrefSelector()

XrdCl::BindPrefSelector::BindPrefSelector ( std::vector< std::string > &&  bindprefs)
inline

Definition at line 199 of file XrdClXRootDTransport.cc.

199  :
200  bindprefs( std::move( bindprefs ) ), next( 0 )
201  {
202  }

Member Function Documentation

◆ Get()

const std::string& XrdCl::BindPrefSelector::Get ( )
inline

Definition at line 204 of file XrdClXRootDTransport.cc.

205  {
206  std::string &ret = bindprefs[next];
207  ++next;
208  if( next >= bindprefs.size() )
209  next = 0;
210  return ret;
211  }

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