Public Member Functions | Static Public Member Functions | List of all members
PLMD::Accelerator< dimension_ > Class Template Referencefinal
Inheritance diagram for PLMD::Accelerator< dimension_ >:
Inheritance graph
[legend]

Public Member Functions

unsigned getDimension () const override
 Can be used to check which value of dimension was used. More...
 
GridBase::index_t getIndex (const GridBase &grid, const std::vector< unsigned > &nbin_, const unsigned *indices, std::size_t indices_size) const override
 
void getIndices (const std::vector< double > &min_, const std::vector< double > &dx_, const std::vector< double > &x, unsigned *rindex_data, std::size_t rindex_size) const override
 
void getIndices (const std::vector< unsigned > &nbin_, GridBase::index_t index, unsigned *indices, std::size_t indices_size) const override
 
std::vector< GridBase::index_tgetNeighbors (const GridBase &grid, const std::vector< unsigned > &nbin_, const std::vector< bool > &pbc_, const unsigned *indices, std::size_t indices_size, const std::vector< unsigned > &nneigh) const override
 
void getPoint (const std::vector< double > &min_, const std::vector< double > &dx_, const unsigned *indices, std::size_t indices_size, double *point, std::size_t point_size) const override
 

Static Public Member Functions

static std::unique_ptr< AcceleratorBase > create (unsigned dim)
 Creates an accelerator with proper dimension. More...
 

Member Function Documentation

◆ create()

std::unique_ptr< Grid::AcceleratorBase > PLMD::Grid::AcceleratorBase::create ( unsigned  dim)
staticinherited

Creates an accelerator with proper dimension.

◆ getDimension()

template<unsigned dimension_>
unsigned PLMD::Accelerator< dimension_ >::getDimension ( ) const
inlineoverridevirtual

Can be used to check which value of dimension was used.

Implements PLMD::GridBase::AcceleratorBase.

◆ getIndex()

template<unsigned dimension_>
GridBase::index_t PLMD::Accelerator< dimension_ >::getIndex ( const GridBase grid,
const std::vector< unsigned > &  nbin_,
const unsigned *  indices,
std::size_t  indices_size 
) const
inlineoverridevirtual

◆ getIndices() [1/2]

template<unsigned dimension_>
void PLMD::Accelerator< dimension_ >::getIndices ( const std::vector< double > &  min_,
const std::vector< double > &  dx_,
const std::vector< double > &  x,
unsigned *  rindex_data,
std::size_t  rindex_size 
) const
inlineoverridevirtual

◆ getIndices() [2/2]

template<unsigned dimension_>
void PLMD::Accelerator< dimension_ >::getIndices ( const std::vector< unsigned > &  nbin_,
GridBase::index_t  index,
unsigned *  indices,
std::size_t  indices_size 
) const
inlineoverridevirtual

◆ getNeighbors()

template<unsigned dimension_>
std::vector<GridBase::index_t> PLMD::Accelerator< dimension_ >::getNeighbors ( const GridBase grid,
const std::vector< unsigned > &  nbin_,
const std::vector< bool > &  pbc_,
const unsigned *  indices,
std::size_t  indices_size,
const std::vector< unsigned > &  nneigh 
) const
inlineoverridevirtual

◆ getPoint()

template<unsigned dimension_>
void PLMD::Accelerator< dimension_ >::getPoint ( const std::vector< double > &  min_,
const std::vector< double > &  dx_,
const unsigned *  indices,
std::size_t  indices_size,
double *  point,
std::size_t  point_size 
) const
inlineoverridevirtual

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