Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TFitResultPtr Class Reference

Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointer, i.e.

it is like a smart pointer to a TFitResult. In addition it provides an automatic conversion to an integer. In this way it can be returned from the TH1::Fit method and the change in TH1::Fit be backward compatible.

Definition at line 32 of file TFitResultPtr.h.

Public Member Functions

 TFitResultPtr (const std::shared_ptr< TFitResult > &p)
 Constructor from a TFitResult pointer.
 
 TFitResultPtr (const TFitResultPtr &rhs)
 
 TFitResultPtr (int status=-1)
 
 TFitResultPtr (TFitResult *p)
 Constructor from a TFitResult pointer.
 
virtual ~TFitResultPtr ()
 Destructor.
 
TFitResultGet () const
 Return contained pointer.
 
virtual TClassIsA () const
 
 operator int () const
 
TFitResultoperator* () const
 Implement the de-reference operator to make the class acts as a pointer to a TFitResult assert in case the class does not contain a pointer to TFitResult.
 
TFitResultoperator-> () const
 Implement the -> operator to make the class acts as a pointer to a TFitResult.
 
TFitResultPtroperator= (const TFitResultPtr &rhs)
 Assignment operator.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Attributes

std::shared_ptr< TFitResultfPointer
 ! Smart Pointer to TFitResult class
 
int fStatus
 fit status code
 

#include <TFitResultPtr.h>

Constructor & Destructor Documentation

◆ TFitResultPtr() [1/4]

TFitResultPtr::TFitResultPtr ( int status = -1)
inline

Definition at line 35 of file TFitResultPtr.h.

◆ TFitResultPtr() [2/4]

TFitResultPtr::TFitResultPtr ( const std::shared_ptr< TFitResult > & p)

Constructor from a TFitResult pointer.

Definition at line 28 of file TFitResultPtr.cxx.

◆ TFitResultPtr() [3/4]

TFitResultPtr::TFitResultPtr ( TFitResult * p)

Constructor from a TFitResult pointer.

Definition at line 38 of file TFitResultPtr.cxx.

◆ TFitResultPtr() [4/4]

TFitResultPtr::TFitResultPtr ( const TFitResultPtr & rhs)

Definition at line 45 of file TFitResultPtr.cxx.

◆ ~TFitResultPtr()

TFitResultPtr::~TFitResultPtr ( )
virtual

Destructor.

Delete the contained TFitResult pointer if needed if ( fPointer != 0) delete fPointer;

Definition at line 55 of file TFitResultPtr.cxx.

Member Function Documentation

◆ Class()

static TClass * TFitResultPtr::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TFitResultPtr::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TFitResultPtr::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 60 of file TFitResultPtr.h.

◆ DeclFileName()

static const char * TFitResultPtr::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 60 of file TFitResultPtr.h.

◆ Get()

TFitResult * TFitResultPtr::Get ( ) const

Return contained pointer.

Definition at line 86 of file TFitResultPtr.cxx.

◆ IsA()

virtual TClass * TFitResultPtr::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 60 of file TFitResultPtr.h.

◆ operator int()

TFitResultPtr::operator int ( ) const
inline

Definition at line 43 of file TFitResultPtr.h.

◆ operator*()

TFitResult & TFitResultPtr::operator* ( ) const

Implement the de-reference operator to make the class acts as a pointer to a TFitResult assert in case the class does not contain a pointer to TFitResult.

Definition at line 63 of file TFitResultPtr.cxx.

◆ operator->()

TFitResult * TFitResultPtr::operator-> ( ) const

Implement the -> operator to make the class acts as a pointer to a TFitResult.

assert in case the class does not contain a pointer to TFitResult

Definition at line 75 of file TFitResultPtr.cxx.

◆ operator=()

TFitResultPtr & TFitResultPtr::operator= ( const TFitResultPtr & rhs)

Assignment operator.

if needed copy the TFitResult object and delete previous one if existing

Definition at line 94 of file TFitResultPtr.cxx.

◆ Streamer()

virtual void TFitResultPtr::Streamer ( TBuffer & )
virtual

◆ StreamerNVirtual()

void TFitResultPtr::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 60 of file TFitResultPtr.h.

Member Data Documentation

◆ fPointer

std::shared_ptr<TFitResult> TFitResultPtr::fPointer
private

! Smart Pointer to TFitResult class

Definition at line 58 of file TFitResultPtr.h.

◆ fStatus

int TFitResultPtr::fStatus
private

fit status code

Definition at line 57 of file TFitResultPtr.h.

Libraries for TFitResultPtr:

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