/usr/share/netgen/libsrc/general/spbita2d.hpp is in netgen-headers 4.9.13.dfsg-8build2.
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 | #ifndef FILE_SPBITA2D
#define FILE_SPBITA2D
/**************************************************************************/
/* File: spbita2d.hh */
/* Author: Joachim Schoeberl */
/* Date: 01. Jun. 95 */
/**************************************************************************/
/**
Implementation of sparse 2 dimensional bitarray
*/
namespace netgen
{
class SPARSE_BIT_Array_2D
{
class linestruct { public: INDEX size; INDEX maxsize; INDEX * col; };
///
linestruct * lines;
///
INDEX height, width;
public:
///
SPARSE_BIT_Array_2D (INDEX ah = 0, INDEX aw = 0);
///
~SPARSE_BIT_Array_2D ();
///
void SetSize (INDEX ah, INDEX aw = 0);
///
void DeleteElements ();
///
int Get (INDEX i, INDEX j) const;
///
INDEX Height () const { return height; }
///
INDEX Width () const { return width; }
///
void Set (INDEX i, INDEX j);
///
int Test (INDEX i, INDEX j) const;
///
INDEX BitsInLine (INDEX i) const { return lines[i-1].size; }
///
INDEX GetIndex (INDEX i, INDEX nr) const { return lines[i-1].col[nr-1]; }
};
}
#endif
|