#include <RealVect.H>
Collaboration diagram for RealVect:
Public Methods | |
RealVect () | |
{\bf Constructors and Accessors} | |
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 |
bool | operator== (const RealVect &p) const |
{\bf Comparison Operators} | |
bool | operator!= (const RealVect &p) const |
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/ (const RealVect &p) const |
RealVect | operator/ (Real s) const |
const Real * | dataPtr () const |
Real * | dataPtr () |
Static Public Attributes | |
const RealVect | Zero |
const RealVect | Unit |
size_t | io_offset |
Friends | |
class | HDF5Handle |
RealVect | BASISREALV (int dir) |
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) |
std::ostream & | operator<< (std::ostream &ostr, const RealVect &p) |
|
{\bf Constructors and Accessors} Construct an RealVect whose components are zero. |
|
Construct an 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 int to Real. |
|
only for sending stuff to fortran |
|
only for sending stuff to fortran |
|
Returns an 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 with argument. |
|
Modifies this RealVect by multiplication of a scalar to each component. |
|
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 with argument. |
|
Modifies this RealVect by addition of a scalar to each component. |
|
Returns an RealVect that is this RealVect with a scalar s subtracted from each component. |
|
Modifies this RealVect by component-wise subtraction with argument. |
|
Modifies this RealVect by subtraction of a scalar from each component. |
|
Returns component-wise division of this RealVect by scalar s. |
|
Returns component-wise division of this RealVect by RealVect argument. |
|
Modifies this RealVect by component-wise division with RealVect argument. |
|
Modifies this RealVect by division by a scalar of each component. |
|
The assignment operator. |
|
{\bf Comparison Operators} 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; eg. RealVect3d BASISV(1) == (0,1,0). Note that the coordinate directions are zero based. |
|
|
|
Returns and RealVect that is an RealVect p with each component multiplied by a scalar s. |
|
Returns and RealVect that is an RealVect p with each component multiplied by a scalar s. |
|
Returns an RealVect that is an RealVect p with a scalar s added to each component. |
|
Returns an RealVect that is an RealVect p with a scalar s added to each component. |
|
Returns -p + s. |
|
Returns -p + s. |
|
Returns and RealVect that is an RealVect p with each component divided by a scalar s. |
|
Returns and RealVect that is an RealVect p with each component divided by a scalar s. |
|
Print to the given output stream in ASCII. |
|
|
|
This is an RealVect all of whose components are equal to one. |
|
This is an RealVect all of whose components are equal to zero. |