BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
detail::CompareAndPrint Class Reference

#include <DataVector.h>

Public Member Functions

 CompareAndPrint (bool quiet)
template<typename Element>
bool operator() (Element *f, Element *s) const
 CompareAndPrint (bool quiet)
template<typename Element>
bool operator() (Element *f, Element *s) const
 CompareAndPrint (bool quiet)
template<typename Element>
bool operator() (Element *f, Element *s) const

Detailed Description

Constructor & Destructor Documentation

◆ CompareAndPrint() [1/3]

detail::CompareAndPrint::CompareAndPrint ( bool quiet)
inline

Definition at line 35 of file Event/GeneratorObject/include/DataModel/DataVector.h.

35: m_quiet( quiet ) {}

◆ CompareAndPrint() [2/3]

detail::CompareAndPrint::CompareAndPrint ( bool quiet)
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/DataVector.h.

35: m_quiet( quiet ) {}

◆ CompareAndPrint() [3/3]

detail::CompareAndPrint::CompareAndPrint ( bool quiet)
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/DataVector.h.

35: m_quiet( quiet ) {}

Member Function Documentation

◆ operator()() [1/3]

template<typename Element>
bool detail::CompareAndPrint::operator() ( Element * f,
Element * s ) const
inline

Definition at line 36 of file Event/GeneratorObject/include/DataModel/DataVector.h.

36 {
37 bool areEq( f == s );
38 if ( !m_quiet && areEq && f != 0 )
39 {
40 std::cout << "WARNING: duplicated pointer found in a DataVector of "
41 << System::typeinfoName( typeid( *f ) ) << " owning its elements! "
42 << std::hex << f << std::dec << std::endl;
43 }
44 return areEq;
45 }
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
XmlRpcServer s

◆ operator()() [2/3]

template<typename Element>
bool detail::CompareAndPrint::operator() ( Element * f,
Element * s ) const
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/DataVector.h.

36 {
37 bool areEq( f == s );
38 if ( !m_quiet && areEq && f != 0 )
39 {
40 std::cout << "WARNING: duplicated pointer found in a DataVector of "
41 << System::typeinfoName( typeid( *f ) ) << " owning its elements! "
42 << std::hex << f << std::dec << std::endl;
43 }
44 return areEq;
45 }

◆ operator()() [3/3]

template<typename Element>
bool detail::CompareAndPrint::operator() ( Element * f,
Element * s ) const
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/DataVector.h.

36 {
37 bool areEq( f == s );
38 if ( !m_quiet && areEq && f != 0 )
39 {
40 std::cout << "WARNING: duplicated pointer found in a DataVector of "
41 << System::typeinfoName( typeid( *f ) ) << " owning its elements! "
42 << std::hex << f << std::dec << std::endl;
43 }
44 return areEq;
45 }

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