This file is indexed.

/usr/include/osl/effect/effectedNumTable.h is in libosl-dev 0.6.0-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
#ifndef _EFFECTED_NUM_TABLE_H
#define _EFFECTED_NUM_TABLE_H
#include "osl/state/simpleState.h"
#include <iosfwd>
namespace osl
{
  namespace effect
  {
    union Byte8 {
      unsigned long long lv;
      CArray<unsigned char,8> uc;
    }
#ifdef __GNUC__
    __attribute__((aligned(8)))
#endif
      ;
    /**
     * 盤面上の駒が「黒から見た」方向に長い利きをつけられている時に,
     * 利きをつけている駒の番号を得る
     * たとえば,Uの時は下から上方向の長い利きがついているものとする.
     * その方向の利きがついていない場合はEMPTY_NUM(0x80)を入れておく.
     */
    class EffectedNum
    {
    private:
      Byte8 b8;
    public:
      EffectedNum() { clear(); }
      void clear(){
#define E(n) ((static_cast<unsigned long long>(EMPTY_NUM)<<((n)*8)))
	b8.lv= E(0)|E(1)|E(2)|E(3)|E(4)|E(5)|E(6)|E(7);
#undef E
      }
      int operator[](Direction d) const{
	assert(0<=d && d<=7);
	return b8.uc[d];
      }
      unsigned char& operator[](Direction d){
	assert(0<=d && d<=7);
	return b8.uc[d];
      }
    };
    class EffectedNumTable
    {
      CArray<EffectedNum,40> contents
#ifdef __GNUC__
      __attribute__((aligned(16)))
#endif
	;
    public:
      EffectedNumTable() { clear(); }
      EffectedNumTable(SimpleState const&);
      const EffectedNum& operator[](int i) const {
	return contents[i];
      }
      void clear();
      EffectedNum& operator[](int i){
	return contents[i];
      }
    };
    bool operator==(const EffectedNumTable&,const EffectedNumTable&);
    std::ostream& operator<<(std::ostream&,const EffectedNumTable&);
  }
  using effect::EffectedNumTable;
}

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