mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: cleanup old 'removed' files (ones left only for dependency checks)
GIT: minor directory structure cleanup
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
Test-Dictionary.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-Dictionary
|
||||
3
applications/test/PtrDictionary1/Make/files
Normal file
3
applications/test/PtrDictionary1/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
Test-PtrDictionary1.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/Test-PtrDictionary1
|
||||
@ -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
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1,10 +0,0 @@
|
||||
// Compatibility include. For v2112 and earlier
|
||||
|
||||
#ifndef FoamCompat_Swap_H
|
||||
#define FoamCompat_Swap_H
|
||||
|
||||
#include "stdFoam.H"
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,11 +0,0 @@
|
||||
// ************************************************************************* //
|
||||
// Compatibility include
|
||||
|
||||
#ifndef FoamCompat_endian_H
|
||||
#define FoamCompat_endian_H
|
||||
|
||||
#include "foamEndian.H"
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -36,7 +36,6 @@ SeeAlso
|
||||
Foam::PointIndexHit
|
||||
|
||||
SourceFiles
|
||||
LabelledItemI.H
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
@ -1 +0,0 @@
|
||||
#warning File removed - left for old dependency check only
|
||||
Reference in New Issue
Block a user