libMesh
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
libMesh::InvalidConstraint Class Reference

Represents an invalid constraint (i.e., when the two constraints don't intersect) More...

#include <variational_smoother_constraint.h>

Public Member Functions

 InvalidConstraint ()
 
ConstraintVariant intersect (const ConstraintVariant &) const
 Dummy intersect method that should never be called.
 
bool contains_point (const PointConstraint &) const
 Dummy contains_point method that should never be called.
 

Private Attributes

std::string _err_msg
 

Detailed Description

Represents an invalid constraint (i.e., when the two constraints don't intersect)

Definition at line 330 of file variational_smoother_constraint.h.

Constructor & Destructor Documentation

◆ InvalidConstraint()

libMesh::InvalidConstraint::InvalidConstraint ( )
inline

Definition at line 334 of file variational_smoother_constraint.h.

335 : _err_msg("We should never get here! The InvalidConstraint object should be "
336 "detected and replaced with a valid ConstraintVariant prior to calling "
337 "any class methods.")
338 {
339 }

Member Function Documentation

◆ contains_point()

bool libMesh::InvalidConstraint::contains_point ( const PointConstraint ) const
inline

Dummy contains_point method that should never be called.

Definition at line 352 of file variational_smoother_constraint.h.

352 {
353 libmesh_assert_msg(false, _err_msg);
354 return false;
355 }

References _err_msg.

◆ intersect()

ConstraintVariant libMesh::InvalidConstraint::intersect ( const ConstraintVariant ) const
inline

Dummy intersect method that should never be called.

Definition at line 344 of file variational_smoother_constraint.h.

344 {
345 libmesh_assert_msg(false, _err_msg);
346 return *this;
347 }

References _err_msg.

Member Data Documentation

◆ _err_msg

std::string libMesh::InvalidConstraint::_err_msg
private

Definition at line 358 of file variational_smoother_constraint.h.

Referenced by contains_point(), and intersect().


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