This file is indexed.

/usr/include/vtk-6.3/vtkGeoTreeNodeCache.h is in libvtk6-dev 6.3.0+dfsg1-11build1.

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
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkGeoTreeNodeCache.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
/*-------------------------------------------------------------------------
  Copyright 2008 Sandia Corporation.
  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
  the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
// .NAME vtkGeoTreeNodeCache - Manages a list of vtkGeoTreeNodes.
//
// .SECTION Description
// vtkGeoTreeNodeCache keeps track of a linked list of vtkGeoTreeNodes,
// and has operations to move nodes to the front of the list and to
// delete data from the least used nodes. This is used to recover memory
// from nodes that store data that hasn't been used in a while.

#ifndef vtkGeoTreeNodeCache_h
#define vtkGeoTreeNodeCache_h

#include "vtkGeovisCoreModule.h" // For export macro
#include "vtkObject.h"
#include "vtkSmartPointer.h" // For SP ivars

class vtkGeoTreeNode;

class VTKGEOVISCORE_EXPORT vtkGeoTreeNodeCache : public vtkObject
{
public:
  static vtkGeoTreeNodeCache *New();
  vtkTypeMacro(vtkGeoTreeNodeCache,vtkObject);
  virtual void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // The size of the cache of geospatial nodes.
  // When the size reaches this limit, the list of non-empty
  // nodes will be shortened to CacheMinimumLimit.
  vtkSetMacro(CacheMaximumLimit, int);
  vtkGetMacro(CacheMaximumLimit, int);

  // Description:
  // The cache is reduced to this size when the maximum limit is reached.
  vtkSetMacro(CacheMinimumLimit, int);
  vtkGetMacro(CacheMinimumLimit, int);

  // Description:
  // Send a node to the front of the list.
  // Perform this whenever a node is accessed, so that the most
  // recently accessed nodes' data are not deleted.
  void SendToFront(vtkGeoTreeNode* node);

  // Description:
  // Remove the node from the list.
  void RemoveNode(vtkGeoTreeNode* node);

  // Description:
  // The current size of the list.
  vtkGetMacro(Size, int);

protected:
  vtkGeoTreeNodeCache();
  ~vtkGeoTreeNodeCache();

  // Description:
  // Removes data from the oldest nodes and removes them from
  // the list until the list is of size CacheSize.
  void TrimToCacheMinimum();

  // Description:
  // Checks whether a node is the last of a set of siblings
  // to be removed from the list. If so, deletes data from the
  // node and all siblings.
  void DeleteDataFromSiblings(vtkGeoTreeNode* node);

  int Size;
  int CacheMinimumLimit;
  int CacheMaximumLimit;
  //BTX
  vtkSmartPointer<vtkGeoTreeNode> Newest;
  vtkSmartPointer<vtkGeoTreeNode> Oldest;
  //ETX

private:
  vtkGeoTreeNodeCache(const vtkGeoTreeNodeCache&); // Not implemented
  void operator=(const vtkGeoTreeNodeCache&); // Not implemented
};

#endif