This file is indexed.

/usr/include/lorene/C++/Include/dim_tbl.h is in liblorene-dev 0.0.0~cvs20161116+dfsg-1ubuntu4.

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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/*
 *  Definition of Lorene class Dim_tbl
 *
 */

/*
 *   Copyright (c) 1999-2000 Jean-Alain Marck
 *   Copyright (c) 1999-2001 Eric Gourgoulhon
 *
 *   This file is part of LORENE.
 *
 *   LORENE is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   LORENE is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with LORENE; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */


#ifndef __DIM_TBL_H_ 
#define __DIM_TBL_H_ 


/*
 * $Id: dim_tbl.h,v 1.7 2014/10/13 08:52:33 j_novak Exp $
 * $Log: dim_tbl.h,v $
 * Revision 1.7  2014/10/13 08:52:33  j_novak
 * Lorene classes and functions now belong to the namespace Lorene.
 *
 * Revision 1.6  2014/10/06 15:09:39  j_novak
 * Modified #include directives to use c++ syntax.
 *
 * Revision 1.5  2006/09/25 10:01:45  p_grandclement
 * Addition of N-dimensional Tbl
 *
 * Revision 1.4  2004/03/22 13:12:40  j_novak
 * Modification of comments to use doxygen instead of doc++
 *
 * Revision 1.3  2002/10/16 14:36:28  j_novak
 * Reorganization of #include instructions of standard C++, in order to
 * use experimental version 3 of gcc.
 *
 * Revision 1.2  2002/06/17 14:05:16  j_novak
 * friend functions are now also declared outside the class definition
 *
 * Revision 1.1.1.1  2001/11/20 15:19:27  e_gourgoulhon
 * LORENE
 *
 * Revision 2.7  1999/11/23  12:16:24  eric
 * Modif commentaires (dimension 0 autorisee).
 *
 * Revision 2.6  1999/10/01  10:17:10  eric
 * Amelioration des commentaires.
 *
 * Revision 2.5  1999/09/30  12:49:09  eric
 * Constructeur a 1 parametre rendu explicit.
 * Amelioration des commentaires
 *
 * Revision 2.4  1999/09/24  14:22:36  eric
 * Declaration de methodes const
 * Amelioration commentaires.
 *
 * Revision 2.3  1999/09/22  11:38:59  eric
 * *** empty log message ***
 *
 * Revision 2.2  1999/09/22  11:24:39  eric
 * Amelioration commentaires
 *
 * Revision 2.1  1999/09/16  16:23:52  eric
 * Doc++
 *
 * Revision 2.0  1999/02/15  10:41:51  hyc
 * *** empty log message ***
 *
 * $Header: /cvsroot/Lorene/C++/Include/dim_tbl.h,v 1.7 2014/10/13 08:52:33 j_novak Exp $
 *
 */

#include <cstdio>

#include "headcpp.h"

namespace Lorene {
/**
 * Storage of array dimensions.
 * This class is designed for internal purposes related to the class
 * \c Tbl}, namely the storage of the \c Tbl} dimensions. 
 * \ingroup (util)
 */
class Dim_tbl {
    public:
	int ndim ;	///< Number of dimensions of the \c Tbl: can be 1, 2 or 3.
	int* dim ;	///< Array of dimensions (size: \c ndim). 

	/**
	 * Total size of the array \c Tbl::t. 
	 * 
	 * \li \c taille = dim[0] if \c ndim = 1
	 * \li \c taille = dim[0]*dim[1] if \c ndim = 2
	 * \li \c taille = dim[0]*dim[1]*dim[2] if \c ndim = 3
	 * 
	 */
	int taille ;	
	
    public:
	// Constructeurs
	/**
	 * 1D constructor 
	 * @param size0  [input] Number of elements of the array \c Tbl::t.
	 *		  Will be assigned to \c dim[0].  
	 *		  The size 0 is allowed for the 1D constructor but
	 *		  not for the 2D or 3D ones. 
	 */
	explicit Dim_tbl(int size0) ; 
	
	/**
	 * 2D constructor
	 * @param size1  [input] Defines the range [0, size1-1] of the outermost
	 *		  index in the storage of
	 *		  the array \c Tbl::t. 
	 *		  Will be assigned to \c dim[1].
	 * @param size0  [input] Defines the range [0, size0-1]  of the 
	 *		  innermost index
	 *		  in the storage of
	 *		  the array \c Tbl::t. 
	 *		  Will be assigned to \c dim[0].
	 */ 
	Dim_tbl(int size1, int size0) ;	    

	/**
	 * 3D constructor
	 * @param size2  [input] Defines the range [0, size2-1]  of the 
	 *		  outermost index in the storage of
	 *		  the array \c Tbl::t. 
	 *		  Will be assigned to \c dim[2].
	 * @param size1  [input] Defines the range [0, size1-1] of the 
	 *		  intermediate index in the storage of
	 *		  the array \c Tbl::t. 
	 *		  Will be assigned to \c dim[1].
	 * @param size0  [input] Defines the range [0, size0-1] of the 
	 *		  innermost index in the storage of
	 *		  the array \c Tbl::t. 
	 *		  Will be assigned to \c dim[0].
	 */ 
	Dim_tbl(int size2, int size1, int size0) ; 
	
	/**
	 * N_dimensional constructor
	 * @param n [input] number of dimensions.
	 * @param sizes [input] array of the dimensions.
	 */ 
	Dim_tbl(int n, int* sizes) ; 
	
	Dim_tbl(const Dim_tbl & ) ; ///< Copy constructor

	/// Constructor from a file (see \c sauve(FILE*) )	
	explicit Dim_tbl(FILE* ) ;   	    

	~Dim_tbl() ;	    	    ///< Destructor

	void operator=(const Dim_tbl &) ;   	///< Assignment
    
	void sauve(FILE* ) const ;			///< Save in a file

	bool operator==(const Dim_tbl &) const ;  ///< Comparison operator

    	friend ostream& operator<<(ostream& , const Dim_tbl &) ;  ///< Display
	
};
ostream& operator<<(ostream& , const Dim_tbl &) ;  

}
#endif