![]() |
|
#include <nodes.h>
Inheritance diagram for oomph::HijackedData:Public Member Functions | |
| void | clear_copied_pointers () |
| Clear the pointers to the copied data. More... | |
| HijackedData (const unsigned &copied_value, Data *const &data_pt) | |
| Constructor. More... | |
| HijackedData (const Data &data)=delete | |
| (Shallow) copy constructor More... | |
| void | operator= (const HijackedData &)=delete |
| Broken assignment operator. More... | |
| ~HijackedData () | |
| bool | is_a_copy () const |
| bool | is_a_copy (const unsigned &i) const |
| void | assign_eqn_numbers (unsigned long &global_ndof, Vector< double * > &dof_pt) |
| void | resize (const unsigned &n_value) |
| We do not allow Hijacked Data to be resized. More... | |
Public Member Functions inherited from oomph::Data | |
| Data () | |
| Default constructor. More... | |
| Data (const unsigned &initial_n_value) | |
| Data (TimeStepper *const &time_stepper_pt, const unsigned &initial_n_value, const bool &allocate_storage=true) | |
| Data (const Data &data)=delete | |
| Broken copy constructor. More... | |
| void | operator= (const Data &)=delete |
| Broken assignment operator. More... | |
| virtual | ~Data () |
| Destructor, deallocates memory assigned for data. More... | |
| void | set_time_stepper (TimeStepper *const &time_stepper_pt, const bool &preserve_existing_data) |
| TimeStepper *& | time_stepper_pt () |
| Return the pointer to the timestepper. More... | |
| TimeStepper *const & | time_stepper_pt () const |
| Return the pointer to the timestepper (const version). More... | |
| void | set_value (const unsigned &i, const double &value_) |
| void | set_value (const unsigned &t, const unsigned &i, const double &value_) |
| double | value (const unsigned &i) const |
| double | value (const unsigned &t, const unsigned &i) const |
| void | value (Vector< double > &values) const |
| Compute Vector of values for the Data value. More... | |
| void | value (const unsigned &t, Vector< double > &values) const |
| double * | value_pt (const unsigned &i) const |
| double * | value_pt (const unsigned &t, const unsigned &i) const |
| bool | does_pointer_correspond_to_value (double *const ¶meter_pt) |
| Check whether the pointer parameter_pt addresses internal data values. More... | |
| void | copy (Data *orig_data_pt) |
| Copy Data values from specified Data object. More... | |
| void | dump (std::ostream &dump_file) const |
| Dump the data object to a file. More... | |
| void | read (std::ifstream &restart_file) |
| Read data object from a file. More... | |
| long * | eqn_number_pt (const unsigned &i) |
| Return the pointer to the equation number of the i-th stored variable. More... | |
| long & | eqn_number (const unsigned &i) |
| Return the equation number of the i-th stored variable. More... | |
| long | eqn_number (const unsigned &i) const |
| Return the equation number of the i-th stored variable. More... | |
| void | pin (const unsigned &i) |
| Pin the i-th stored variable. More... | |
| void | unpin (const unsigned &i) |
| Unpin the i-th stored variable. More... | |
| void | pin_all () |
| Pin all the stored variables. More... | |
| void | unpin_all () |
| Unpin all the stored variables. More... | |
| bool | is_pinned (const unsigned &i) const |
| Test whether the i-th variable is pinned (1: true; 0: false). More... | |
| bool | is_segregated_solve_pinned (const unsigned &i) |
| void | constrain (const unsigned &i) |
| void | unconstrain (const unsigned &i) |
| void | constrain_all () |
| Constrain all the stored variables when the data is made hanging. More... | |
| void | unconstrain_all () |
| Unconstrain all the stored variables when the data is made nonhanging. More... | |
| bool | is_constrained (const unsigned &i) |
| unsigned | self_test () |
| unsigned | nvalue () const |
| Return number of values stored in data object (incl pinned ones). More... | |
| unsigned | ntstorage () const |
| virtual void | describe_dofs (std::ostream &out, const std::string ¤t_string) const |
| virtual void | add_value_pt_to_map (std::map< unsigned, double * > &map_of_value_pt) |
Private Member Functions | |
| void | reset_copied_pointers () |
| Reset the pointers to the copied data. More... | |
Private Attributes | |
| Data * | Copied_data_pt |
| Pointer to the Data object from which the value is copied. More... | |
| unsigned | Copied_index |
| Index of the value that is copied from within the Data object. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from oomph::Data | |
| static long | Is_pinned = -1 |
| Static "Magic number" to indicate pinned values. More... | |
| static long | Is_segregated_solve_pinned = -3 |
| static long | Is_unclassified = -10 |
| static long | Is_constrained = -2 |
Protected Attributes inherited from oomph::Data | |
| Data ** | Copy_of_data_pt |
| unsigned | Ncopies |
Static Protected Attributes inherited from oomph::Data | |
| static TimeStepper * | Default_static_time_stepper_pt = new Steady<0>() |
| Default (static) timestepper used in steady problems. More... | |
Custom Data class that is used when HijackingData. The class always contains a single value that is copied from another Data object.
Constructor.
Constructor, creates a HijackedData object with a single value that is copied from another Data object. The ordering of the aguments is used to distinguish this case from that of copying all data values, except one independent value.
References oomph::Data::add_copy(), oomph::Data::Eqn_number, oomph::Data::is_a_copy(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, and oomph::Data::Value.
|
delete |
(Shallow) copy constructor
|
inline |
Destructor informs original object that the copy is being deleted and clears its pointers to the stored values.
References Copied_data_pt, oomph::Data::Eqn_number, oomph::Data::remove_copy(), and oomph::Data::Value.
|
inlinevirtual |
HijackedData is always a copy, so no equation numbers should be allocated. This function just returns.
Reimplemented from oomph::Data.
|
virtual |
Clear the pointers to the copied data.
Reimplemented from oomph::Data.
References Copied_data_pt, oomph::Data::Eqn_number, and oomph::Data::Value.
|
inlinevirtual |
Return a boolean to indicate whether the data contains any copied values. Hijacked data is always a copy
Reimplemented from oomph::Data.
Return a boolean to indicate whether the i-th value is a copied value. Hijacked data is always a copy
Reimplemented from oomph::Data.
|
delete |
Broken assignment operator.
|
privatevirtual |
Reset the pointers to the copied data.
Reimplemented from oomph::Data.
References Copied_data_pt, Copied_index, oomph::Data::Eqn_number, and oomph::Data::Value.
|
virtual |
We do not allow Hijacked Data to be resized.
We cannot resize HijackedData, so the resize function throws a warning.
Reimplemented from oomph::Data.
References OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
|
private |
Pointer to the Data object from which the value is copied.
Referenced by clear_copied_pointers(), reset_copied_pointers(), and ~HijackedData().
|
private |
Index of the value that is copied from within the Data object.
Referenced by reset_copied_pointers().