This file is indexed.

/usr/include/dolfin/swig/shared_ptr_classes.i is in libdolfin-dev 2017.2.0.post0-2.

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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/* -*- C -*- */
// Copyright (C) 2007-2012 Johan Hake
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// Modified by Anders Logg, 2009.
// Modified by Garth N. Wells, 2009-2012.
// Modified by Fredrik Valdmanis, 2012.
// Modified by Patrick E. Farrell, 2012.
// Modified by Benjamin Kehlet, 2012.
// Modified by Andre Massing, 2013.
// Modified by Tianyi Li, 2014.
//
// First added:  2007-11-25
// Last changed: 2014-08-11

//=============================================================================
// SWIG directives for the shared_ptr stored classes in PyDOLFIN
//
// Objects of these classes can then be passed to c++ functions
// demanding a std::shared_ptr<type>
//=============================================================================

//-----------------------------------------------------------------------------
// Include macros for shared_ptr support
//-----------------------------------------------------------------------------
%include <std_shared_ptr.i>

//-----------------------------------------------------------------------------
// Declare shared_ptr stored types in UFC
//-----------------------------------------------------------------------------
%shared_ptr(ufc::function)
%shared_ptr(ufc::dofmap)
%shared_ptr(ufc::finite_element)
%shared_ptr(ufc::form)

//-----------------------------------------------------------------------------
// Declare shared_ptr stored types in PyDOLFIN
//-----------------------------------------------------------------------------

// adaptivity
%shared_ptr(dolfin::AdaptiveLinearVariationalSolver)
%shared_ptr(dolfin::AdaptiveNonlinearVariationalSolver)
%shared_ptr(dolfin::ErrorControl)
%shared_ptr(dolfin::Hierarchical<dolfin::ErrorControl>)
%shared_ptr(dolfin::GenericAdaptiveVariationalSolver)
%shared_ptr(dolfin::GoalFunctional)
%shared_ptr(dolfin::SpecialFacetFunction)
%shared_ptr(dolfin::TimeSeries)
%shared_ptr(dolfin::TimeSeriesHDF5)

// ale
%shared_ptr(dolfin::MeshDisplacement)

// common
%shared_ptr(dolfin::Variable)

// fem
%shared_ptr(dolfin::Hierarchical<dolfin::Form>)
%shared_ptr(dolfin::GenericDofMap)
%shared_ptr(dolfin::DofMap)
%shared_ptr(dolfin::MultiMeshDofMap)
%shared_ptr(dolfin::Form)
%shared_ptr(dolfin::FiniteElement)
%shared_ptr(dolfin::BasisFunction)
%shared_ptr(dolfin::MultiStageScheme)

%shared_ptr(dolfin::Hierarchical<dolfin::LinearVariationalProblem>)
%shared_ptr(dolfin::Hierarchical<dolfin::NonlinearVariationalProblem>)
%shared_ptr(dolfin::LinearVariationalProblem)
%shared_ptr(dolfin::NonlinearVariationalProblem)
%shared_ptr(dolfin::LinearVariationalSolver)
%shared_ptr(dolfin::NonlinearVariationalSolver)
%shared_ptr(dolfin::PointIntegralSolver)
%shared_ptr(dolfin::PETScDMCollection)

%shared_ptr(dolfin::Hierarchical<dolfin::DirichletBC>)
%shared_ptr(dolfin::DirichletBC)

// function
%shared_ptr(dolfin::Hierarchical<dolfin::FunctionSpace>)
%shared_ptr(dolfin::FunctionSpace)
%shared_ptr(dolfin::SubSpace)

%shared_ptr(dolfin::GenericFunction)
%shared_ptr(dolfin::Hierarchical<dolfin::Function>)
%shared_ptr(dolfin::Function)
%shared_ptr(dolfin::Expression)
%shared_ptr(dolfin::FacetArea)
%shared_ptr(dolfin::Constant)
%shared_ptr(dolfin::MeshCoordinates)
%shared_ptr(dolfin::MultiMeshFunctionSpace)
%shared_ptr(dolfin::MultiMeshSubSpace)
%shared_ptr(dolfin::MultiMeshFunction)

// geometry
%shared_ptr(dolfin::BoundingBoxTree)

// mesh
%shared_ptr(dolfin::Hierarchical<dolfin::Mesh>)
%shared_ptr(dolfin::BoundaryMesh)
%shared_ptr(dolfin::Mesh)
%shared_ptr(dolfin::MeshTopology)
%shared_ptr(dolfin::SubMesh)
%shared_ptr(dolfin::UnitTetrahedronMesh)
%shared_ptr(dolfin::UnitCubeMesh)
%shared_ptr(dolfin::UnitIntervalMesh)
%shared_ptr(dolfin::IntervalMesh)
%shared_ptr(dolfin::UnitTriangleMesh)
%shared_ptr(dolfin::UnitSquareMesh)
%shared_ptr(dolfin::UnitQuadMesh)
%shared_ptr(dolfin::UnitHexMesh)
%shared_ptr(dolfin::UnitDiscMesh)
%shared_ptr(dolfin::SphericalShellMesh)
%shared_ptr(dolfin::BoxMesh)
%shared_ptr(dolfin::Box)
%shared_ptr(dolfin::RectangleMesh)
%shared_ptr(dolfin::Rectangle)
%shared_ptr(dolfin::MultiMesh)
%shared_ptr(dolfin::SubDomain)
%shared_ptr(dolfin::DomainBoundary)
%shared_ptr(dolfin::LocalMeshData)
%shared_ptr(dolfin::MeshData)
%shared_ptr(dolfin::MeshHierarchy)

// NOTE: Most of the MeshFunctions are declared shared pointers in
// NOTE: mesh/pre.i, mesh/post.i
%shared_ptr(dolfin::Hierarchical<dolfin::MeshFunction<std::size_t> >)
%shared_ptr(dolfin::MeshFunction<std::size_t>)

%shared_ptr(dolfin::CellFunction<std::size_t>)
%shared_ptr(dolfin::EdgeFunction<std::size_t>)
%shared_ptr(dolfin::FaceFunction<std::size_t>)
%shared_ptr(dolfin::FacetFunction<std::size_t>)
%shared_ptr(dolfin::VertexFunction<std::size_t>)

// parameters
%shared_ptr(dolfin::Parameters)
%shared_ptr(dolfin::GlobalParameters)

// la
%shared_ptr(dolfin::GenericLinearOperator)
%shared_ptr(dolfin::GenericMatrix)
%shared_ptr(dolfin::GenericPreconditioner)
%shared_ptr(dolfin::GenericTensor)
%shared_ptr(dolfin::GenericVector)
%shared_ptr(dolfin::LinearAlgebraObject)
%shared_ptr(dolfin::Scalar)

%shared_ptr(dolfin::Matrix)
%shared_ptr(dolfin::Vector)
%shared_ptr(dolfin::LinearOperator)
%shared_ptr(dolfin::IndexMap)

%shared_ptr(dolfin::EigenKrylovSolver)
%shared_ptr(dolfin::EigenLUSolver)
%shared_ptr(dolfin::EigenMatrix)
%shared_ptr(dolfin::EigenVector)

#ifdef HAS_PETSC
%shared_ptr(dolfin::PETScBaseMatrix)
%shared_ptr(dolfin::PETScLinearOperator)
%shared_ptr(dolfin::PETScKrylovSolver)
%shared_ptr(dolfin::PETScLUSolver)
%shared_ptr(dolfin::PETScMatrix)
%shared_ptr(dolfin::PETScObject)
%shared_ptr(dolfin::PETScPreconditioner)
%shared_ptr(dolfin::PETScVector)
#endif

#ifdef HAS_TRILINOS
%shared_ptr(dolfin::TpetraVector)
%shared_ptr(dolfin::TpetraMatrix)
%shared_ptr(dolfin::BelosKrylovSolver)
%shared_ptr(dolfin::TrilinosPreconditioner)
%shared_ptr(dolfin::Ifpack2Preconditioner)
%shared_ptr(dolfin::MueluPreconditioner)
#endif

#ifdef HAS_SLEPC
%shared_ptr(dolfin::SLEPcEigenSolver)
#endif

%shared_ptr(dolfin::LinearSolver)
%shared_ptr(dolfin::GenericLinearSolver)
%shared_ptr(dolfin::KrylovSolver)
%shared_ptr(dolfin::LUSolver)

%shared_ptr(dolfin::TensorLayout)
%shared_ptr(dolfin::SparsityPattern)

// log
%shared_ptr(dolfin::Table)

// io
%shared_ptr(dolfin::GenericFile)
%shared_ptr(dolfin::File)
%shared_ptr(dolfin::XDMFFile)
%shared_ptr(dolfin::HDF5File)
%shared_ptr(dolfin::X3DOM)

// math
%shared_ptr(dolfin::Lagrange)

// nls
%shared_ptr(dolfin::NewtonSolver)
%shared_ptr(dolfin::PETScSNESSolver)
#ifdef HAS_PETSC
%shared_ptr(dolfin::TAOLinearBoundSolver)
%shared_ptr(dolfin::PETScTAOSolver)
#endif

// quadrature
%shared_ptr(dolfin::Quadrature)
%shared_ptr(dolfin::LobattoQuadrature)
%shared_ptr(dolfin::RadauQuadrature)
%shared_ptr(dolfin::GaussQuadrature)
%shared_ptr(dolfin::GaussianQuadrature)

// geometry
%shared_ptr(dolfin::MeshPointIntersection)