This file is indexed.

/usr/include/siscone/reference.h is in libsiscone-dev 2.0.6-2.

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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
// -*- C++ -*-
///////////////////////////////////////////////////////////////////////////////
// File: reference.h                                                         //
// Description: header file for checkxor management (Creference class)       //
// This file is part of the SISCone project.                                 //
// For more details, see http://projects.hepforge.org/siscone                //
//                                                                           //
// Copyright (c) 2006 Gavin Salam and Gregory Soyez                          //
//                                                                           //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
//                                                                           //
// This program is distributed in the hope that it will be useful,           //
// but WITHOUT ANY WARRANTY; without even the implied warranty of            //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             //
// GNU General Public License for more details.                              //
//                                                                           //
// You should have received a copy of the GNU General Public License         //
// along with this program; if not, write to the Free Software               //
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA //
//                                                                           //
// $Revision:: 123                                                          $//
// $Date:: 2007-03-01 02:52:16 +0100 (Thu, 01 Mar 2007)                     $//
///////////////////////////////////////////////////////////////////////////////

#ifndef __REFERENCE_H__
#define __REFERENCE_H__

namespace siscone{

/**
 * \class Creference
 * \brief references used for checksums.
 *
 * This class implements some reference variable
 * that can be used for checksums. Those checksums
 * are useful to disentengle between contents of two
 * cones without looking into their explicit particle
 * contents.
 */
class Creference{
 public:
  /// default constructor
  Creference();

  /// create a random reference
  void randomize();

  /// test emptyness
  bool is_empty();

  /// test non-emptyness
  bool not_empty();

  /// assignment of reference
  Creference& operator = (const Creference &r);

  /// addition of reference
  Creference operator + (const Creference &r);

  /// incrementation of reference
  Creference& operator += (const Creference &r);

  /// decrementation of reference
  Creference& operator -= (const Creference &r);

  /// accessing the reference
  inline unsigned int operator[] (int i) {return ref[i];}

  unsigned int ref[3];   ///< actual data for the reference
};

/// addition of two references
Creference operator + (Creference &r1, Creference &r2);

/// equality test of two references
bool operator == (const Creference &r1, const Creference &r2);

/// difference test of two references
bool operator != (const Creference &r1, const Creference &r2);

/// ordering of two references
bool operator < (const Creference &r1, const Creference &r2);


//=============== inline material ================

// equality test for two references
//----------------------------------
inline bool operator == (const Creference &r1, const Creference &r2){
  return (r1.ref[0]==r2.ref[0]) && (r1.ref[1]==r2.ref[1]) && (r1.ref[2]==r2.ref[2]);
}

// difference test for two references
//----------------------------------
inline bool operator != (const Creference &r1, const Creference &r2){
  return (r1.ref[0]!=r2.ref[0]) || (r1.ref[1]!=r2.ref[1]) || (r1.ref[2]!=r2.ref[2]);
}

// difference test for two references
//----------------------------------
inline bool operator < (const Creference &r1, const Creference &r2){
  return (r1.ref[0]<r2.ref[0]) || ((r1.ref[0]==r2.ref[0]) && 
				   ((r1.ref[1]<r2.ref[1]) || ((r1.ref[1]==r2.ref[1]) && (r1.ref[2]<r2.ref[2]))
				    ));
}

}
#endif