XRootD
XrdCl::Arg< T > Class Template Reference

#include <XrdClArg.hh>

+ Inheritance diagram for XrdCl::Arg< T >:
+ Collaboration diagram for XrdCl::Arg< T >:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from XrdCl::ArgBase< T >
std::unique_ptr< ValueHolderholder
 Holds the value of the argument. More...
 

Detailed Description

template<typename T>
class XrdCl::Arg< T >

Operation argument. The argument is optional, user may initialize it with 'notdef'

  • T : real type of the argument

Definition at line 233 of file XrdClArg.hh.

Constructor & Destructor Documentation

◆ Arg() [1/5]

template<typename T >
XrdCl::Arg< T >::Arg ( )
inline

Default Constructor.

Definition at line 240 of file XrdClArg.hh.

241  {
242  }

◆ Arg() [2/5]

template<typename T >
XrdCl::Arg< T >::Arg ( value)
inline

Constructor.

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

Definition at line 249 of file XrdClArg.hh.

249  : ArgBase<T>( std::move( value ) )
250  {
251  }

◆ Arg() [3/5]

template<typename T >
XrdCl::Arg< T >::Arg ( std::future< T > &&  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() [4/5]

template<typename T >
XrdCl::Arg< T >::Arg ( const Fwd< T > &  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() [5/5]

template<typename T >
XrdCl::Arg< T >::Arg ( Arg< T > &&  arg)
inline

Get Constructor.

Definition at line 274 of file XrdClArg.hh.

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

Member Function Documentation

◆ operator=()

template<typename T >
Arg& XrdCl::Arg< T >::operator= ( Arg< T > &&  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
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: