Reference documentation for deal.II version GIT f1addc1142 2022-07-05 19:05:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ArborXWrappers::SphereIntersectPredicate Class Reference

#include <deal.II/arborx/access_traits.h>

Inheritance diagram for ArborXWrappers::SphereIntersectPredicate:
[legend]

Public Member Functions

template<int dim, typename Number >
 SphereIntersectPredicate (const std::vector< std::pair<::Point< dim, Number >, Number >> &spheres)
 
const std::pair<::Point< 3, float >, float > & get (unsigned int) const
 
std::size_t size () const
 

Private Member Functions

std::size_t size () const
 
const std::pair<::Point< 3, float >, float > & get (unsigned int) const
 

Private Attributes

std::vector< std::pair<::Point< 3, float >, float > > spheres
 

Detailed Description

This class defines a predicate used by ArborXWrappers::BVH to determine for given spheres which of the bounding boxes used to build the ArborXWrappers::BVH intersect with them.

Note
The class is not supposed to be used in a polymorphic context.

Definition at line 253 of file access_traits.h.

Constructor & Destructor Documentation

◆ SphereIntersectPredicate()

template<int dim, typename Number >
ArborXWrappers::SphereIntersectPredicate::SphereIntersectPredicate ( const std::vector< std::pair<::Point< dim, Number >, Number >> &  spheres)

Constructor. spheres is a list of spheres which we are interested in knowing if they intersect ArborXWrappers::BVH bounding boxes.

Definition at line 192 of file access_traits.cc.

Member Function Documentation

◆ get() [1/2]

const std::pair<::Point< 3, float >, float > & ArborXWrappers::SpherePredicate::get

Return the ith sphere stored in the object.

Definition at line 239 of file access_traits.cc.

◆ size() [1/2]

std::size_t ArborXWrappers::SpherePredicate::size

The number of spheres stored in the structure.

Definition at line 233 of file access_traits.cc.

◆ size() [2/2]

std::size_t ArborXWrappers::SpherePredicate::size ( ) const
protectedinherited

The number of spheres stored in the structure.

Definition at line 176 of file access_traits.cc.

◆ get() [2/2]

const std::pair<::Point< 3, float >, float > & ArborXWrappers::SpherePredicate::get ( unsigned int  i) const
protectedinherited

Return the ith sphere stored in the object.

Definition at line 184 of file access_traits.cc.

Member Data Documentation

◆ spheres

std::vector<std::pair<::Point<3, float>, float> > ArborXWrappers::SpherePredicate::spheres
privateinherited

Definition at line 242 of file access_traits.h.


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