xrootd
|
#include <XrdClFwd.hh>
Public Member Functions | |
Fwd () | |
Fwd (const Fwd &fwd) | |
Copy constructor. | |
Fwd (Fwd &&fwd) | |
Move constructor. | |
Fwd (std::shared_ptr< FwdStorage< T > > &&ptr) | |
Initialize from shared_ptr. | |
Fwd (const T &value) | |
Constructor from value. | |
Fwd (T &&value) | |
Move construct from value. | |
Fwd & | operator= (const T &value) |
Fwd & | operator= (T &&value) |
T & | operator* () const |
T * | operator-> () const |
bool | Valid () const |
Check if it contains a valid value. | |
A helper class for forwarding arguments between operations. In practice it's a wrapper around std::shared_ptr using FwdStorage as underlying memory.
|
inline |
Default constructor.
Allocates memory for the underlying value object without callying its constructor.
|
inline |
Copy constructor.
|
inline |
Move constructor.
|
inline |
Initialize from shared_ptr.
|
inlineexplicit |
Constructor from value.
|
inlineexplicit |
Move construct from value.
|
inline |
Dereferencing operator. Note if Fwd has not been assigned with a value this will trigger an exception
std::logic_error |
|
inline |
Dereferencing member operator. Note if Fwd has not been assigned with a value this will trigger an exception
std::logic_error |
|
inline |
Assignment operator.
value | : forwarded value |
std::logic_error |
|
inline |
Move assignment operator.
value | : forwarded value |
std::logic_error |
|
inline |
Check if it contains a valid value.