XRootD
Loading...
Searching...
No Matches
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 195 of file XrdClXRootDTransport.cc.

Constructor & Destructor Documentation

◆ BindPrefSelector()

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

Definition at line 197 of file XrdClXRootDTransport.cc.

197 :
198 bindprefs( std::move( bindprefs ) ), next( 0 )
199 {
200 }

Member Function Documentation

◆ Get()

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

Definition at line 202 of file XrdClXRootDTransport.cc.

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

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