rivet is hosted by Hepforge, IPPP Durham
Inheritance diagram for Cut_Less:
Collaboration diagram for Cut_Less:

List of all members.

Public Member Functions

 Cut_Less (const Cuts::Quantity qty, const double high)
bool operator== (const Cut &c) const
 Comparison to another Cut.
template<typename ClassToCheck >
bool accept (const ClassToCheck &) const
template<>
bool accept (const CuttableBase &t) const

Protected Member Functions

bool accept_ (const CuttableBase &o) const

Private Attributes

Cuts::Quantity qty_
double high_

Detailed Description

Definition at line 72 of file Cuts.cc.


Constructor & Destructor Documentation

Cut_Less ( const Cuts::Quantity  qty,
const double  high 
) [inline]

Definition at line 74 of file Cuts.cc.

: qty_(qty), high_(high) {}

Member Function Documentation

bool accept ( const ClassToCheck &  ) const [inherited]

Main work method.

bool accept ( const CuttableBase t) const [inherited]

Definition at line 25 of file Cuts.cc.

                                                               {
  return accept_(t);
}
bool accept_ ( const CuttableBase o) const [inline, protected, virtual]

Implements CutBase.

Definition at line 80 of file Cuts.cc.

References CuttableBase::getValue(), Cut_Less::high_, and Cut_Less::qty_.

{ return o.getValue(qty_) < high_; }
bool operator== ( const Cut c) const [inline, virtual]

Comparison to another Cut.

Implements CutBase.

Definition at line 75 of file Cuts.cc.

References Cut_Less::high_, and Cut_Less::qty_.

                                       {
    shared_ptr<Cut_Less> cc = dynamic_pointer_cast<Cut_Less>(c);
    return cc && qty_ == cc->qty_  &&  high_ == cc->high_;
  }

Member Data Documentation

double high_ [private]

Definition at line 83 of file Cuts.cc.

Referenced by Cut_Less::accept_(), and Cut_Less::operator==().

Cuts::Quantity qty_ [private]

Definition at line 82 of file Cuts.cc.

Referenced by Cut_Less::accept_(), and Cut_Less::operator==().


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