1 |
|
5 |
//------------------------------------------------------------
|
2 |
|
|
//------------------------------------------------------------
|
3 |
|
|
// MAGiC
|
4 |
francois |
222 |
// Jean Christophe Cuilli�re et Vincent FRANCOIS
|
5 |
|
|
// D�partement de G�nie M�canique - UQTR
|
6 |
|
5 |
//------------------------------------------------------------
|
7 |
francois |
222 |
// Le projet MAGIC est un projet de recherche du d�partement
|
8 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec �
|
9 |
|
|
// Trois Rivi�res
|
10 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord
|
11 |
|
5 |
// des auteurs (contact : francois@uqtr.ca)
|
12 |
|
|
//------------------------------------------------------------
|
13 |
|
|
//------------------------------------------------------------
|
14 |
|
|
//
|
15 |
|
|
// tpl_relation_entite.h
|
16 |
|
|
//
|
17 |
|
|
//------------------------------------------------------------
|
18 |
|
|
//------------------------------------------------------------
|
19 |
|
|
// COPYRIGHT 2000
|
20 |
francois |
222 |
// Version du 02/03/2006 � 11H24
|
21 |
|
5 |
//------------------------------------------------------------
|
22 |
|
|
//------------------------------------------------------------
|
23 |
|
|
#ifndef _TPLRELATIONENTITE_
|
24 |
|
|
#define _TPLRELATIONENTITE_
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
template <class A,class B>
|
32 |
|
|
class TPL_RELATION_ENTITE
|
33 |
|
|
{
|
34 |
|
|
public:
|
35 |
|
|
A* a;
|
36 |
|
|
B* b;
|
37 |
|
|
};
|
38 |
|
|
|
39 |
|
|
template <class A,class B>
|
40 |
|
|
class TPL_RELATION_ENTITE2
|
41 |
|
|
{
|
42 |
|
|
|
43 |
|
|
public:
|
44 |
|
|
TPL_RELATION_ENTITE2(A& aa,B* bb):a(aa),b(bb) {};
|
45 |
|
|
/*TPL_RELATION_ENTITE2(const A& aa,B* bb):a(aa),b(bb) {};
|
46 |
|
|
TPL_RELATION_ENTITE2(const A& aa,const B* bb):a(aa),b(bb) {};
|
47 |
|
|
TPL_RELATION_ENTITE2(A& aa,const B* bb):a(aa),b(bb) {};
|
48 |
|
|
TPL_RELATION_ENTITE2(TPL_RELATION_ENTITE2<A,B> &mdd):a(mdd.a),b(mdd.b) {};*/
|
49 |
|
|
|
50 |
|
|
A& a;
|
51 |
|
|
B* b;
|
52 |
|
|
};
|
53 |
|
|
|
54 |
francois |
222 |
|
55 |
|
5 |
#endif
|
56 |
|
|
|