![]() |
XRootD
|
#include <XrdClAnyObject.hh>
Public Member Functions | |
AnyObject () | |
Constructor. More... | |
~AnyObject () | |
Destructor. More... | |
template<class Type > | |
void | Get (Type &object) |
Retrieve the object being held. More... | |
template<class Type > | |
bool | Has () |
bool | HasOwnership () const |
Check if we own the object being stored. More... | |
template<class Type > | |
void | Set (Type object, bool own=true) |
Simple implementation of a type safe holder for any object pointer It would have been a better idea to use boost::any here but we don't want to depend on boost
Definition at line 32 of file XrdClAnyObject.hh.
|
inline |
Constructor.
Definition at line 38 of file XrdClAnyObject.hh.
|
inline |
Destructor.
Definition at line 43 of file XrdClAnyObject.hh.
|
inline |
Retrieve the object being held.
Definition at line 78 of file XrdClAnyObject.hh.
Referenced by XrdCl::XRootDTransport::DecFileInstCnt(), XrdCl::FileSystem::DirList(), XrdCl::XRootDTransport::Disconnect(), XrdCl::XRootDTransport::GetBindPreference(), XrdCl::Utils::GetProtocolVersion(), XrdCl::GetResponse(), XrdCl::XRootDTransport::GetSignature(), XrdCl::PgReadSubstitutionHandler::HandleResponse(), XrdPosixFileRH::HandleResponse(), XrdCl::EcPgReadResponseHandler::HandleResponse(), XrdCl::MetalinkReadHandler::HandleResponse(), XrdCl::UnpackXAttrStatus::HandleResponse(), XrdCl::UnpackXAttr::HandleResponse(), XrdCl::XRootDTransport::HandShake(), XrdCl::XRootDTransport::HandShakeDone(), XrdCl::XRootDTransport::IsStreamBroken(), XrdCl::XRootDTransport::IsStreamTTLElapsed(), XrdCl::XRootDTransport::MessageReceived(), XrdCl::XRootDTransport::MessageSent(), XrdCl::XRootDTransport::MultiplexSubStream(), XrdCl::XRootDTransport::NbConnectedStrm(), XrdCl::XRootDTransport::NeedEncryption(), XrdCl::Stream::OnConnect(), XrdCl::FileStateHandler::OnOpen(), XrdCl::FileStateHandler::OnStateResponse(), XrdCl::FileStateHandler::PgRead(), XrdCl::FileStateHandler::PgWrite(), XrdCl::XRootDMsgHandler::Process(), XrdCl::XRootDTransport::Query(), XrdCl::StatAction::Serialize(), XrdCl::ReadAction::Serialize(), XrdCl::PgReadAction::Serialize(), XrdCl::VectorReadAction::Serialize(), XrdCl::FcntlAction::Serialize(), XrdCl::XRootDTransport::SubStreamNumber(), XrdCl::To(), XrdCl::MessageUtils::WaitForResponse(), and XrdSsiTaskReal::XeqEvent().
|
inline |
Definition at line 92 of file XrdClAnyObject.hh.
|
inline |
Check if we own the object being stored.
Definition at line 101 of file XrdClAnyObject.hh.
|
inline |
Grab an object By default the ownership of the object is taken as well, ie. the object will be deleted when the AnyObject holding it is deleted. To release an object grab a zero pointer, ie. (int *)0
object | object pointer |
own | take the ownership or not |
Definition at line 59 of file XrdClAnyObject.hh.
Referenced by XrdCl::LocalFileHandler::DelXAttr(), XrdCl::AsyncVectorReader::GetResponse(), XrdCl::LocalFileHandler::GetXAttr(), XrdCl::PgReadSubstitutionHandler::HandleResponse(), XrdCl::ZipListHandler::HandleResponse(), XrdCl::EcPgReadResponseHandler::HandleResponse(), XrdCl::UnpackXAttr::HandleResponse(), XrdCl::XRootDTransport::InitializeChannel(), XrdCl::LocalFileHandler::ListXAttr(), XrdCl::Stream::Query(), XrdCl::XRootDTransport::Query(), XrdCl::LocalFileHandler::Read(), XrdCl::LocalFileHandler::ReadV(), XrdCl::ZipStatImpl< HasHndl >::RunImpl(), XrdCl::ZipListImpl< HasHndl >::RunImpl(), XrdEc::ScheduleHandler(), XrdCl::LocalFileHandler::SetXAttr(), XrdCl::LocalFileHandler::Stat(), XrdCl::FileStateHandler::Stat(), XrdCl::LocalFileHandler::VectorRead(), and XrdCl::MessageUtils::WaitForResponse().