NDDEM
Public Member Functions | Public Attributes | Private Attributes | List of all members
ContactList< d > Class Template Reference

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< ddef
 Default action. More...
 
list< cp< d > > null_list
 

Detailed Description

template<int d>
class ContactList< d >

Handles lists of contacts.

Constructor & Destructor Documentation

◆ ContactList()

template<int d>
ContactList< d >::ContactList ( )
inline

Member Function Documentation

◆ default_action()

template<int d>
Action<d>* ContactList< d >::default_action ( )
inline

Easy allocation of a default contact to initialise new contacts.

◆ finalise()

template<int d>
void ContactList< d >::finalise ( )
inline

Go to the end of the contact list, erasing any remaining contact which opened.

◆ reset()

template<int d>
void ContactList< d >::reset ( )
inline

Go to the contact list beginning.

◆ serialize()

template<int d>
template<class Archive >
void ContactList< d >::serialize ( Archive &  ar)
inline

Member Data Documentation

◆ check_ghost

template<int d>
bool(ContactList::* ContactList< d >::check_ghost) (bitdim, const Parameters< d > &, cv1d &, cv1d &, double, double, cp< d > &, int startd, double partialsum, bitdim mask)

◆ cid

template<int d>
int ContactList< d >::cid =0
Deprecated:
not used for anything anymore I think.

◆ def

template<int d>
Action<d> ContactList< d >::def
private

Default action.

◆ it

template<int d>
list<cp<d> >::iterator ContactList< d >::it
private

Iterator to the list to allow easy traversal, insertion & deletion while maintening ordering.

◆ null_list

template<int d>
list<cp<d> > ContactList< d >::null_list
private

◆ v

template<int d>
list<cp<d> > ContactList< d >::v

Contains the list of contact.


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