NDDEM
|
Handles lists of contacts. More...
#include <ContactList.h>
Public Member Functions | |
ContactList () | |
void | reset () |
Go to the contact list beginning. More... | |
int | insert (const cp< d > &a) |
Insert a contact, maintaining sorting with increasing i, and removing missing contacts on traversal. More... | |
void | finalise () |
Go to the end of the contact list, erasing any remaining contact which opened. More... | |
void | check_ghost_dst (uint32_t gst, int n, double partialsum, uint32_t mask, const Parameters< d > &P, cv1d &X1, cv1d &X2, cp< d > &contact) |
bool | check_ghost_regular (bitdim gst, const Parameters< d > &P, cv1d &X1, cv1d &X2, double r1, double r2, cp< d > &tmpcp, int startd=0, double partialsum=0, bitdim mask=0) |
Find ghost-particle contact, going though pbc recursively. A beautiful piece of optimised algorithm if I may say so myself. More... | |
bool | check_ghost_LE (bitdim gst, const Parameters< d > &P, cv1d &X1, cv1d &X2, double r1, double r2, cp< d > &tmpcp, int startd=0, double partialsum=0, bitdim mask=0) |
void | coordinance (v1d &Z) |
Calculate and store coordination number in Z. More... | |
Action< d > * | default_action () |
Easy allocation of a default contact to initialise new contacts. More... | |
template<class Archive > | |
void | serialize (Archive &ar) |
Public Attributes | |
bool(ContactList::* | check_ghost )(bitdim, const Parameters< d > &, cv1d &, cv1d &, double, double, cp< d > &, int startd, double partialsum, bitdim mask) |
list< cp< d > > | v |
Contains the list of contact. More... | |
int | cid =0 |
Private Attributes | |
list< cp< d > >::iterator | it |
Iterator to the list to allow easy traversal, insertion & deletion while maintening ordering. More... | |
Action< d > | def |
Default action. More... | |
list< cp< d > > | null_list |
Handles lists of contacts.
|
inline |
|
inline |
Easy allocation of a default contact to initialise new contacts.
|
inline |
Go to the end of the contact list, erasing any remaining contact which opened.
|
inline |
Go to the contact list beginning.
bool(ContactList::* ContactList< d >::check_ghost) (bitdim, const Parameters< d > &, cv1d &, cv1d &, double, double, cp< d > &, int startd, double partialsum, bitdim mask) |
int ContactList< d >::cid =0 |
|
private |
Default action.
|
private |
Iterator to the list to allow easy traversal, insertion & deletion while maintening ordering.
|
private |
list<cp<d> > ContactList< d >::v |
Contains the list of contact.