![]() |
SheafSystem
0.0.0.0
|
A point in a 2D chart space. More...
#include <chart_point_2d.h>
CHART_POINT_2D FACET | |
| coord_type | _local_coords [2] |
| The local coordinates of this point. More... | |
| chart_point_2d () | |
| Default constructor. More... | |
| chart_point_2d (const chart_point_2d &xother) | |
| Copy constructor. More... | |
| virtual | ~chart_point_2d () |
| Destructor. More... | |
| chart_point_2d (pod_index_type xchart_id, coord_type xu, coord_type xv) | |
| Creates an instance with chart_id() == xchart_id, u() == xu. v() == xv. More... | |
| chart_point_2d (const scoped_index &xchart_id, coord_type xu, coord_type xv) | |
| Creates an instance with chart_id() == xchart_id.hub_pod, u() == xu. v() == xv. More... | |
| chart_point_2d (pod_index_type xchart_id, const coord_type *xlocal_coords, size_type xlocal_coords_ub) | |
| Creates an instance with chart_id() == xchart_id and local_coord(i) == xlocal_coords[i]. More... | |
| chart_point_2d (const scoped_index &xchart_id, const coord_type *xlocal_coords, size_type xlocal_coords_ub) | |
| Creates an instance with chart_id() == xchart.hub_pod() and local_coord(i) == xlocal_coords[i]. More... | |
| virtual int | db () const |
| The dimension of this chart. More... | |
| virtual coord_type | local_coord (int xi) const |
| The xi-th local coordinate of this point. More... | |
| virtual void | put_local_coord (int xi, coord_type xvalue) |
| Sets the xi-th local coordinate of this point to xvalue. More... | |
| coord_type * | local_coords () |
| The array of local coordinates. More... | |
| const coord_type * | local_coords () const |
| The array of local coordinates, const version. More... | |
| const coord_type & | u () const |
| The 0-th local coordinate of this. More... | |
| const coord_type & | v () const |
| The 1-th local coordinate of this. More... | |
| void | put (pod_index_type xchart, coord_type xu, coord_type xv) |
| Sets chart_id() == xchart_id, u() == xu, v() == xv. More... | |
| void | put (const scoped_index &xchart_id, coord_type xu, coord_type xv) |
| Sets chart_id() == xchart_id.hub_pod(), u() == xu, v() == xv. More... | |
ANY FACET | |
| virtual chart_point_2d * | clone () const |
| 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... | |
| chart_point_2d & | operator= (const chart_point &xother) |
| Assignment operator. More... | |
| chart_point_2d & | operator= (const chart_point_2d &xother) |
| Assignment operator. More... | |
Additional Inherited Members | |
Public Types inherited from fiber_bundle::chart_point | |
| typedef chart_point_coord_type | coord_type |
| The type of local coordinate; the scalar type for the local coordinate vector space. More... | |
Public Member Functions inherited from fiber_bundle::chart_point | |
| virtual | ~chart_point () |
| Destructor. More... | |
| pod_index_type | chart_id () const |
| The id of the chart this point is in. More... | |
| void | put_chart_id (pod_index_type xchart) |
| Sets chart_id() to xchart_id. More... | |
| void | put_chart_id (const scoped_index &xchart) |
| Sets chart_id() to xchart_id.hub_pod(). More... | |
| virtual void | put_local_coord (int xi, coord_type xvalue)=0 |
| Sets the xi-th local coordinate of this point to xvalue. More... | |
| void | put_local_coords (const coord_type *xvalues, size_type xvalues_ub) |
| Sets the local coordinates to the values in xvalues. More... | |
| void | put_local_coords_zero () |
| Sets the local coordinates to the zero vector. More... | |
| bool | is_valid () const |
| True if this ia a valid point in a chart. More... | |
| void | invalidate () |
| Makes this invalid. More... | |
| chart_point & | operator= (const chart_point &xother) |
| Assignment operator. More... | |
| bool | operator== (const chart_point &xother) const |
| Equality operator. More... | |
| void | to_stream (std::ostream &xos=std::cout) const |
| Write instance information to an ostream (default = stdout). More... | |
| std::string | to_string () const |
| Get instance information as a string. 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... | |
Static Public Member Functions inherited from fiber_bundle::chart_point | |
| static chart_point * | new_chart_point (int xdb) |
| Factory method; creates a chart point with db() == xdb. More... | |
Protected Member Functions inherited from fiber_bundle::chart_point | |
| chart_point () | |
| Default constructor. More... | |
Protected Member Functions inherited from sheaf::any | |
| any () | |
| default constructor More... | |
Protected Attributes inherited from fiber_bundle::chart_point | |
| pod_index_type | _chart_id |
| The id of the chart this point is in. More... | |
A point in a 2D chart space.
Definition at line 40 of file chart_point_2d.h.
| fiber_bundle::chart_point_2d::chart_point_2d | ( | ) |
Default constructor.
Definition at line 34 of file chart_point_2d.cc.
References sheaf::invalid_pod_index(), and sheaf::is_valid().
Referenced by ~chart_point_2d().
| fiber_bundle::chart_point_2d::chart_point_2d | ( | const chart_point_2d & | xother | ) |
Copy constructor.
Definition at line 53 of file chart_point_2d.cc.
References ~chart_point_2d().
|
virtual |
Destructor.
Definition at line 72 of file chart_point_2d.cc.
References chart_point_2d(), db(), sheaf::scoped_index::hub_pod(), and sheaf::isunordered_or_equals().
Referenced by chart_point_2d().
| fiber_bundle::chart_point_2d::chart_point_2d | ( | pod_index_type | xchart_id, |
| coord_type | xu, | ||
| coord_type | xv | ||
| ) |
Creates an instance with chart_id() == xchart_id, u() == xu. v() == xv.
| fiber_bundle::chart_point_2d::chart_point_2d | ( | const scoped_index & | xchart_id, |
| coord_type | xu, | ||
| coord_type | xv | ||
| ) |
Creates an instance with chart_id() == xchart_id.hub_pod, u() == xu. v() == xv.
| fiber_bundle::chart_point_2d::chart_point_2d | ( | pod_index_type | xchart_id, |
| const coord_type * | xlocal_coords, | ||
| size_type | xlocal_coords_ub | ||
| ) |
Creates an instance with chart_id() == xchart_id and local_coord(i) == xlocal_coords[i].
| fiber_bundle::chart_point_2d::chart_point_2d | ( | const scoped_index & | xchart_id, |
| const coord_type * | xlocal_coords, | ||
| size_type | xlocal_coords_ub | ||
| ) |
Creates an instance with chart_id() == xchart.hub_pod() and local_coord(i) == xlocal_coords[i].
|
virtual |
Virtual constructor, makes a new instance of the same type as this.
Implements fiber_bundle::chart_point.
Definition at line 415 of file chart_point_2d.cc.
References invariant(), and sheaf::any::is_same_type().
Referenced by v().
|
virtual |
The dimension of this chart.
Implements fiber_bundle::chart_point.
Definition at line 187 of file chart_point_2d.cc.
References local_coord().
Referenced by ~chart_point_2d().
|
virtual |
Class invariant.
Reimplemented from fiber_bundle::chart_point.
Definition at line 437 of file chart_point_2d.cc.
References fiber_bundle::chart_point::invariant(), and is_ancestor_of().
Referenced by clone().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from fiber_bundle::chart_point.
Definition at line 468 of file chart_point_2d.cc.
References operator=().
Referenced by invariant().
|
virtual |
The xi-th local coordinate of this point.
Implements fiber_bundle::chart_point.
Definition at line 209 of file chart_point_2d.cc.
References put_local_coord().
Referenced by db().
|
virtual |
The array of local coordinates.
Implements fiber_bundle::chart_point.
Definition at line 257 of file chart_point_2d.cc.
Referenced by put_local_coord().
|
virtual |
The array of local coordinates, const version.
Implements fiber_bundle::chart_point.
Definition at line 278 of file chart_point_2d.cc.
References u().
|
inline |
Assignment operator.
Definition at line 189 of file chart_point_2d.h.
References fiber_bundle::chart_point::operator=().
Referenced by is_ancestor_of().
| fiber_bundle::chart_point_2d & fiber_bundle::chart_point_2d::operator= | ( | const chart_point_2d & | xother | ) |
Assignment operator.
Definition at line 490 of file chart_point_2d.cc.
References fiber_bundle::chart_point::_chart_id, and _local_coords.
| void fiber_bundle::chart_point_2d::put | ( | pod_index_type | xchart, |
| coord_type | xu, | ||
| coord_type | xv | ||
| ) |
Sets chart_id() == xchart_id, u() == xu, v() == xv.
Referenced by v().
| void fiber_bundle::chart_point_2d::put | ( | const scoped_index & | xchart_id, |
| coord_type | xu, | ||
| coord_type | xv | ||
| ) |
Sets chart_id() == xchart_id.hub_pod(), u() == xu, v() == xv.
|
virtual |
Sets the xi-th local coordinate of this point to xvalue.
Definition at line 233 of file chart_point_2d.cc.
References sheaf::isunordered_or_equals(), and local_coords().
Referenced by local_coord().
| const fiber_bundle::chart_point_2d::coord_type & fiber_bundle::chart_point_2d::u | ( | ) | const |
The 0-th local coordinate of this.
Definition at line 299 of file chart_point_2d.cc.
References sheaf::isunordered_or_equals(), and v().
Referenced by local_coords().
| const fiber_bundle::chart_point_2d::coord_type & fiber_bundle::chart_point_2d::v | ( | ) | const |
The 1-th local coordinate of this.
Definition at line 321 of file chart_point_2d.cc.
References clone(), sheaf::scoped_index::hub_pod(), sheaf::isunordered_or_equals(), and put().
Referenced by u().
|
protected |
The local coordinates of this point.
Definition at line 142 of file chart_point_2d.h.
Referenced by operator=().