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

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/6]

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

Default Constructor.

Definition at line 302 of file XrdClArg.hh.

303  {
304  }

◆ Arg() [2/6]

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

Constructor.

Parameters
str: value of the argument

Definition at line 311 of file XrdClArg.hh.

311  : ArgBase<std::string>( str )
312  {
313  }

◆ Arg() [3/6]

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

Constructor.

Parameters
cstr: value of the argument

Definition at line 320 of file XrdClArg.hh.

320  : ArgBase<std::string>( cstr )
321  {
322  }

◆ Arg() [4/6]

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

Constructor.

Definition at line 327 of file XrdClArg.hh.

327  : ArgBase<std::string>( std::move( ftr ) )
328  {
329  }

◆ Arg() [5/6]

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

Constructor.

Definition at line 334 of file XrdClArg.hh.

334  : ArgBase<std::string>( fwd )
335  {
336  }

◆ Arg() [6/6]

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

Get Constructor.

Definition at line 342 of file XrdClArg.hh.

342  : ArgBase<std::string>( std::move( arg ) )
343  {
344  }

Member Function Documentation

◆ operator=()

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  }
std::unique_ptr< ValueHolder > holder
Holds the value of the argument.
Definition: XrdClArg.hh:223

References XrdCl::ArgBase< T >::holder.


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