libMesh::Predicates::bnd< T > Struct Template Reference

#include <single_predicates.h>

Inheritance diagram for libMesh::Predicates::bnd< T >:

Public Member Functions

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

Protected Member Functions

virtual 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 232 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 234 of file single_predicates.h.

234  :
235  _bndry_info(bndry_info)
236  {}
const BoundaryInfo & _bndry_info

◆ ~bnd()

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

Definition at line 237 of file single_predicates.h.

237 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 243 of file single_predicates.h.

243 { return new 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 244 of file single_predicates.h.


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