/usr/include/Rivet/Projection.fhh is in librivet-dev 1.8.3-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | // -*- C++ -*-
#ifndef Rivet_Projection_FHH
#define Rivet_Projection_FHH
#include "Rivet/Cmp.fhh"
namespace Rivet {
class Projection;
typedef Projection* ProjectionPtr;
typedef const Projection* ConstProjectionPtr;
}
namespace std {
/// This is the function called when comparing two (const) pointers to Rivet::Projection.
template <>
struct less<const Rivet::Projection*>
: public binary_function<const Rivet::Projection*, const Rivet::Projection*, bool> {
bool operator()(const Rivet::Projection* x, const Rivet::Projection* y) const;
};
}
namespace Rivet {
/// Convenience method for casting to a const Projection reference.
template <typename PROJ>
inline const PROJ& pcast(const Projection& p) {
return dynamic_cast<const PROJ&>(p);
}
/// Convenience method for casting to a const Projection pointer.
template <typename PROJ>
inline const PROJ* pcast(const Projection* p) {
return dynamic_cast<const PROJ*>(p);
}
}
#endif
|