UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
voro::c_loop_base Class Reference

Base class for looping over particles in a container. More...

#include <c_loops.hh>

+ Inheritance diagram for voro::c_loop_base:

Public Member Functions

template<class c_class >
 c_loop_base (c_class &con)
 
void pos (double &x, double &y, double &z)
 
void pos (int &pid, double &x, double &y, double &z, double &r)
 
double x ()
 
double y ()
 
double z ()
 
int pid ()
 

Public Attributes

const int nx
 
const int ny
 
const int nz
 
const int nxy
 
const int nxyz
 
const int ps
 
double ** p
 
int ** id
 
int * co
 
int i
 
int j
 
int k
 
int ijk
 
int q
 

Detailed Description

Base class for looping over particles in a container.

This class forms the base of all classes that can loop over a subset of particles in a contaner in some order. When initialized, it stores constants about the corresponding container geometry. It also contains a number of routines for interrogating which particle currently being considered by the loop, which are common between all of the derived classes.

Constructor & Destructor Documentation

◆ c_loop_base()

template<class c_class >
voro::c_loop_base::c_loop_base ( c_class con)
inline

The constructor copies several necessary constants from the base container class.

Parameters
[in]conthe container class to use.

Member Function Documentation

◆ pid()

int voro::c_loop_base::pid ( )
inline

Returns the ID of the particle currently being considered by the loop.

◆ pos() [1/2]

void voro::c_loop_base::pos ( double x,
double y,
double z 
)
inline

Returns the position vector of the particle currently being considered by the loop.

Parameters
[out](x,y,z)the position vector of the particle.

◆ pos() [2/2]

void voro::c_loop_base::pos ( int &  pid,
double x,
double y,
double z,
double r 
)
inline

Returns the ID, position vector, and radius of the particle currently being considered by the loop.

Parameters
[out]pidthe particle ID.
[out](x,y,z)the position vector of the particle.
[out]rthe radius of the particle. If no radius information is available the default radius value is returned.

◆ x()

double voro::c_loop_base::x ( )
inline

Returns the x position of the particle currently being considered by the loop.

◆ y()

double voro::c_loop_base::y ( )
inline

Returns the y position of the particle currently being considered by the loop.

◆ z()

double voro::c_loop_base::z ( )
inline

Returns the z position of the particle currently being considered by the loop.

Member Data Documentation

◆ co

int* voro::c_loop_base::co

A pointer to the particle counts in the associated container data structure.

◆ i

int voro::c_loop_base::i

The current x-index of the block under consideration by the loop.

◆ id

int** voro::c_loop_base::id

A pointer to the particle ID information in the associated container data structure.

◆ ijk

int voro::c_loop_base::ijk

The current index of the block under consideration by the loop.

◆ j

int voro::c_loop_base::j

The current y-index of the block under consideration by the loop.

◆ k

int voro::c_loop_base::k

The current z-index of the block under consideration by the loop.

◆ nx

const int voro::c_loop_base::nx

The number of blocks in the x direction.

◆ nxy

const int voro::c_loop_base::nxy

A constant, set to the value of nx multiplied by ny, which is used in the routines that step through blocks in sequence.

◆ nxyz

const int voro::c_loop_base::nxyz

A constant, set to the value of nx*ny*nz, which is used in the routines that step through blocks in sequence.

◆ ny

const int voro::c_loop_base::ny

The number of blocks in the y direction.

◆ nz

const int voro::c_loop_base::nz

The number of blocks in the z direction.

◆ p

double** voro::c_loop_base::p

A pointer to the particle position information in the associated container data structure.

◆ ps

const int voro::c_loop_base::ps

The number of floating point numbers per particle in the associated container data structure.

◆ q

int voro::c_loop_base::q

The index of the particle under consideration within the current block.


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