This file is indexed.

/usr/include/CLHEP/RefCount/ZMuseCount.h is in libclhep-dev 2.1.4.1+dfsg-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef ZMUSECOUNT_H
#define ZMUSECOUNT_H


// ----------------------------------------------------------------------
//
//  ZMuseCount.h - utility class for use in reference-counting
//
//
//  History:
//    19-Sep-1997  WEB  Design stolen, and code adapted, from pp 70-73 of
//      Koenig & Moo: "Ruminations on C++" (1996)
//
// ----------------------------------------------------------------------


class ZMuseCount  {

public:

  // --------------------------
  // Constructors & destructor:
  // --------------------------

  ZMuseCount();
    // Constructor
  ZMuseCount( const ZMuseCount & u );
    // Copy constructor
  ~ZMuseCount();
    // Destructor


  // -----------------------------------
  // Functions useful to a handle class:
  // -----------------------------------

  bool only();
    // Is there exactly one copy of the referent?

  bool makeonly();
    // Enables the handle (to a ClassType) to refer to a unique (copy of)
    // the referent via the following usage:
    //   if ( u.makeonly() )            /* ZMuseCount u;     */
    //      p = new ClassType( *p );    /* ClassType * p;  */
    // This is useful in implementing copy-on-write semantics
    // (i.e., non-shared or value semantics), and would appear just before
    // updating (any part of) *p in such a context.

  bool reattach( const ZMuseCount & u );
    // Simplifies a handle's implementation of assignment via the following
    // usage:
    //   if ( u.reattach(h.u) )       /* Handle<ClassType> h; */
    //     delete p;                  /* p and u as above     */
    //   p = h.p;


private:

  int * p;
    // *p is the reference counter itself

  ZMuseCount & operator=( const ZMuseCount & );
    // Forbidden operation on a ZMuseCount object

};  // ZMuseCount


//#include "CLHEP/RefCount/ZMuseCount.icc"


#endif  // ZMUSECOUNT_H