Jpp test-rotations-old
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 57 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 68 of file JRootComparator.hh.

69 {
70 return (* ((const T*) first) == * ((const T*) second));
71 }

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