The Gaudi Framework  master (ba5b4fb7)
Loading...
Searching...
No Matches
THistSvc::THistID Struct Reference

Helper struct that bundles the histogram ID with a mutex, TFile and TObject*. More...

Collaboration diagram for THistSvc::THistID:

Public Member Functions

 THistID ()=default
 
 ~THistID ()=default
 
 THistID (const THistID &rhs)=delete
 
THistIDoperator= (const THistID &rhs)=delete
 
 THistID (THistID &&rhs)=default
 
THistIDoperator= (THistID &&rhs)=default
 
 THistID (std::string &i, bool &t, TObject *o, TFile *f)
 
 THistID (std::string &i, bool &t, TObject *o, TFile *f, Mode m)
 
bool operator< (THistID const &rhs) const
 

Public Attributes

std::string id {}
 
TObject * obj { nullptr }
 
TFile * file { nullptr }
 
std::unique_ptr< histMut_tmutex
 
Mode mode { INVALID }
 
ObjectType type { ObjectType::UNKNOWN }
 
bool temp { true }
 
bool shared { false }
 

Friends

std::ostream & operator<< (std::ostream &ost, const THistID &hid)
 

Detailed Description

Helper struct that bundles the histogram ID with a mutex, TFile and TObject*.

Definition at line 232 of file THistSvc.h.

Constructor & Destructor Documentation

◆ THistID() [1/5]

THistSvc::THistID::THistID ( )
default

◆ ~THistID()

THistSvc::THistID::~THistID ( )
default

◆ THistID() [2/5]

THistSvc::THistID::THistID ( const THistID & rhs)
delete

◆ THistID() [3/5]

THistSvc::THistID::THistID ( THistID && rhs)
default

◆ THistID() [4/5]

THistSvc::THistID::THistID ( std::string & i,
bool & t,
TObject * o,
TFile * f )
inline

Definition at line 248 of file THistSvc.h.

248: id( i ), obj( o ), file( f ), temp( t ) {}
TObject * obj
Definition THistSvc.h:234
std::string id
Definition THistSvc.h:233

◆ THistID() [5/5]

THistSvc::THistID::THistID ( std::string & i,
bool & t,
TObject * o,
TFile * f,
Mode m )
inline

Definition at line 249 of file THistSvc.h.

250 : id( i ), obj( o ), file( f ), mode( m ), temp( t ) {}

Member Function Documentation

◆ operator<()

bool THistSvc::THistID::operator< ( THistID const & rhs) const
inline

Definition at line 252 of file THistSvc.h.

252{ return ( obj < rhs.obj ); }

◆ operator=() [1/2]

THistID & THistSvc::THistID::operator= ( const THistID & rhs)
delete

◆ operator=() [2/2]

THistID & THistSvc::THistID::operator= ( THistID && rhs)
default

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & ost,
const THistID & hid )
friend

Definition at line 254 of file THistSvc.h.

254 {
255 ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode
256 << " m: " << hid.mutex.get() << " o: " << hid.obj << " T: " << static_cast<int>( hid.type ) << " "
257 << hid.obj->IsA()->GetName();
258 return ost;
259 }

Member Data Documentation

◆ file

TFile* THistSvc::THistID::file { nullptr }

Definition at line 235 of file THistSvc.h.

235{ nullptr };

◆ id

std::string THistSvc::THistID::id {}

Definition at line 233 of file THistSvc.h.

233{};

◆ mode

Mode THistSvc::THistID::mode { INVALID }

Definition at line 237 of file THistSvc.h.

237{ INVALID };

◆ mutex

std::unique_ptr<histMut_t> THistSvc::THistID::mutex

Definition at line 236 of file THistSvc.h.

◆ obj

TObject* THistSvc::THistID::obj { nullptr }

Definition at line 234 of file THistSvc.h.

234{ nullptr };

◆ shared

bool THistSvc::THistID::shared { false }

Definition at line 240 of file THistSvc.h.

240{ false };

◆ temp

bool THistSvc::THistID::temp { true }

Definition at line 239 of file THistSvc.h.

239{ true };

◆ type

ObjectType THistSvc::THistID::type { ObjectType::UNKNOWN }

Definition at line 238 of file THistSvc.h.


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