/usr/include/givaro/givspyinteger.h is in libgivaro-dev 4.0.2-5.
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 | // =============================================================
// Copyright(c)'1994-2013 by The Givaro group
// This file is part of Givaro.
// Givaro is governed by the CeCILL-B license under French law
// and abiding by the rules of distribution of free software.
// see the COPYRIGHT file for more details.
// Authors: J.-G. Dumas
// =============================================================
#ifndef __GIVARO_Spy_integer_H
#define __GIVARO_Spy_integer_H
#include "gmp++/gmp++_int.h"
namespace Givaro {
/*! @internal
* Spy structure to have access to protected members of Givaro::Integer.
*/
struct SpyInteger {
struct InHeritsInteger : public Integer {
protected:
friend struct SpyInteger;
};
static const InHeritsInteger::Rep* get_rep(const Integer& i) {
return static_cast<const InHeritsInteger&>(i).get_rep();
}
static mpz_ptr get_mpz(Integer& i) {
return static_cast<InHeritsInteger&>(i).get_mpz();
}
static mpz_ptr get_mpz(const Integer& i) {
return const_cast<InHeritsInteger&>(static_cast<const InHeritsInteger&>(i)).get_mpz();
}
static mpz_srcptr get_mpz_const(const Integer& i) {
return static_cast<const InHeritsInteger&>(i).get_mpz_const();
}
};
} // Givaro
#endif //__GIVARO_Spy_integer_H
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
|