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

List of all members.

Public Member Functions

 CutsAnd (const Cut c1, const Cut c2)
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

const Cut cut1
const Cut cut2

Detailed Description

Definition at line 166 of file Cuts.cc.


Constructor & Destructor Documentation

CutsAnd ( const Cut  c1,
const Cut  c2 
) [inline]

Definition at line 168 of file Cuts.cc.

: cut1(c1), cut2(c2) {}

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 175 of file Cuts.cc.

References CutsAnd::cut1, and CutsAnd::cut2.

                                               {
      return cut1->accept(o) && cut2->accept(o);
    }
bool operator== ( const Cut c) const [inline, virtual]

Comparison to another Cut.

Implements CutBase.

Definition at line 169 of file Cuts.cc.

References CutsAnd::cut1, and CutsAnd::cut2.

                                       {
    shared_ptr<CutsAnd> cc = dynamic_pointer_cast<CutsAnd>(c);
    return cc && (   ( cut1 == cc->cut1  &&  cut2 == cc->cut2 )
                  || ( cut1 == cc->cut2  &&  cut2 == cc->cut1 ));
  }

Member Data Documentation

const Cut cut1 [private]

Definition at line 179 of file Cuts.cc.

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

const Cut cut2 [private]

Definition at line 180 of file Cuts.cc.

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


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