XRootD
Loading...
Searching...
No Matches
XrdCl::Arg< std::string > Class Reference

#include <XrdClArg.hh>

+ Inheritance diagram for XrdCl::Arg< std::string >:
+ Collaboration diagram for XrdCl::Arg< std::string >:

Public Member Functions

 Arg ()
 Default Constructor.
 
 Arg ()
 Default Constructor.
 
 Arg (Arg &&arg)
 Get Constructor.
 
 Arg (Arg &&arg)
 Get Constructor.
 
 Arg (const char *cstr)
 
 Arg (const Fwd< std::string > &fwd)
 
 Arg (const Fwd< std::string > &fwd)
 Constructor.
 
 Arg (std::future< std::string > &&ftr)
 
 Arg (std::future< std::string > &&ftr)
 Constructor.
 
 Arg (std::string str)
 
 Arg (std::string value)
 
Argoperator= (Arg &&arg)
 Get-Assignment.
 
Argoperator= (Arg &&arg)
 Get-Assignment.
 
- Public Member Functions inherited from XrdCl::ArgBase< std::string >
 ArgBase ()
 Default Constructor.
 
 ArgBase (ArgBase &&arg)
 Get Constructor.
 
 ArgBase (const Fwd< std::string > &fwd)
 
 ArgBase (std::future< std::string > &&ftr)
 
 ArgBase (std::string value)
 
virtual ~ArgBase ()
 Destructor.
 
std::string & Get () const
 
 operator std::string () const
 

Additional Inherited Members

- Protected Attributes inherited from XrdCl::ArgBase< std::string >
std::unique_ptr< ValueHolder > holder
 Holds the value of the argument.
 

Detailed Description

Operation argument. Specialized for 'std::string', might be constructed in addition from c-like string (const char*)

Definition at line 295 of file XrdClArg.hh.

Constructor & Destructor Documentation

◆ Arg() [1/11]

XrdCl::Arg< std::string >::Arg ( )
inline

Default Constructor.

Definition at line 302 of file XrdClArg.hh.

303 {
304 }

Referenced by Arg(), and operator=().

+ Here is the caller graph for this function:

◆ Arg() [2/11]

XrdCl::Arg< std::string >::Arg ( std::string str)
inline

Constructor.

Parameters
str: value of the argument

Definition at line 311 of file XrdClArg.hh.

312 {
313 }

References XrdCl::ArgBase< std::string >::ArgBase(), and XrdCl::ArgBase< std::string >::operator std::string().

+ Here is the call graph for this function:

◆ Arg() [3/11]

XrdCl::Arg< std::string >::Arg ( const char * cstr)
inline

Constructor.

Parameters
cstr: value of the argument

Definition at line 320 of file XrdClArg.hh.

321 {
322 }

References XrdCl::ArgBase< std::string >::ArgBase(), and XrdCl::ArgBase< std::string >::operator std::string().

+ Here is the call graph for this function:

◆ Arg() [4/11]

XrdCl::Arg< std::string >::Arg ( std::future< std::string > && ftr)
inline

Constructor.

Definition at line 327 of file XrdClArg.hh.

328 {
329 }

References XrdCl::ArgBase< std::string >::ArgBase(), and XrdCl::ArgBase< std::string >::operator std::string().

+ Here is the call graph for this function:

◆ Arg() [5/11]

XrdCl::Arg< std::string >::Arg ( const Fwd< std::string > & fwd)
inline

Constructor.

Definition at line 334 of file XrdClArg.hh.

335 {
336 }

References XrdCl::ArgBase< std::string >::ArgBase(), and XrdCl::ArgBase< std::string >::operator std::string().

+ Here is the call graph for this function:

◆ Arg() [6/11]

XrdCl::Arg< std::string >::Arg ( Arg< std::string > && arg)
inline

Get Constructor.

Definition at line 342 of file XrdClArg.hh.

343 {
344 }

References Arg(), XrdCl::ArgBase< std::string >::ArgBase(), and XrdCl::ArgBase< std::string >::operator std::string().

+ Here is the call graph for this function:

◆ Arg() [7/11]

XrdCl::Arg< std::string >::Arg ( )
inline

Default Constructor.

Definition at line 240 of file XrdClArg.hh.

241 {
242 }

◆ Arg() [8/11]

XrdCl::Arg< std::string >::Arg ( std::string value)
inline

Constructor.

Parameters
value: value of the argument (will be std::moved)

Definition at line 249 of file XrdClArg.hh.

◆ Arg() [9/11]

XrdCl::Arg< std::string >::Arg ( std::future< std::string > && ftr)
inline

Constructor.

Parameters
ftr: future value of the argument (will be std::moved)

Definition at line 258 of file XrdClArg.hh.

258 : ArgBase<T>( std::move( ftr ) )
259 {
260 }

◆ Arg() [10/11]

XrdCl::Arg< std::string >::Arg ( const Fwd< std::string > & fwd)
inline

Constructor.

Parameters
fwd: forwarded value of the argument (will be std::moved)

Definition at line 267 of file XrdClArg.hh.

267 : ArgBase<T>( fwd )
268 {
269 }

◆ Arg() [11/11]

XrdCl::Arg< std::string >::Arg ( Arg< std::string > && arg)
inline

Get Constructor.

Definition at line 274 of file XrdClArg.hh.

274 : ArgBase<T>( std::move( arg ) )
275 {
276 }

Member Function Documentation

◆ operator=() [1/2]

Arg & XrdCl::Arg< std::string >::operator= ( Arg< std::string > && arg)
inline

Get-Assignment.

Definition at line 281 of file XrdClArg.hh.

282 {
283 if( &arg == this ) return *this;
284 this->holder = std::move( arg.holder );
285 return *this;
286 }
std::unique_ptr< ValueHolder > holder
Definition XrdClArg.hh:223

◆ operator=() [2/2]

Arg & XrdCl::Arg< std::string >::operator= ( Arg< std::string > && arg)
inline

Get-Assignment.

Definition at line 349 of file XrdClArg.hh.

350 {
351 if( &arg == this ) return *this;
352 this->holder = std::move( arg.holder );
353 return *this;
354 }

References Arg(), and XrdCl::ArgBase< std::string >::holder.

+ Here is the call graph for this function:

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