TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Raccords.h
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#ifndef Raccords_included
17#define Raccords_included
18
19#include <Raccord_base.h>
20#include <TRUST_Deriv.h>
21#include <TRUST_List.h>
22
23/*! @brief Classe Raccords Cette represente une liste d'objets de type Raccord.
24 *
25 * @sa Raccord
26 */
27template <typename _SIZE_>
28class Raccords_32_64 : public LIST(OWN_PTR(Raccord_base_32_64<_SIZE_>))
29{
30 Declare_instanciable_32_64(Raccords_32_64);
31public :
32 using int_t = _SIZE_;
34
36 int_t nb_faces() const;
37 /// Renvoie le nombre de raccords contenus dans la liste.
38 inline int nb_raccords() const { return this->size(); }
39 int_t nb_faces(Type_Face type) const;
40};
41
42
43using Raccords = Raccords_32_64<int>;
44using Raccords_64 = Raccords_32_64<trustIdType>;
45
46#endif /* Raccords_included */
classe Domaine_32_64 un Domaine est un maillage compose d'un ensemble d'elements geometriques de meme...
Definition Domaine.h:62
Classe Raccords Cette represente une liste d'objets de type Raccord.
Definition Raccords.h:29
void associer_domaine(const Domaine_t &)
Associe un domaine a tous les raccords de la liste.
Definition Raccords.cpp:31
Domaine_32_64< int > Domaine_t
Definition Raccords.h:33
int_t nb_faces() const
Renvoie le nombre de face total des Raccords_32_64 de la liste.
Definition Raccords.cpp:44
int nb_raccords() const
Renvoie le nombre de raccords contenus dans la liste.
Definition Raccords.h:38
int_t nb_faces(Type_Face type) const
Renvoie le nombre de faces du type specifie contenues dans la liste de raccords.
Definition Raccords.cpp:61