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

#include <single_predicates.h>

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

Public Member Functions

 bid (boundary_id_type b_id, const BoundaryInfo &bndry_info)
 
virtual ~bid ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Protected Attributes

const boundary_id_type _bid
 
const BoundaryInfo_bndry_info
 

Detailed Description

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

Returns
has_boundary_id(node, id).

Definition at line 208 of file single_predicates.h.

Constructor & Destructor Documentation

◆ bid()

template<typename T>
libMesh::Predicates::bid< T >::bid ( boundary_id_type  b_id,
const BoundaryInfo bndry_info 
)
inline

Definition at line 210 of file single_predicates.h.

211  :
212  _bid(b_id),
213  _bndry_info(bndry_info)
214  {}
const boundary_id_type _bid
const BoundaryInfo & _bndry_info

◆ ~bid()

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

Definition at line 215 of file single_predicates.h.

215 {}

Member Function Documentation

◆ clone()

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

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

Definition at line 221 of file single_predicates.h.

221 { return new bid<T>(*this); }

◆ operator()()

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

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

Definition at line 34 of file single_predicates.C.

35 {
36  return _bndry_info.has_boundary_id(*it, _bid);
37 }
bool has_boundary_id(const Node *const node, const boundary_id_type id) const
const boundary_id_type _bid
const BoundaryInfo & _bndry_info

Member Data Documentation

◆ _bid

template<typename T>
const boundary_id_type libMesh::Predicates::bid< T >::_bid
protected

Definition at line 222 of file single_predicates.h.

◆ _bndry_info

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

Definition at line 223 of file single_predicates.h.


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