Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::JObjectComparator< T > Class Template Reference

Implementation for comparison of a template class. More...

#include <JRootComparator.hh>

Inheritance diagram for JROOT::JObjectComparator< T >:
JROOT::JAbstractComparator

Public Member Functions

virtual bool equals (const void *first, const void *second) const override
 Compare objects.
 

Detailed Description

template<class T>
class JROOT::JObjectComparator< T >

Implementation for comparison of a template class.

This class implements the JROOT::JAstractComparator interface for the given template class using the operator ==.

Definition at line 59 of file JRootComparator.hh.

Member Function Documentation

◆ equals()

template<class T >
virtual bool JROOT::JObjectComparator< T >::equals ( const void * first,
const void * second ) const
inlineoverridevirtual

Compare objects.

Parameters
firstpointer to first object
secondpointer to second object
Returns
true if objects are equal; else false

Implements JROOT::JAbstractComparator.

Definition at line 70 of file JRootComparator.hh.

71 {
72 return (* ((const T*) first) == * ((const T*) second));
73 }

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