SheafSystem  0.0.0.0
fiber_bundle::block_connectivity Class Referenceabstract

Zone to node connectivity relation for a block of zones of a given type. More...

#include <block_connectivity.h>

Inheritance diagram for fiber_bundle::block_connectivity:
fiber_bundle::block_relation sheaf::any fiber_bundle::hex_connectivity fiber_bundle::line_connectivity fiber_bundle::point_connectivity fiber_bundle::quad_connectivity fiber_bundle::tetra_connectivity fiber_bundle::triangle_connectivity

BLOCK_CONNECTIVITY FACET

size_type _element_ct
 The number of elements. More...
 
size_type _node_ct
 The number of distinct nodes. More...
 
size_type _node_id_ct
 the number of entyries in _node_ids. More...
 
pod_index_type_node_ids
 The nodal connectivity array. More...
 
bool _delete_node_ids
 True if destructor of this should delete _node_ids. More...
 
size_type _nodes_per_element
 The number of nodes per element. More...
 
pod_index_type _start_id
 The id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering. More...
 
virtual ~block_connectivity ()
 Destructor. More...
 
size_type element_ct () const
 The number of elements. More...
 
size_type node_ct () const
 The number of distinct nodes. More...
 
pod_index_typenode_ids ()
 The nodal connectivity array. More...
 
const pod_index_typenode_ids () const
 The nodal connectivity array. More...
 
bool delete_node_ids () const
 True if destructor of this should delete _node_ids. More...
 
size_type node_id_ct () const
 The number of entries in node_ids(). More...
 
size_type nodes_per_element () const
 The number of nodes per element. More...
 
pod_index_type start_id () const
 The id given to the first node id generated. More...
 
virtual void to_stream (std::ostream &xos) const
 Print to stream xos. More...
 
block_connectivityoperator= (const block_connectivity &xother)
 Assignment operator. More...
 
virtual bool operator== (const block_connectivity &xother) const
 Equality operator. More...
 
 block_connectivity ()
 Default constructor. More...
 
 block_connectivity (const block_connectivity &xother)
 Copy constructor. More...
 
 block_connectivity (const pod_index_type *xnode_ids, size_type xnode_id_ct, size_type xnodes_per_element, size_type xnode_ct)
 Creates an instance with node_ids() == xnode_ids, node_id_ct() == xnode_id_ct, and start_id() == xstart_id. If xnode_ct == 0, the number of distinct nodes will be computed, otherwise node_ct() == xnode_ct. More...
 
 block_connectivity (pod_index_type xstart_id)
 Parameter xstart_id is the id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering. More...
 

ANY FACET

virtual block_connectivityclone () const =0
 Virtual constructor, makes a new instance of the same type as this. More...
 
virtual bool invariant () const
 Class invariant. More...
 
virtual bool is_ancestor_of (const any *other) const
 Conformance test; true if other conforms to this. More...
 

Additional Inherited Members

- Public Types inherited from fiber_bundle::block_relation
enum  cell_type {
  POINT, LINE, QUAD, TRIANGLE,
  HEX, TETRA, CELL_TYPE_END
}
 Cell types. More...
 
- Public Member Functions inherited from fiber_bundle::block_relation
 block_relation ()
 Default constructor. More...
 
virtual ~block_relation ()
 Destructor. More...
 
virtual cell_type element_type () const =0
 The element (zone) type. More...
 
- Public Member Functions inherited from sheaf::any
bool is_same_type (const any *other) const
 True if other is the same type as this. More...
 
virtual ~any ()
 Destructor. More...
 
bool invariant_check () const
 True if invariant checking is enabled. More...
 
void enable_invariant_check () const
 Enable invariant checking. More...
 
void disable_invariant_check () const
 Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More...
 
int disable_invariance_check_request_depth () const
 Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More...
 
- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 

Detailed Description

Zone to node connectivity relation for a block of zones of a given type.

Definition at line 47 of file block_connectivity.h.

Constructor & Destructor Documentation

◆ ~block_connectivity()

fiber_bundle::block_connectivity::~block_connectivity ( )
virtual

Destructor.

Definition at line 35 of file block_connectivity.cc.

References element_ct().

◆ block_connectivity() [1/4]

◆ block_connectivity() [2/4]

fiber_bundle::block_connectivity::block_connectivity ( const block_connectivity xother)
protected

Copy constructor.

Postcondition
  • (*this) == xother

Definition at line 231 of file block_connectivity.cc.

References block_connectivity().

◆ block_connectivity() [3/4]

fiber_bundle::block_connectivity::block_connectivity ( const pod_index_type xnode_ids,
size_type  xnode_id_ct,
size_type  xnodes_per_element,
size_type  xnode_ct 
)
protected

Creates an instance with node_ids() == xnode_ids, node_id_ct() == xnode_id_ct, and start_id() == xstart_id. If xnode_ct == 0, the number of distinct nodes will be computed, otherwise node_ct() == xnode_ct.

Precondition
  • xnode_ids != 0
  • xnode_id_ct > 0
  • xnodes_per_element > 0
Postcondition
  • !delete_node_ids()

Definition at line 259 of file block_connectivity.cc.

References block_connectivity(), and fiber_bundle::vd_algebra::max().

◆ block_connectivity() [4/4]

fiber_bundle::block_connectivity::block_connectivity ( pod_index_type  xstart_id)
protected

Parameter xstart_id is the id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering.

Postcondition
  • !delete_node_ids()

Definition at line 315 of file block_connectivity.cc.

References invariant().

Member Function Documentation

◆ clone()

virtual block_connectivity* fiber_bundle::block_connectivity::clone ( ) const
pure virtual

◆ delete_node_ids()

◆ element_ct()

◆ invariant()

◆ is_ancestor_of()

bool fiber_bundle::block_connectivity::is_ancestor_of ( const any other) const
virtual

Conformance test; true if other conforms to this.

Precondition
  • other != 0

Reimplemented from fiber_bundle::block_relation.

Reimplemented in fiber_bundle::hex_connectivity, fiber_bundle::tetra_connectivity, fiber_bundle::triangle_connectivity, fiber_bundle::line_connectivity, and fiber_bundle::point_connectivity.

Definition at line 379 of file block_connectivity.cc.

References fiber_bundle::operator<<().

Referenced by invariant().

◆ node_ct()

◆ node_id_ct()

◆ node_ids() [1/2]

◆ node_ids() [2/2]

const sheaf::pod_index_type * fiber_bundle::block_connectivity::node_ids ( ) const

The nodal connectivity array.

Definition at line 72 of file block_connectivity.cc.

References delete_node_ids().

◆ nodes_per_element()

◆ operator=()

fiber_bundle::block_connectivity & fiber_bundle::block_connectivity::operator= ( const block_connectivity xother)

Assignment operator.

Postcondition
  • *this == xother

Definition at line 127 of file block_connectivity.cc.

References _element_ct, _node_ct, _node_id_ct, _node_ids, _nodes_per_element, _start_id, node_ids(), and operator==().

Referenced by to_stream().

◆ operator==()

bool fiber_bundle::block_connectivity::operator== ( const block_connectivity xother) const
virtual

Equality operator.

Definition at line 171 of file block_connectivity.cc.

References _element_ct, _node_ct, _node_id_ct, _node_ids, _nodes_per_element, _start_id, and block_connectivity().

Referenced by operator=().

◆ start_id()

◆ to_stream()

void fiber_bundle::block_connectivity::to_stream ( std::ostream &  xos) const
virtual

Print to stream xos.

Definition at line 107 of file block_connectivity.cc.

References operator=().

Referenced by fiber_bundle::operator<<(), and start_id().

Member Data Documentation

◆ _delete_node_ids

◆ _element_ct

◆ _node_ct

◆ _node_id_ct

◆ _node_ids

◆ _nodes_per_element

◆ _start_id


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