This file is indexed.

/usr/include/givaro/givref_count.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
44
45
46
47
// ==================================================================== //
// Copyright(c)'1994-2009 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.
// author: Th. Gautier
// version : 2.7
// date: 1995
// ==================================================================== //
 /** @file givref_count.h
  * @ingroup memory
  * @brief Definition of the Counter class, Counter.
 * This class definition objects to handle reference
 * counter for memory allocation (eg array0).
 */

#ifndef __GIVARO_ref_counter_H
#define __GIVARO_ref_counter_H
#include <stddef.h>

namespace Givaro {

	//! Ref counter.
class RefCounter {
public:
   // Cstor and Dstor
inline RefCounter( long l = 0) : counter(l) {}
//inline RefCounter( const RefCounter& ) : counter(C.counter) {}
inline ~RefCounter() {}

  //  Return the value
inline long  getvalue() const { return counter ; }
inline long  val() const { return counter ; }
  // Return a ref to the counter
inline long& refvalue() { return counter ; }
  // Increments the counter and returns the new value
inline long  incr() { return ++counter ; }
  // Decrements the value and returns the new value
inline long  decr() { return --counter ; }

protected:
  long counter ;
} ;

} // namespace Givaro
#endif // __GIVARO_ref_counter_H