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 /*! set the attribut _numberOfFamilies to numberOfFamilies */
70 //----------------------------------------------------------
71 inline void GROUP::setNumberOfFamilies(int numberOfFamilies)
72 //----------------------------------------------------------
74 _numberOfFamilies = numberOfFamilies;
78 /*! set the attribut _family to Family */
79 //----------------------------------------------------
80 inline void GROUP::setFamilies(vector<FAMILY*> Family)
81 //----------------------------------------------------
86 /*! returns number of families in the group */
87 //--------------------------------------------
88 inline int GROUP::getNumberOfFamilies() const
89 //-------------------------------------------
91 return _numberOfFamilies;
94 /*! returns the vector of families in the group */
95 //------------------------------------------------
96 inline vector<FAMILY*> GROUP::getFamilies() const
97 //------------------------------------------------
102 /*! returns a reference on family I of the group */
103 //--------------------------------------------------
104 FAMILY * GROUP::getFamily(int i) const
105 //--------------------------------------------------
109 }//End namespace MEDMEM
111 #endif /* GROUP_HXX */