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

#include <single_predicates.h>

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

Public Member Functions

virtual ~is_null ()
 
virtual bool operator() (const T &it) const override
 

Protected Member Functions

virtual predicate< T > * clone () const override
 

Detailed Description

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

Returns
true if the underlying pointer is nullptr.

Definition at line 84 of file single_predicates.h.

Constructor & Destructor Documentation

◆ ~is_null()

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

Definition at line 86 of file single_predicates.h.

86 {}

Member Function Documentation

◆ clone()

template<typename T>
virtual predicate<T>* libMesh::Predicates::is_null< T >::clone ( ) const
overrideprotectedvirtual

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

Reimplemented in libMesh::Predicates::not_null< T >.

Definition at line 90 of file single_predicates.h.

90 { return new is_null<T>(*this); }

◆ operator()()

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

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

Reimplemented in libMesh::Predicates::not_null< T >.

Definition at line 87 of file single_predicates.h.

Referenced by libMesh::Predicates::not_null< T >::operator()().

87 { return *it == nullptr; }

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