![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
A class for storing a list of pointers to walls. More...
#include <container.hh>
Inheritance diagram for voro::wall_list:Public Member Functions | |
| wall_list () | |
| wall_list (const wall_list &Other)=delete | |
| wall_list & | operator= (const wall_list &Other)=delete |
| wall_list (wall_list &&Other) noexcept | |
| wall_list & | operator= (wall_list &&Other) |
| ~wall_list () | |
| void | add_wall (wall *w) |
| void | add_wall (wall &w) |
| void | add_wall (wall_list &wl) |
| bool | point_inside_walls (double x, double y, double z) const |
| template<class c_class > | |
| bool | apply_walls (c_class &c, double x, double y, double z) const |
| void | deallocate () |
Public Attributes | |
| wall ** | walls |
| wall ** | wep |
Protected Member Functions | |
| void | increase_wall_memory () |
Protected Attributes | |
| wall ** | wel |
| int | current_wall_size |
A class for storing a list of pointers to walls.
This class stores a list of pointers to wall classes. It contains several simple routines that make use of the wall classes (such as telling whether a given position is inside all of the walls or not). It can be used by itself, but also forms part of container_base, for associating walls with this class.
| voro::wall_list::wall_list | ( | ) |
The wall_list constructor sets up an array of pointers to wall classes.
|
delete |
|
inlinenoexcept |
| voro::wall_list::~wall_list | ( | ) |
The wall_list destructor frees the array of pointers to the wall classes.
Adds a wall to the list.
| [in] | w | a reference to the wall to add. |
Adds a wall to the list.
| [in] | w | the wall to add. |
Adds all of the walls on another wall_list to this class.
| [in] | wl | a reference to the wall class. |
|
inline |
Cuts a Voronoi cell by all of the walls currently on the list.
| [in] | c | a reference to the Voronoi cell class. |
| [in] | (x,y,z) | the position of the cell. |
| void voro::wall_list::deallocate | ( | ) |
Deallocates all of the wall classes pointed to by the wall_list.
|
protected |
Increases the memory allocation for the walls array.
Determines whether a given position is inside all of the walls on the list.
| [in] | (x,y,z) | the position to test. |
|
protected |
The current amount of memory allocated for walls.
| wall** voro::wall_list::walls |
An array holding pointers to wall objects.
|
protected |
A pointer to the limit of the walls array, used to determine when array is full.
| wall** voro::wall_list::wep |
A pointer to the next free position to add a wall pointer.