#include <RealVect.H>
Collaboration diagram for RealVect:
Constants | |
const RealVect | Zero |
const RealVect | Unit |
RealVect | BASISREALV (int dir) |
Public Methods | |
Constructors and Accessors | |
RealVect () | |
RealVect (D_DECL(Real i, Real j, Real k)) | |
RealVect (const RealVect &rhs) | |
RealVect (const IntVect &iv) | |
RealVect & | operator= (const RealVect &rhs) |
Real & | operator[] (int i) |
const Real & | operator[] (int i) const |
Comparison Operators | |
bool | operator== (const RealVect &p) const |
bool | operator!= (const RealVect &p) const |
Arithmetic Operators | |
RealVect & | operator+= (Real s) |
RealVect & | operator+= (const RealVect &p) |
RealVect & | operator-= (Real s) |
RealVect & | operator-= (const RealVect &p) |
RealVect | operator- (Real s) const |
RealVect & | operator *= (Real s) |
RealVect & | operator *= (const RealVect &p) |
RealVect | operator * (const RealVect &p) const |
RealVect | operator * (Real s) const |
RealVect & | operator/= (Real s) |
RealVect & | operator/= (const RealVect &p) |
RealVect | operator/ (Real s) const |
Data pointer functions | |
const Real * | dataPtr () const |
Real * | dataPtr () |
Static Public Attributes | |
size_t | io_offset |
Friends | |
class | HDF5Handle |
std::ostream & | operator<< (std::ostream &ostr, const RealVect &p) |
Arithmetic friend functions | |
RealVect | operator+ (Real s, const RealVect &p) |
RealVect | operator- (Real s, const RealVect &p) |
RealVect | operator * (Real s, const RealVect &p) |
RealVect | operator/ (Real s, const RealVect &p) |
RealVect | operator+ (const RealVect &s, const RealVect &p) |
RealVect | operator- (const RealVect &s, const RealVect &p) |
RealVect | operator * (const RealVect &s, const RealVect &p) |
RealVect | operator/ (const RealVect &s, const RealVect &p) |
The class RealVect is an implementation of a Real vector in a SpaceDim-dimensional space. RealVect values are accessed using the operator[] function, as for a normal C++ array. In addition, the basic arithmetic operators have been overloaded to implement scaling and translation operations.
|
Construct a RealVect whose components are zero. |
|
Construct a RealVect given the specific values for its coordinates. D_DECL is a macro that sets the constructor to take CH_SPACEDIM arguments. |
|
The copy constructor. |
|
Construct a RealVect from an IntVect by coercing each component from |
|
Only for sending stuff to Fortran |
|
Only for sending stuff to Fortran |
|
Returns a RealVect that is this RealVect with each component multiplied by a scalar. |
|
Returns component-wise product of this RealVect and argument. |
|
Modifies this RealVect by component-wise multiplication by argument. |
|
Modifies this RealVect by multiplying each component by a scalar. |
|
Returns true if this RealVect is different from argument RealVect. All comparisons between analogous components must be satisfied. |
|
Modifies this RealVect by component-wise addition by argument. |
|
Modifies this RealVect by addition of a scalar to each component. |
|
Returns a RealVect that is this RealVect with a scalar s subtracted from each component. |
|
Modifies this RealVect by component-wise subtraction by argument. |
|
Modifies this RealVect by subtraction of a scalar from each component. |
|
Returns a RealVect that is this RealVect with each component divided by a scalar. |
|
Modifies this RealVect by component-wise division by argument. |
|
Modifies this RealVect by dividing each component by a scalar. |
|
The assignment operator. |
|
Returns true if this RealVect is equivalent to argument RealVect. All comparisons between analogous components must be satisfied. |
|
Returns the i'th coordinate of the RealVect. |
|
Returns a modifiable lvalue reference to the i'th coordinate of the RealVect. |
|
Returns a basis vector in the given coordinate direction. |
|
|
|
Returns component-wise product of s and p. |
|
Returns a RealVect that is a RealVect p with each component multiplied by a scalar s. |
|
Returns component-wise sum of RealVects s and p. |
|
Returns a RealVect that is a RealVect p with a scalar s added to each component. |
|
Returns s - p. |
|
Returns s - p. |
|
Returns component-wise quotient p / s. |
|
Returns a RealVect that is a RealVect p with each component divided by a scalar s. |
|
Print to the given output stream in ASCII. |
|
|
|
This is a RealVect all of whose components are equal to one. |
|
This is a RealVect all of whose components are equal to zero. |