11 #include "MEDMEM_Family.hxx"
16 This class describe a group of elements on an entity./n
17 It inherits from SUPPORT./n
18 It is a blending of some FAMILY class./n/n
24 class GROUP : virtual public SUPPORT
29 Number of families in the group.
32 int _numberOfFamilies ;
35 Vector of families in the group.
36 Note that Families are numbered from 1 to N.
39 vector<FAMILY*> _family ;
45 GROUP(const string & name, const list<FAMILY*> & family) throw (MEDEXCEPTION) ;
46 /*! Copy Constructor. */
47 GROUP(const GROUP & m);
52 // PN ATTention il n y a pas de copie du vecteur Family ????
53 GROUP & operator=(const GROUP &group);
56 friend ostream & operator<<(ostream &os, GROUP &my) ;
58 inline void setNumberOfFamilies(int numberOfFamilies);
59 inline void setFamilies(vector<FAMILY*> Family);
61 inline int getNumberOfFamilies() const ;
62 inline vector<FAMILY*> getFamilies() const ;
63 inline FAMILY * getFamily(int i) const ;
69 using namespace MEDMEM;
71 /*! set the attribut _numberOfFamilies to numberOfFamilies */
72 //----------------------------------------------------------
73 inline void GROUP::setNumberOfFamilies(int numberOfFamilies)
74 //----------------------------------------------------------
76 _numberOfFamilies = numberOfFamilies;
80 /*! set the attribut _family to Family */
81 //----------------------------------------------------
82 inline void GROUP::setFamilies(vector<FAMILY*> Family)
83 //----------------------------------------------------
88 /*! returns number of families in the group */
89 //--------------------------------------------
90 inline int GROUP::getNumberOfFamilies() const
91 //-------------------------------------------
93 return _numberOfFamilies;
96 /*! returns the vector of families in the group */
97 //------------------------------------------------
98 inline vector<FAMILY*> GROUP::getFamilies() const
99 //------------------------------------------------
104 /*! returns a reference on family I of the group */
105 //--------------------------------------------------
106 FAMILY * GROUP::getFamily(int i) const
107 //--------------------------------------------------
113 #endif /* GROUP_HXX */