XrdCl::Fwd< T > Class Template Reference

#include <XrdClFwd.hh>

List of all members.

Public Member Functions

 Fwd ()
 Fwd (const Fwd &fwd)
 Copy constructor.
 Fwd (Fwd &&fwd)
 Move constructor.
const Fwdoperator= (const T &value) const
const Fwdoperator= (T &&value) const
T & operator* () const
T * operator-> () const

Detailed Description

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

A helper class for forwarding arguments between operations. In practice it's a wrapper around std::shared_ptr using FwdStorage as underlying memory.


Constructor & Destructor Documentation

template<typename T>
XrdCl::Fwd< T >::Fwd (  )  [inline]

Default constructor.

Allocates memory for the underlying value object without callying its constructor.

template<typename T>
XrdCl::Fwd< T >::Fwd ( const Fwd< T > &  fwd  )  [inline]

Copy constructor.

template<typename T>
XrdCl::Fwd< T >::Fwd ( Fwd< T > &&  fwd  )  [inline]

Move constructor.


Member Function Documentation

template<typename T>
T& XrdCl::Fwd< T >::operator* (  )  const [inline]

Dereferencing operator. Note if Fwd has not been assigned with a value this will trigger an exception

Returns:
: reference to the underlying value
Exceptions:
: std::logic_error
template<typename T>
T* XrdCl::Fwd< T >::operator-> (  )  const [inline]

Dereferencing member operator. Note if Fwd has not been assigned with a value this will trigger an exception

Returns:
: pointer to the underlying value
Exceptions:
: std::logic_error
template<typename T>
const Fwd& XrdCl::Fwd< T >::operator= ( T &&  value  )  const [inline]

Move assignment operator. Note: the object can be assigned only once. Reassignment will trigger an exception

Parameters:
value : forwarded value
Exceptions:
: std::logic_error
template<typename T>
const Fwd& XrdCl::Fwd< T >::operator= ( const T &  value  )  const [inline]

Assignment operator. Note: the object can be assigned only once. Reassignment will trigger an exception

Parameters:
value : forwarded value
Exceptions:
: std::logic_error

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 5 Apr 2019 for xrootd by  doxygen 1.6.1