libMesh
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
libMesh::Predicates::bnd< T > Struct Template Reference

#include <single_predicates.h>

Inheritance diagram for libMesh::Predicates::bnd< T >:
[legend]

Public Member Functions

 bnd (const BoundaryInfo &bndry_info)
 
virtual ~bnd ()=default
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual std::unique_ptr< predicate< T > > clone () const override
 

Protected Attributes

const BoundaryInfo_bndry_info
 

Detailed Description

template<typename T>
struct libMesh::Predicates::bnd< T >

Returns
true if n_boundary_ids(node) > 0.

Definition at line 223 of file single_predicates.h.

Constructor & Destructor Documentation

◆ bnd()

template<typename T >
libMesh::Predicates::bnd< T >::bnd ( const BoundaryInfo bndry_info)
inline

Definition at line 225 of file single_predicates.h.

225  :
226  _bndry_info(bndry_info)
227  {}
const BoundaryInfo & _bndry_info

◆ ~bnd()

template<typename T >
virtual libMesh::Predicates::bnd< T >::~bnd ( )
virtualdefault

Member Function Documentation

◆ clone()

template<typename T >
virtual std::unique_ptr<predicate<T> > libMesh::Predicates::bnd< T >::clone ( ) const
inlineoverrideprotectedvirtual

Implements libMesh::Predicates::predicate< T >.

Definition at line 234 of file single_predicates.h.

234 { return std::make_unique<bnd<T>>(*this); }

◆ operator()()

template<typename T >
bool libMesh::Predicates::bnd< T >::operator() ( const T &  it) const
overridevirtual

Implements libMesh::Predicates::predicate< T >.

Definition at line 43 of file single_predicates.C.

44 {
45  return (_bndry_info.n_boundary_ids(*it) > 0);
46 }
std::size_t n_boundary_ids() const
const BoundaryInfo & _bndry_info

Member Data Documentation

◆ _bndry_info

template<typename T >
const BoundaryInfo& libMesh::Predicates::bnd< T >::_bndry_info
protected

Definition at line 235 of file single_predicates.h.


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