/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- 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 . \*---------------------------------------------------------------------------*/ #include "WallLocationData.H" #include "transformer.H" // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // template template inline bool Foam::WallLocationData::update ( const point& pt, const WallLocationData& w2, const scalar tol, TrackingData& td ) { const bool result = WallLocation::update(pt, w2, tol, td); if (result) { data_ = w2.data(); } return result; } // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template inline Foam::WallLocationData::WallLocationData() : WallLocation(), data_() {} template template inline Foam::WallLocationData::WallLocationData ( const Type& data, const Geometry& ... geometry ) : WallLocation(geometry ...), data_(data) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template inline const Type& Foam::WallLocationData::data() const { return data_; } template inline Type& Foam::WallLocationData::data() { return data_; } template template inline const Type& Foam::WallLocationData::data ( TrackingData& td ) const { return data_; } template template inline void Foam::WallLocationData::transform ( const transformer& transform, TrackingData& td ) { WallLocation::transform(transform, td); data_ = transform.transform(data_); } // * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * // template Foam::Ostream& Foam::operator<< ( Ostream& os, const WallLocationData& w ) { return os << static_cast(w) << token::SPACE << w.data(); } template Foam::Istream& Foam::operator>> ( Istream& is, WallLocationData& w ) { return is >> static_cast(w) >> w.data_; } // ************************************************************************* //