MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PossibleContact Class Reference

#include <PossibleContact.h>

Public Member Functions

 PossibleContact ()
 
 PossibleContact (Particle *P1, Particle *P2)
 
 PossibleContact (Particle *P1, Particle *P2, PossibleContact *Next)
 
 PossibleContact (Particle *P1, Particle *P2, PossibleContact *Next, PossibleContact *Next1, PossibleContact *Next2)
 
Particle * get_P1 ()
 
Particle * get_P2 ()
 
Particle * get_OtherParticle (Particle *P)
 
PossibleContactget_Next ()
 
PossibleContactget_Next (Particle *P)
 
PossibleContactget_Prev ()
 
PossibleContactget_Prev (Particle *P)
 
PossibleContactget_Next1 ()
 
PossibleContactget_Prev1 ()
 
PossibleContactget_Next2 ()
 
PossibleContactget_Prev2 ()
 
int get_Index ()
 
void set_P1 (Particle *P1)
 
void set_P2 (Particle *P2)
 
void set_Next (PossibleContact *Next)
 
void set_Next (Particle *P, PossibleContact *Next)
 
void set_Prev (PossibleContact *Prev)
 
void set_Prev (Particle *P, PossibleContact *Prev)
 
void set_Next1 (PossibleContact *Next1)
 
void set_Prev1 (PossibleContact *Prev1)
 
void set_Next2 (PossibleContact *Next2)
 
void set_Prev2 (PossibleContact *Prev2)
 

Private Attributes

int index
 
Particle * P1
 
Particle * P2
 
PossibleContactNext
 
PossibleContactPrev
 
PossibleContactNext1
 
PossibleContactPrev1
 
PossibleContactNext2
 
PossibleContactPrev2
 

Detailed Description

Definition at line 29 of file PossibleContact.h.

Constructor & Destructor Documentation

PossibleContact::PossibleContact ( )
inline

Definition at line 32 of file PossibleContact.h.

References index, Next, Next1, Next2, P1, P2, Prev, Prev1, and Prev2.

33  {
34  P1=0;
35  P2=0;
36  Next=0;
37  Prev=0;
38  Next1=0;
39  Prev1=0;
40  Next2=0;
41  Prev2=0;
42  index=0;
43  }
PossibleContact * Next
PossibleContact * Prev
PossibleContact * Prev2
PossibleContact * Prev1
PossibleContact * Next1
PossibleContact * Next2
PossibleContact::PossibleContact ( Particle *  P1,
Particle *  P2 
)
inline

Definition at line 44 of file PossibleContact.h.

References P1, and P2.

45  {
46  this->P1=P1;
47  this->P2=P2;
48  }
PossibleContact::PossibleContact ( Particle *  P1,
Particle *  P2,
PossibleContact Next 
)
inline

Definition at line 49 of file PossibleContact.h.

References get_Index(), index, Next, P1, P2, and Prev.

50  {
51  this->P1=P1;
52  this->P2=P2;
53  this->Next=Next;
54  this->Prev=0;
55  if(Next)
56  index=Next->get_Index()+1;
57  else
58  index=0;
59  }
PossibleContact * Next
PossibleContact * Prev
PossibleContact::PossibleContact ( Particle *  P1,
Particle *  P2,
PossibleContact Next,
PossibleContact Next1,
PossibleContact Next2 
)
inline

Definition at line 60 of file PossibleContact.h.

References get_Index(), index, Next, Next1, Next2, P1, P2, Prev, Prev1, and Prev2.

61  {
62  this->P1=P1;
63  this->P2=P2;
64  this->Next=Next;
65  this->Next1=Next1;
66  this->Next2=Next2;
67  this->Prev=0;
68  this->Prev1=0;
69  this->Prev2=0;
70  if(Next)
71  index=Next->get_Index()+1;
72  else
73  index=0;
74  }
PossibleContact * Next
PossibleContact * Prev
PossibleContact * Prev2
PossibleContact * Prev1
PossibleContact * Next1
PossibleContact * Next2

Member Function Documentation

int PossibleContact::get_Index ( )
inline

Definition at line 120 of file PossibleContact.h.

References index.

Referenced by get_Next(), get_Prev(), PossibleContact(), set_Next(), and set_Prev().

120 {return index;}
PossibleContact* PossibleContact::get_Next ( )
inline
PossibleContact* PossibleContact::get_Next ( Particle *  P)
inline

Definition at line 91 of file PossibleContact.h.

References get_Index(), Next1, Next2, P1, and P2.

92  {
93  if(P1==P)
94  return Next1;
95  else if(P2==P)
96  return Next2;
97  else
98  {
99  std::cout<<"get_Next(Particle* P), no match for "<<P->get_Index()<<" posibilities are "<<P1->get_Index()<<" and "<<P2->get_Index()<<std::endl;
100  return 0;
101  }
102  }
PossibleContact * Next1
PossibleContact * Next2
PossibleContact* PossibleContact::get_Next1 ( )
inline

Definition at line 116 of file PossibleContact.h.

References Next1.

Referenced by PossibleContactList::add_PossibleContact().

116 {return Next1;}
PossibleContact * Next1
PossibleContact* PossibleContact::get_Next2 ( )
inline

Definition at line 118 of file PossibleContact.h.

References Next2.

Referenced by PossibleContactList::add_PossibleContact().

118 {return Next2;}
PossibleContact * Next2
Particle* PossibleContact::get_OtherParticle ( Particle *  P)
inline

Definition at line 78 of file PossibleContact.h.

References P1, and P2.

Referenced by PossibleContactList::remove_ParticlePosibleContacts().

79  {
80  if(P1==P)
81  return P2;
82  else if(P2==P)
83  return P1;
84  else
85  {
86  std::cout<<"Particle* get_OtherParticle(Particle *P), no match for "<<P->get_Index()<<" posibilities are "<<P1->get_Index()<<" and "<<P2->get_Index()<<std::endl;
87  return 0;
88  }
89  }
Particle* PossibleContact::get_P1 ( )
inline

Definition at line 76 of file PossibleContact.h.

References P1.

Referenced by MD::compute_all_forces().

76 {return P1;}
Particle* PossibleContact::get_P2 ( )
inline

Definition at line 77 of file PossibleContact.h.

References P2.

Referenced by MD::compute_all_forces().

77 {return P2;}
PossibleContact* PossibleContact::get_Prev ( )
inline

Definition at line 103 of file PossibleContact.h.

References Prev.

Referenced by PossibleContactList::remove_ParticlePosibleContacts().

103 {return Prev;}
PossibleContact * Prev
PossibleContact* PossibleContact::get_Prev ( Particle *  P)
inline

Definition at line 104 of file PossibleContact.h.

References get_Index(), P1, P2, Prev1, and Prev2.

105  {
106  if(P1==P)
107  return Prev1;
108  else if(P2==P)
109  return Prev2;
110  else
111  {
112  std::cout<<"PossibleContact* get_Prev(Particle* P), no match for "<<P->get_Index()<<" posibilities are "<<P1->get_Index()<<" and "<<P2->get_Index()<<std::endl;
113  return 0;
114  }
115  }
PossibleContact * Prev2
PossibleContact * Prev1
PossibleContact* PossibleContact::get_Prev1 ( )
inline

Definition at line 117 of file PossibleContact.h.

References Prev1.

117 {return Prev1;}
PossibleContact * Prev1
PossibleContact* PossibleContact::get_Prev2 ( )
inline

Definition at line 119 of file PossibleContact.h.

References Prev2.

119 {return Prev2;}
PossibleContact * Prev2
void PossibleContact::set_Next ( PossibleContact Next)
inline

Definition at line 124 of file PossibleContact.h.

References Next.

Referenced by PossibleContactList::remove_ParticlePosibleContacts().

124 {this->Next=Next;}
PossibleContact * Next
void PossibleContact::set_Next ( Particle *  P,
PossibleContact Next 
)
inline

Definition at line 125 of file PossibleContact.h.

References get_Index(), Next, Next1, Next2, P1, and P2.

126  {
127  if(P1==P)
128  this->Next1=Next;
129  else if(P2==P)
130  this->Next2=Next;
131  else
132  std::cout<<"void set_Next(Particle* P,PossibleContact* Next), no match for "<<P->get_Index()<<" posibilities are "<<P1->get_Index()<<" and "<<P2->get_Index()<<std::endl;
133  }
PossibleContact * Next
PossibleContact * Next1
PossibleContact * Next2
void PossibleContact::set_Next1 ( PossibleContact Next1)
inline

Definition at line 144 of file PossibleContact.h.

References Next1.

144 {this->Next1=Next1;}
PossibleContact * Next1
void PossibleContact::set_Next2 ( PossibleContact Next2)
inline

Definition at line 146 of file PossibleContact.h.

References Next2.

146 {this->Next2=Next2;}
PossibleContact * Next2
void PossibleContact::set_P1 ( Particle *  P1)
inline

Definition at line 122 of file PossibleContact.h.

References P1.

122 {this->P1=P1;}
void PossibleContact::set_P2 ( Particle *  P2)
inline

Definition at line 123 of file PossibleContact.h.

References P2.

123 {this->P2=P2;}
void PossibleContact::set_Prev ( PossibleContact Prev)
inline

Definition at line 134 of file PossibleContact.h.

References Prev.

Referenced by PossibleContactList::add_PossibleContact(), and PossibleContactList::remove_ParticlePosibleContacts().

134 {this->Prev=Prev;}
PossibleContact * Prev
void PossibleContact::set_Prev ( Particle *  P,
PossibleContact Prev 
)
inline

Definition at line 135 of file PossibleContact.h.

References get_Index(), P1, P2, Prev, Prev1, and Prev2.

136  {
137  if(P1==P)
138  this->Prev1=Prev;
139  else if(P2==P)
140  this->Prev2=Prev;
141  else
142  std::cout<<"void set_Prev(Particle* P,PossibleContact* Prev), no match for "<<P->get_Index()<<" posibilities are "<<P1->get_Index()<<" and "<<P2->get_Index()<<std::endl;
143  }
PossibleContact * Prev
PossibleContact * Prev2
PossibleContact * Prev1
void PossibleContact::set_Prev1 ( PossibleContact Prev1)
inline

Definition at line 145 of file PossibleContact.h.

References Prev1.

145 {this->Prev1=Prev1;}
PossibleContact * Prev1
void PossibleContact::set_Prev2 ( PossibleContact Prev2)
inline

Definition at line 147 of file PossibleContact.h.

References Prev2.

147 {this->Prev2=Prev2;}
PossibleContact * Prev2

Member Data Documentation

int PossibleContact::index
private

Definition at line 151 of file PossibleContact.h.

Referenced by get_Index(), and PossibleContact().

PossibleContact* PossibleContact::Next
private

Definition at line 154 of file PossibleContact.h.

Referenced by get_Next(), PossibleContact(), and set_Next().

PossibleContact* PossibleContact::Next1
private

Definition at line 156 of file PossibleContact.h.

Referenced by get_Next(), get_Next1(), PossibleContact(), set_Next(), and set_Next1().

PossibleContact* PossibleContact::Next2
private

Definition at line 158 of file PossibleContact.h.

Referenced by get_Next(), get_Next2(), PossibleContact(), set_Next(), and set_Next2().

Particle* PossibleContact::P1
private
Particle* PossibleContact::P2
private
PossibleContact* PossibleContact::Prev
private

Definition at line 155 of file PossibleContact.h.

Referenced by get_Prev(), PossibleContact(), and set_Prev().

PossibleContact* PossibleContact::Prev1
private

Definition at line 157 of file PossibleContact.h.

Referenced by get_Prev(), get_Prev1(), PossibleContact(), set_Prev(), and set_Prev1().

PossibleContact* PossibleContact::Prev2
private

Definition at line 159 of file PossibleContact.h.

Referenced by get_Prev(), get_Prev2(), PossibleContact(), set_Prev(), and set_Prev2().


The documentation for this class was generated from the following file: