libMesh
Public Member Functions | Public Attributes | List of all members
libMesh::MeshBase::Preparation Struct Reference

Flags indicating in what ways a mesh has been prepared for use. More...

#include <mesh_base.h>

Public Member Functions

 Preparation ()
 Constructor. More...
 
 operator bool () const
 Returns true iff all the flags are true. More...
 
Preparationoperator= (bool set_all)
 Set all flags to the "set_all" value. More...
 
bool operator== (const Preparation &other) const
 Two Preparation objects are equivalent iff all the flags match, regardless of the true/false status of any given flag. More...
 
bool operator!= (const Preparation &other) const
 

Public Attributes

bool is_partitioned
 
bool has_synched_id_counts
 
bool has_neighbor_ptrs
 
bool has_cached_elem_data
 
bool has_interior_parent_ptrs
 
bool has_removed_remote_elements
 
bool has_removed_orphaned_nodes
 
bool has_boundary_id_sets
 
bool has_reinit_ghosting_functors
 

Detailed Description

Flags indicating in what ways a mesh has been prepared for use.

Definition at line 2047 of file mesh_base.h.

Constructor & Destructor Documentation

◆ Preparation()

libMesh::MeshBase::Preparation::Preparation ( )

Constructor.

Initializes all flags to false.

Definition at line 2803 of file mesh_base.C.

Member Function Documentation

◆ operator bool()

libMesh::MeshBase::Preparation::operator bool ( ) const
explicit

◆ operator!=()

bool libMesh::MeshBase::Preparation::operator!= ( const Preparation other) const

Definition at line 2870 of file mesh_base.C.

2871 {
2872  return !(*this == other);
2873 }

◆ operator=()

MeshBase::Preparation & libMesh::MeshBase::Preparation::operator= ( bool  set_all)

Set all flags to the "set_all" value.

Definition at line 2829 of file mesh_base.C.

2830 {
2831  is_partitioned = set_all;
2832  has_synched_id_counts = set_all;
2833  has_neighbor_ptrs = set_all;
2834  has_cached_elem_data = set_all;
2835  has_interior_parent_ptrs = set_all;
2836  has_removed_remote_elements = set_all;
2837  has_removed_orphaned_nodes = set_all;
2838  has_reinit_ghosting_functors = set_all;
2839  has_boundary_id_sets = set_all;
2840 
2841  return *this;
2842 }

◆ operator==()

bool libMesh::MeshBase::Preparation::operator== ( const Preparation other) const

Two Preparation objects are equivalent iff all the flags match, regardless of the true/false status of any given flag.

Definition at line 2845 of file mesh_base.C.

References has_boundary_id_sets, has_cached_elem_data, has_interior_parent_ptrs, has_neighbor_ptrs, has_reinit_ghosting_functors, has_removed_orphaned_nodes, has_removed_remote_elements, has_synched_id_counts, and is_partitioned.

2846 {
2847  if (is_partitioned != other.is_partitioned)
2848  return false;
2849  if (has_synched_id_counts != other.has_synched_id_counts)
2850  return false;
2851  if (has_neighbor_ptrs != other.has_neighbor_ptrs)
2852  return false;
2853  if (has_cached_elem_data != other.has_cached_elem_data)
2854  return false;
2855  if (has_interior_parent_ptrs != other.has_interior_parent_ptrs)
2856  return false;
2857  if (has_removed_remote_elements != other.has_removed_remote_elements)
2858  return false;
2859  if (has_removed_orphaned_nodes != other.has_removed_orphaned_nodes)
2860  return false;
2861  if (has_reinit_ghosting_functors != other.has_reinit_ghosting_functors)
2862  return false;
2863  if (has_boundary_id_sets != other.has_boundary_id_sets)
2864  return false;
2865 
2866  return true;
2867 }

Member Data Documentation

◆ has_boundary_id_sets

bool libMesh::MeshBase::Preparation::has_boundary_id_sets

◆ has_cached_elem_data

bool libMesh::MeshBase::Preparation::has_cached_elem_data

◆ has_interior_parent_ptrs

bool libMesh::MeshBase::Preparation::has_interior_parent_ptrs

◆ has_neighbor_ptrs

bool libMesh::MeshBase::Preparation::has_neighbor_ptrs

◆ has_reinit_ghosting_functors

bool libMesh::MeshBase::Preparation::has_reinit_ghosting_functors

◆ has_removed_orphaned_nodes

bool libMesh::MeshBase::Preparation::has_removed_orphaned_nodes

◆ has_removed_remote_elements

bool libMesh::MeshBase::Preparation::has_removed_remote_elements

◆ has_synched_id_counts

bool libMesh::MeshBase::Preparation::has_synched_id_counts

◆ is_partitioned

bool libMesh::MeshBase::Preparation::is_partitioned

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