Revision 1247 trunk/src/linad99/df12fun.cpp
df12fun.cpp (revision 1247)  

12  12  
13  13 
#include "df12fun.h" 
14  14  
15 
prevariable * df1_two_variable::ind_var[2];


15 
prevariable* df1_two_variable::ind_var[2];


16  16  
17 
int df1_two_variable::num_ind_var=0;


17 
int df1_two_variable::num_ind_var=0; 

18  18  
19  19 
/** 
20 
* Description not yet available. 

21 
* \param 

22 
*/ 

23 
df1_two_variable::df1_two_variable(const df1_two_variable& x) 

20 
Copy constructor 

21 
*/ 

22 
df1_two_variable::df1_two_variable(const df1_two_variable& x) 

23 
{ 

24 
v[0] = x.v[0]; 

25 
v[1] = x.v[1]; 

26 
v[2] = x.v[2]; 

27 
} 

28 
/** 

29 
Copy constructor 

30 
*/ 

31 
df1_two_vector::df1_two_vector(const df1_two_vector& m2) 

32 
{ 

33 
index_min = m2.index_min; 

34 
index_max = m2.index_max; 

35 
shape =m2.shape; 

36 
if (shape) 

24  37 
{ 
25 
v[0]=x.v[0]; 

26 
v[1]=x.v[1]; 

27 
v[2]=x.v[2]; 

38 
(shape>ncopies)++; 

28  39 
} 
29  
40 
v = m2.v; 

41 
} 

30  42 
/** 
31 
* Description not yet available. 

32 
* \param 

33 
*/ 

34 
df1_two_vector::df1_two_vector(const df1_two_vector& m2) 

35 
{ 

36 
index_min=m2.index_min; 

37 
index_max=m2.index_max; 

38 
shape=m2.shape; 

39 
if (shape) 

40 
{ 

41 
(shape>ncopies)++; 

42 
} 

43 
v = m2.v; 

44 
} 

43 
Destructor 

44 
*/ 

45 
df1_two_vector::~df1_two_vector() 

46 
{ 

47 
deallocate(); 

48 
} 

45  49  
46  50 
/** 
47  51 
* Description not yet available. 
48  52 
* \param 
49  53 
*/ 
50 
df1_two_vector::~df1_two_vector() 

51 
{ 

52 
deallocate(); 

53 
} 

54  
55 
/** 

56 
* Description not yet available. 

57 
* \param 

58 
*/ 

59  54 
void df1_two_vector::deallocate(void) 
60  55 
{ 
61  56 
if(shape) 
Also available in: Unified diff