xrootd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
XrdCl::Ctx< T > Struct Template Reference

Utility class for storing a pointer to operation context. More...

#include <XrdClCtx.hh>

Inheritance diagram for XrdCl::Ctx< T >:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::Ctx< T >:
Collaboration graph
[legend]

Public Member Functions

 Ctx ()
 Default constructor.
 
 Ctx (T *ctx)
 Constructor (from pointer)
 
 Ctx (T &ctx)
 Constructor (from reference)
 
 Ctx (const Ctx &ctx)
 Copy constructor.
 
 Ctx (Ctx &&ctx)
 Move constructor.
 
Ctxoperator= (T *ctx)
 Assignment operator (from pointer)
 
Ctxoperator= (T &ctx)
 Assignment operator (from reference)
 
T & operator* () const
 
T * operator-> () const
 

Detailed Description

template<typename T>
struct XrdCl::Ctx< T >

Utility class for storing a pointer to operation context.

Constructor & Destructor Documentation

◆ Ctx() [1/5]

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

Default constructor.

◆ Ctx() [2/5]

template<typename T >
XrdCl::Ctx< T >::Ctx ( T *  ctx)
inline

Constructor (from pointer)

◆ Ctx() [3/5]

template<typename T >
XrdCl::Ctx< T >::Ctx ( T &  ctx)
inline

Constructor (from reference)

◆ Ctx() [4/5]

template<typename T >
XrdCl::Ctx< T >::Ctx ( const Ctx< T > &  ctx)
inline

Copy constructor.

◆ Ctx() [5/5]

template<typename T >
XrdCl::Ctx< T >::Ctx ( Ctx< T > &&  ctx)
inline

Move constructor.

Member Function Documentation

◆ operator*()

template<typename T >
T & XrdCl::Ctx< T >::operator* ( ) const
inline

Dereferencing operator. Note if Ctx is a null-reference this will trigger an exception

Returns
: reference to the underlying value
Exceptions
std::logic_error

◆ operator->()

template<typename T >
T * XrdCl::Ctx< T >::operator-> ( ) const
inline

Dereferencing member operator. Note if Ctx is a null-reference this will trigger an exception

Returns
: pointer to the underlying value
Exceptions
std::logic_error

◆ operator=() [1/2]

template<typename T >
Ctx & XrdCl::Ctx< T >::operator= ( T &  ctx)
inline

Assignment operator (from reference)

◆ operator=() [2/2]

template<typename T >
Ctx & XrdCl::Ctx< T >::operator= ( T *  ctx)
inline

Assignment operator (from pointer)


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