This file is indexed.

/usr/include/osl/move_action/captureFrom.h is in libosl-dev 0.6.0-3.3.

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* captureFrom.h
 */
#ifndef _MOVE_capture_from_H
#define _MOVE_capture_from_H
#include "osl/square.h"
#include "osl/player.h"
#include "osl/ptype.h"
#include "osl/move_action/concept.h"
#include "osl/move_generator/capture_.h"

namespace osl
{
  namespace move_action
  {
    
    /**
     * from に利きのある手を取る
     */
    template<Player P,class OrigAction>
    struct CaptureFrom
    {
      BOOST_CLASS_REQUIRE(OrigAction,osl::move_action,Concept);
      const NumEffectState& state;
      OrigAction & action;

    public:
      CaptureFrom(const NumEffectState& s, OrigAction & action)
	:
	state(s), action(action)
      {
      }

      template <Player PP>
      void doAction (Piece const& p, Square const& /*to*/)
      {
	move_generator::Capture<OrigAction>::
	  template generate<PlayerTraits<PP>::opponent>(state, p.square(), action);
      
      }

      void simpleMove(Square from,Square to,Ptype ptype,
		      bool isPromote,Player p,Move move)
      {
	assert(p == P);
	move_generator::Capture<OrigAction>::
	  generate<PlayerTraits<P>::opponent >(state, from, action);
      
      }
      void unknownMove(Square from,Square to,Piece p1,Ptype ptype,
		       bool isPromote,Player p,Move move)
      {
	assert(p == P);
	move_generator::Capture<OrigAction>::
	  generate<PlayerTraits<P>::opponent >(state, from, action);
      }
      /**
       * dropMove では取れない
       */
      void dropMove(Square to,Ptype ptype,Player p,Move move){
	assert(p == P);
	return;
      }
      // old interfaces
      void simpleMove(Square from,Square to,Ptype ptype, 
		      bool isPromote,Player p)
      {
	simpleMove(from,to,ptype,isPromote,p,Move());
      }
      void unknownMove(Square from,Square to,Piece captured,
		       Ptype ptype,bool isPromote,Player p)
      {
	unknownMove(from,to,captured,ptype,isPromote,p,Move());
      }
      void dropMove(Square to,Ptype ptype,Player p)
      {
	dropMove(to,ptype,p,Move());
      }
    };
  } // namespace move_action
} // namespace osl

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