Logo ROOT  
Reference Guide
TObjLink Class Reference

Wrapper around a TObject so it can be stored in a TList.

Definition at line 127 of file TList.h.

Public Member Functions

 TObjLink (TObject *obj)
 
virtual ~TObjLink ()
 
virtual Option_tGetAddOption () const
 
TObjectGetObject () const
 
TObject ** GetObjectRef ()
 
virtual Option_tGetOption () const
 
TObjLinkNext ()
 
TObjLinkPtr_t NextSP ()
 
TObjLinkPrev ()
 
TObjLinkPtr_t PrevSP ()
 
void SetObject (TObject *obj)
 
virtual void SetOption (Option_t *)
 

Private Types

using TObjLinkPtr_t = std::shared_ptr< TObjLink >
 
using TObjLinkWeakPtr_t = std::weak_ptr< TObjLink >
 

Private Member Functions

 TObjLink ()=delete
 
 TObjLink (const TObjLink &)=delete
 
TObjLinkoperator= (const TObjLink &)=delete
 

Private Attributes

TObjLinkPtr_t fNext
 
TObjectfObject
 
TObjLinkWeakPtr_t fPrev
 

Friends

class TList
 

#include <TList.h>

Inheritance diagram for TObjLink:
[legend]

Member Typedef Documentation

◆ TObjLinkPtr_t

using TObjLink::TObjLinkPtr_t = std::shared_ptr<TObjLink>
private

Definition at line 132 of file TList.h.

◆ TObjLinkWeakPtr_t

using TObjLink::TObjLinkWeakPtr_t = std::weak_ptr<TObjLink>
private

Definition at line 133 of file TList.h.

Constructor & Destructor Documentation

◆ TObjLink() [1/3]

TObjLink::TObjLink ( const TObjLink )
privatedelete

◆ TObjLink() [2/3]

TObjLink::TObjLink ( )
privatedelete

◆ TObjLink() [3/3]

TObjLink::TObjLink ( TObject obj)
inline

Definition at line 146 of file TList.h.

◆ ~TObjLink()

virtual TObjLink::~TObjLink ( )
inlinevirtual

Definition at line 147 of file TList.h.

Member Function Documentation

◆ GetAddOption()

virtual Option_t * TObjLink::GetAddOption ( ) const
inlinevirtual

Reimplemented in TObjOptLink.

Definition at line 152 of file TList.h.

◆ GetObject()

TObject * TObjLink::GetObject ( ) const
inline

Definition at line 149 of file TList.h.

◆ GetObjectRef()

TObject ** TObjLink::GetObjectRef ( )
inline

Definition at line 150 of file TList.h.

◆ GetOption()

virtual Option_t * TObjLink::GetOption ( ) const
inlinevirtual

Reimplemented in TObjOptLink.

Definition at line 153 of file TList.h.

◆ Next()

TObjLink * TObjLink::Next ( )
inline

Definition at line 155 of file TList.h.

◆ NextSP()

TObjLinkPtr_t TObjLink::NextSP ( )
inline

Definition at line 157 of file TList.h.

◆ operator=()

TObjLink & TObjLink::operator= ( const TObjLink )
privatedelete

◆ Prev()

TObjLink * TObjLink::Prev ( )
inline

Definition at line 156 of file TList.h.

◆ PrevSP()

TObjLinkPtr_t TObjLink::PrevSP ( )
inline

Definition at line 158 of file TList.h.

◆ SetObject()

void TObjLink::SetObject ( TObject obj)
inline

Definition at line 151 of file TList.h.

◆ SetOption()

virtual void TObjLink::SetOption ( Option_t )
inlinevirtual

Reimplemented in TObjOptLink.

Definition at line 154 of file TList.h.

Friends And Related Function Documentation

◆ TList

friend class TList
friend

Definition at line 129 of file TList.h.

Member Data Documentation

◆ fNext

TObjLinkPtr_t TObjLink::fNext
private

Definition at line 135 of file TList.h.

◆ fObject

TObject* TObjLink::fObject
private

Definition at line 138 of file TList.h.

◆ fPrev

TObjLinkWeakPtr_t TObjLink::fPrev
private

Definition at line 136 of file TList.h.


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