Loading...
Searching...
No Matches
PLMD::metatomic::vesin::cpu::GrowableNeighborList Class Reference

Wrapper around VesinNeighborList that behaves like a std::vector, automatically growing memory allocations. More...

Public Member Functions

void grow ()
 
void increment_length ()
 
size_t length () const
 
void reset ()
 
void set_distance (size_t index, double distance)
 
void set_pair (size_t index, size_t first, size_t second)
 
void set_shift (size_t index, PLMD::metatomic::vesin::CellShift shift)
 
void set_vector (size_t index, PLMD::metatomic::vesin::Vector vector)
 
void sort ()
 

Public Attributes

size_t capacity
 
VesinNeighborListneighbors
 
VesinOptions options
 

Detailed Description

Wrapper around VesinNeighborList that behaves like a std::vector, automatically growing memory allocations.

Member Function Documentation

◆ grow()

void GrowableNeighborList::grow ( )

◆ increment_length()

void PLMD::metatomic::vesin::cpu::GrowableNeighborList::increment_length ( )
inline

◆ length()

size_t PLMD::metatomic::vesin::cpu::GrowableNeighborList::length ( ) const
inline

◆ reset()

void GrowableNeighborList::reset ( )

◆ set_distance()

void GrowableNeighborList::set_distance ( size_t index,
double distance )

◆ set_pair()

void GrowableNeighborList::set_pair ( size_t index,
size_t first,
size_t second )

◆ set_shift()

void GrowableNeighborList::set_shift ( size_t index,
PLMD::metatomic::vesin::CellShift shift )

◆ set_vector()

void GrowableNeighborList::set_vector ( size_t index,
PLMD::metatomic::vesin::Vector vector )

◆ sort()

void GrowableNeighborList::sort ( )

Member Data Documentation

◆ capacity

size_t PLMD::metatomic::vesin::cpu::GrowableNeighborList::capacity

◆ neighbors

VesinNeighborList& PLMD::metatomic::vesin::cpu::GrowableNeighborList::neighbors

◆ options

VesinOptions PLMD::metatomic::vesin::cpu::GrowableNeighborList::options

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