CMS 3D CMS Logo

Classes | Namespaces
BoxND.h File Reference

Template to represent rectangles, boxes, and hyperboxes. More...

#include <vector>
#include "Alignment/Geners/interface/ClassId.hh"
#include "JetMETCorrections/InterpolationTables/interface/Interval.h"
#include <limits>
#include <cassert>
#include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"
#include "Alignment/Geners/interface/GenericIO.hh"
#include "Alignment/Geners/interface/IOIsUnsigned.hh"

Go to the source code of this file.

Classes

struct  npstat::BoxND< Numeric >
 

Namespaces

 npstat
 

Functions

template<typename Numeric >
bool operator== (const npstat::BoxND< Numeric > &l, const npstat::BoxND< Numeric > &r)
 
template<typename Numeric >
bool operator!= (const npstat::BoxND< Numeric > &l, const npstat::BoxND< Numeric > &r)
 

Detailed Description

Template to represent rectangles, boxes, and hyperboxes.

Author: I. Volobouev

March 2010

Definition in file BoxND.h.

Function Documentation

template<typename Numeric >
bool operator!= ( const npstat::BoxND< Numeric > &  l,
const npstat::BoxND< Numeric > &  r 
)

Definition at line 509 of file BoxND.h.

References alignCSCRings::r.

Referenced by npstat::BoxND< unsigned >::version().

509  {
510  return !(l == r);
511 }
template<typename Numeric >
bool operator== ( const npstat::BoxND< Numeric > &  l,
const npstat::BoxND< Numeric > &  r 
)

Binary comparison for equality

Definition at line 498 of file BoxND.h.

References npstat::BoxND< Numeric >::dim(), and mps_fire::i.

Referenced by npstat::BoxND< unsigned >::version().

498  {
499  const unsigned long dim = l.size();
500  if (dim != r.size())
501  return false;
502  for (unsigned long i = 0; i < dim; ++i)
503  if (l[i] != r[i])
504  return false;
505  return true;
506 }