SheafSystem  0.0.0.0
fields::constant_push_action Class Reference

Abstract functor to compute the dofs at a destination discretization point. More...

#include <constant_push_action.h>

Inheritance diagram for fields::constant_push_action:
fields::section_pusher_push_action sheaf::any

CONSTANT_PUSH_ACTION FACET

block< sec_vd_dof_type_dst_dofs
 Constant value for destination dofs. More...
 
 constant_push_action (int xdst_df, const block< sec_vd_dof_type > &xdst_dofs)
 Creates an instance with dst_df() == xdst_df and dst_dofs() == xdst_dofs. More...
 
 constant_push_action (int xdst_df, sec_vd_dof_type xdst_dof)
 Creates an instance with dst_df() == xdst_df and dst_dofs()[i] == xdst_dof. More...
 
virtual ~constant_push_action ()
 Destructor. More...
 
block< sec_vd_dof_type > & dst_dofs ()
 Constant value for destination dofs. More...
 

SECTION_PUSHER_PUSH_ACTION FACET

virtual void operator() (pullback_map::iterator &xitr, sec_vd &xdst, block< sec_vd_dof_type > &xdst_dofs)
 Computes xdst_dofs using xitr and the dofs already in xdst, as needed. More...
 

ANY FACET

virtual bool is_ancestor_of (const any *xother) const
 Conformance test; true if other conforms to this. More...
 
virtual constant_push_actionclone () const
 Virtual constructor, makes a new instance of the same type as this. More...
 
virtual constant_push_actionoperator= (const section_pusher_push_action &xother)
 Assignment operator. More...
 
constant_push_actionoperator= (const constant_push_action &xother)
 Assignment operator. More...
 
virtual bool invariant () const
 Class invariant. More...
 

Additional Inherited Members

- Public Member Functions inherited from fields::section_pusher_push_action
virtual ~section_pusher_push_action ()
 Destructor. More...
 
int dst_df ()
 The fiber dimension of the destination. More...
 
virtual void initialize (sec_vd &xdst)
 Initializes xdst as needed. More...
 
virtual void finalize (sec_vd &xdst)
 Finalizes xdst as needed. 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 fields::section_pusher_push_action
 section_pusher_push_action ()
 Default constructor. More...
 
 section_pusher_push_action (int xdst_df)
 Creates an instance with dst_df() == xdst_df. More...
 
- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 
- Protected Attributes inherited from fields::section_pusher_push_action
int _dst_df
 The fiber dimension of the destination. More...
 

Detailed Description

Abstract functor to compute the dofs at a destination discretization point.

Definition at line 42 of file constant_push_action.h.

Constructor & Destructor Documentation

◆ constant_push_action() [1/2]

fields::constant_push_action::constant_push_action ( int  xdst_df,
const block< sec_vd_dof_type > &  xdst_dofs 
)

Creates an instance with dst_df() == xdst_df and dst_dofs() == xdst_dofs.

Precondition
  • xdst_df >= 0
  • xdst_dofs.ct() == xdst_df
Postcondition

Definition at line 36 of file constant_push_action.cc.

References sheaf::auto_block< T, S >::ct(), fields::section_pusher_push_action::dst_df(), dst_dofs(), and invariant().

◆ constant_push_action() [2/2]

fields::constant_push_action::constant_push_action ( int  xdst_df,
sec_vd_dof_type  xdst_dof 
)

Creates an instance with dst_df() == xdst_df and dst_dofs()[i] == xdst_dof.

Precondition
  • xdst_df >= 0
Postcondition

Definition at line 63 of file constant_push_action.cc.

References fields::section_pusher_push_action::_dst_df, _dst_dofs, sheaf::auto_block< T, S >::assign(), fields::section_pusher_push_action::dst_df(), dst_dofs(), invariant(), sheaf::auto_block< T, S >::reserve(), sheaf::auto_block< T, S >::set_ct(), and ~constant_push_action().

◆ ~constant_push_action()

fields::constant_push_action::~constant_push_action ( )
virtual

Destructor.

Definition at line 90 of file constant_push_action.cc.

References dst_dofs().

Referenced by constant_push_action().

Member Function Documentation

◆ clone()

fields::constant_push_action * fields::constant_push_action::clone ( ) const
virtual

Virtual constructor, makes a new instance of the same type as this.

Postcondition
  • result != 0
  • is_same_type(result)

Implements fields::section_pusher_push_action.

Definition at line 174 of file constant_push_action.cc.

References sheaf::any::is_same_type(), and operator=().

Referenced by is_ancestor_of().

◆ dst_dofs()

sheaf::block< fiber_bundle::sec_vd_dof_type > & fields::constant_push_action::dst_dofs ( )

Constant value for destination dofs.

Definition at line 108 of file constant_push_action.cc.

References _dst_dofs, and operator()().

Referenced by constant_push_action(), operator()(), and ~constant_push_action().

◆ invariant()

bool fields::constant_push_action::invariant ( ) const
virtual

◆ is_ancestor_of()

bool fields::constant_push_action::is_ancestor_of ( const any xother) const
virtual

Conformance test; true if other conforms to this.

Precondition
  • xother != 0

Reimplemented from fields::section_pusher_push_action.

Definition at line 154 of file constant_push_action.cc.

References clone().

Referenced by operator()(), and operator=().

◆ operator()()

void fields::constant_push_action::operator() ( pullback_map::iterator &  xitr,
sec_vd xdst,
block< sec_vd_dof_type > &  xdst_dofs 
)
virtual

Computes xdst_dofs using xitr and the dofs already in xdst, as needed.

Precondition
  • xdst.state_is_read_accessible()
Postcondition

Implements fields::section_pusher_push_action.

Definition at line 122 of file constant_push_action.cc.

References _dst_dofs, fiber_bundle::section_space_schema_member::df(), fields::section_pusher_push_action::dst_df(), dst_dofs(), is_ancestor_of(), fiber_bundle::sec_rep_space_member::schema(), sheaf::read_write_monitor_handle::state_is_read_accessible(), and sheaf::auto_block< T, S >::ub().

Referenced by dst_dofs().

◆ operator=() [1/2]

fields::constant_push_action & fields::constant_push_action::operator= ( const section_pusher_push_action xother)
virtual

Assignment operator.

Precondition
  • is_ancestor_of(&xother)
Not Implemented.
Postcondition

Reimplemented from fields::section_pusher_push_action.

Definition at line 197 of file constant_push_action.cc.

References invariant(), and is_ancestor_of().

Referenced by clone().

◆ operator=() [2/2]

fields::constant_push_action & fields::constant_push_action::operator= ( const constant_push_action xother)

Assignment operator.

Postcondition

Definition at line 220 of file constant_push_action.cc.

References fields::section_pusher_push_action::_dst_df, _dst_dofs, and invariant().

Member Data Documentation

◆ _dst_dofs

block<sec_vd_dof_type> fields::constant_push_action::_dst_dofs
protected

Constant value for destination dofs.

Definition at line 79 of file constant_push_action.h.

Referenced by constant_push_action(), dst_dofs(), operator()(), and operator=().


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