TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Statistique_tps_base.cpp
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#include <Operateur_Statistique_tps_base.h>
17
18Implemente_base(Operateur_Statistique_tps_base,"Operateur_Statistique_tps_base",Objet_U);
19
20/*! @brief Prints the name and type of the operator to an output stream.
21 *
22 * @param s an output stream
23 * @return the modified output stream
24 */
26{
27 return s << que_suis_je() << " " << le_nom();
28}
29
30
31/*! @brief Does nothing.
32 *
33 * @param s an input stream
34 * @return the unmodified input stream
35 */
37{
38 return s ;
39}
40
42{
43
44 const Nom nom_post = le_nom();
45 const Nom& localisation = localisation_post();
46
47 OWN_PTR(Champ_base) espace_stockage_source;
48 const Champ_base& source = integrale().le_champ()->get_champ(espace_stockage_source);
49 source.completer_post_champ(dom,axi,localisation,nom_post,format);
50
51 return 1;
52
53}
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
virtual int completer_post_champ(const Domaine &dom, const int axi, const Nom &loc_post, const Nom &le_nom_champ_post, Format_Post_base &format) const
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Base class for post-processing output formats for fields (lata, med, cgns, lml, single_lata).
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Base class for TRUST objects (Objet_U).
Definition Objet_U.h:68
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
static int axi
Definition Objet_U.h:96
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
class Operateur_Statistique_tps_base
virtual const Integrale_tps_Champ & integrale() const =0
const Nom & le_nom() const override=0
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual int completer_post_statistiques(const Domaine &dom, const int is_axi, Format_Post_base &format)
Base class for output streams.
Definition Sortie.h:52