This file is indexed.

/usr/include/osl/effect_util/virtualPin.h is in libosl-dev 0.6.0-3.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
45
46
47
48
/* virtualPin.h
 */
#ifndef _VIRTUALPIN_H
#define _VIRTUALPIN_H

#include "osl/state/numEffectState.h"
namespace osl
{
  namespace effect_util
  {
    class VirtualPin
    {
    private:
      template <Direction DIR>
      static bool findDirection(const SimpleState& state, Square target,
				Player defense, const PieceMask& remove)
      {
	const Offset diff = Board_Table.getOffset(defense, DIR);
	Piece p;
	for (p=state.nextPiece(target, diff);;p=state.nextPiece(p.square(), diff)) {
	  if (! p.isPiece())
	    return false;
	  if (! remove.test(p.number()))
	    break;
	}
	assert(p.isPiece());
	if (p.owner() == defense)
	  return false;
	return (Ptype_Table.getMoveMask(p.ptype())
		& DirectionTraits<DirectionTraits<DIR>::longDir>::mask);
      }
    public:
      /** remove が全て動くと defenseの玉に攻め方の効きが発生するか。*/
      static bool find(const NumEffectState& state, Player defense, const PieceMask& remove);
      static bool find(const NumEffectState& state, Player defense, Square target)
      {
	return find(state, defense, state.effectSetAt(target));
      }
    };
  }
  using effect_util::VirtualPin;
}

#endif /* _VIRTUALPIN_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: