This file is indexed.

/usr/include/paraview/vtkMaterialInterfaceCommBuffer.h is in paraview-dev 5.0.1+dfsg1-4.

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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    $RCSfile$

  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.

=========================================================================*/
#ifndef vtkMaterialInterfaceCommBuffer_h
#define vtkMaterialInterfaceCommBuffer_h

#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#include "vtkSystemIncludes.h"

#include<vector>
#include<vtkType.h>

class vtkDoubleArray;
class vtkFloatArray;
// class vtkMaterialInterfaceCommBuffer;
// ostream &operator<<(ostream &sout,const vtkMaterialInterfaceCommBuffer &fcb);

//============================================================================
// Description:
// FIFO buffer.
// Can be used to send all attributes and ids
// in a single send. UnPack in the same order that you
// packed.
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkMaterialInterfaceCommBuffer
{
public:
  // header layout
  enum {PROC_ID=0,    // sender's id
        BUFFER_SIZE=1,// size of buffer(bytes)
        DESCR_BASE=2}; // index to first descriptor
        // descriptor is nfragments
        // in each block. Each block gets a descriptor.
  //
  vtkMaterialInterfaceCommBuffer();
  //
  ~vtkMaterialInterfaceCommBuffer();
  // Description:
  // Initialize for outgoing comm.
  void Initialize(int procId,int nBlocks,vtkIdType nBytes);
  // Description:
  // Set up for an incoming header.
  void SizeHeader(int nBlocks);
  // Description:
  // Set up for a set of incoming header.
  static void SizeHeader(
          std::vector<vtkMaterialInterfaceCommBuffer> &buffers,
          int nBlocks);
  // Description:
  // Initialize the buffer.
  void SizeBuffer(vtkIdType nBytes);
  // Description:
  // Initialize the buffer from incoming header.
  void SizeBuffer();
  // Description:
  // Free resources set to invalid state.
  void Clear();
  // Description:
  // Get size in bytes of the buffer.
  vtkIdType GetBufferSize() const{ return this->Header[BUFFER_SIZE]; }
  // Description:
  // Get a pointer to the buffer
  char *GetBuffer() const { return this->Buffer; }
  // Description:
  // Get the byte that the next rerad or write will occur at
  vtkIdType GetEOD() const { return this->EOD; }
  // Description:
  // Get size in bytes of the header.
  int GetHeaderSize() const{ return this->HeaderSize; }
  // Description:
  // Get a pointer to the header.
  vtkIdType *GetHeader() const { return this->Header; }
  // Description:
  // Get the total memory used.
  vtkIdType Capacity()
  {
    return this->GetHeaderSize()+this->GetBufferSize();
  }
  // Description:
  // Set the number of tuples for a given block.
  void SetNumberOfTuples(
          int blockId,
          vtkIdType nFragments)
  {
    int idx=DESCR_BASE+blockId;
    this->Header[idx]=nFragments;
  }
  // Description:
  // Get the number of tuples for a given block
  vtkIdType GetNumberOfTuples(int blockId) const
  {
    int idx=DESCR_BASE+blockId;
    return this->Header[idx];
  }
  // Description:
  // Append the data to the buffer. Return the index where
  // the data was written.
  vtkIdType Pack(const double *pData,const int nComps,const vtkIdType nTups);
  vtkIdType Pack(const float *pData,const int nComps,const vtkIdType nTups);
  vtkIdType Pack(const int *pData,const int nComps,const vtkIdType nTups);
  vtkIdType Pack(vtkDoubleArray *da);
  vtkIdType Pack(vtkFloatArray *da);
  // Description:
  // Prepare to un pack the buffer.
  void InitUnpack(){ this->EOD=0; }
  // Description:
  // Extract the next array from the buffer
  int UnPack(double *&rData,const int nComps,const vtkIdType nTups,const bool copyFlag);
  int UnPack(float *&rData,const int nComps,const vtkIdType nTups,const bool copyFlag);
  int UnPack(int *&rData,const int nComps,const vtkIdType nTups,const bool copyFlag);
  int UnPack(vtkDoubleArray *da,const int nComps,const vtkIdType nTups,const bool copyFlag);
  int UnPack(vtkFloatArray *da,const int nComps,const vtkIdType nTups,const bool copyFlag);
  //static void Resize(std::vector<vtkMaterialInterfaceCommBuffer> &buffers);
private:
  vtkIdType EOD;
  char *Buffer;
  int HeaderSize;
  vtkIdType *Header;
};
#endif


// VTK-HeaderTest-Exclude: vtkMaterialInterfaceCommBuffer.h