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

#include <single_predicates.h>

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

Public Member Functions

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

Protected Member Functions

virtual std::unique_ptr< 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 199 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 201 of file single_predicates.h.

202  :
203  _bid(b_id),
204  _bndry_info(bndry_info)
205  {}
const boundary_id_type _bid
const BoundaryInfo & _bndry_info

◆ ~bid()

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

Member Function Documentation

◆ clone()

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

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

Definition at line 212 of file single_predicates.h.

212 { return std::make_unique<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 213 of file single_predicates.h.

◆ _bndry_info

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

Definition at line 214 of file single_predicates.h.


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