GIT: cleanup old 'removed' files (ones left only for dependency checks)

GIT: minor directory structure cleanup
This commit is contained in:
Mark Olesen
2025-02-03 15:12:11 +01:00
parent 8f83ed786c
commit 0cc5273d0a
25 changed files with 44 additions and 184 deletions

View File

@ -1,3 +0,0 @@
Test-Dictionary.C
EXE = $(FOAM_USER_APPBIN)/Test-Dictionary

View File

@ -0,0 +1,3 @@
Test-PtrDictionary1.C
EXE = $(FOAM_USER_APPBIN)/Test-PtrDictionary1

View File

@ -25,10 +25,10 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
Test-Dictionary
Test-PtrDictionary1
Description
Tests for Dictionary (not dictionary)
Tests for Dictionary (not dictionary) and PtrDictionary
\*---------------------------------------------------------------------------*/

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1,10 +0,0 @@
// Compatibility include. For v2112 and earlier
#ifndef FoamCompat_Swap_H
#define FoamCompat_Swap_H
#include "stdFoam.H"
#endif
// ************************************************************************* //

View File

@ -1,11 +0,0 @@
// ************************************************************************* //
// Compatibility include
#ifndef FoamCompat_endian_H
#define FoamCompat_endian_H
#include "foamEndian.H"
#endif
// ************************************************************************* //

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2015-2016 OpenFOAM Foundation
Copyright (C) 2024 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -65,30 +66,60 @@ public:
// Constructors
//- Default construct: empty without allocation (capacity=0).
PtrListDictionary() = default;
//- Construct given initial list size
explicit PtrListDictionary(const label size);
explicit PtrListDictionary(const label len)
{
dict_type(2*len);
PtrList<T>::resize(len);
}
//- Copy construct
PtrListDictionary(const PtrListDictionary& dict);
PtrListDictionary(const PtrListDictionary& dict) = default;
//- Construct from Istream using given Istream constructor class
template<class INew>
PtrListDictionary(Istream& is, const INew& inew);
PtrListDictionary(Istream& is, const INew& inew)
:
dict_type(is, inew)
{}
//- Construct from Istream
explicit PtrListDictionary(Istream& is);
explicit PtrListDictionary(Istream& is)
:
dict_type(is)
{}
// Member functions
// Member Functions
//- Set element to pointer provided and return old element
autoPtr<T> set(const label i, const word& key, T* ptr);
autoPtr<T> set(const label i, const word& key, T* ptr)
{
autoPtr<T> old(PtrList<T>::set(i, ptr));
if (!dict_type::addHashEntry(key, ptr))
{
FatalErrorInFunction
<< "Cannot insert '" << key << "' into hash-table"
<< Foam::abort(FatalError);
}
return old;
}
//- Set element to autoPtr value provided and return old element
autoPtr<T> set(const label i, const word& key, autoPtr<T>& ptr);
autoPtr<T> set(const label i, const word& key, autoPtr<T>& ptr)
{
return this->set(i, key, ptr.release());
}
//- Set element to tmp value provided and return old element
autoPtr<T> set(const label i, const word& key, tmp<T>& ptr);
autoPtr<T> set(const label i, const word& key, tmp<T>& ptr)
{
return this->set(i, key, ptr.ptr()); // release or clone
}
// Member Operators
@ -115,12 +146,6 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#include "PtrListDictionary.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -1,110 +0,0 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM 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 3 of the License, or
(at your option) any later version.
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "PtrListDictionary.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class T>
Foam::PtrListDictionary<T>::PtrListDictionary(const label size)
:
dict_type(2*size)
{
PtrList<T>::resize(size);
}
template<class T>
Foam::PtrListDictionary<T>::PtrListDictionary(const PtrListDictionary& dict)
:
dict_type(dict)
{}
template<class T>
template<class INew>
Foam::PtrListDictionary<T>::PtrListDictionary(Istream& is, const INew& iNew)
:
dict_type(is, iNew)
{}
template<class T>
Foam::PtrListDictionary<T>::PtrListDictionary(Istream& is)
:
dict_type(is)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class T>
inline Foam::autoPtr<T> Foam::PtrListDictionary<T>::set
(
const label i,
const word& key,
T* ptr
)
{
autoPtr<T> old(PtrList<T>::set(i, ptr));
if (!dict_type::addHashEntry(key, ptr))
{
FatalErrorInFunction
<< "Cannot insert with key '" << key << "' into hash-table"
<< abort(FatalError);
}
return old;
}
template<class T>
inline Foam::autoPtr<T> Foam::PtrListDictionary<T>::set
(
const label i,
const word& key,
autoPtr<T>& ptr
)
{
return this->set(i, key, ptr.release());
}
template<class T>
inline Foam::autoPtr<T> Foam::PtrListDictionary<T>::set
(
const label i,
const word& key,
tmp<T>& ptr
)
{
return this->set(i, key, ptr.ptr()); // release or clone
}
// ************************************************************************* //

View File

@ -36,7 +36,6 @@ SeeAlso
Foam::PointIndexHit
SourceFiles
LabelledItemI.H
\*---------------------------------------------------------------------------*/

View File

@ -1,11 +0,0 @@
// Compatibility include.
// PointHit template combined into pointHit.H (OCT-2022)
#ifndef FoamCompat_PointHit_H
#define FoamCompat_PointHit_H
#include "pointHit.H"
#endif
// ************************************************************************* //

View File

@ -1,11 +0,0 @@
// Compatibility include.
// PointIndexHit template combined into pointIndexHit.H (OCT-2022)
#ifndef FoamCompat_PointIndexHit_H
#define FoamCompat_PointIndexHit_H
#include "pointIndexHit.H"
#endif
// ************************************************************************* //

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only

View File

@ -1 +0,0 @@
#warning File removed - left for old dependency check only