#include <source/hierarchy/boxes/IntVector.h>
Inheritance diagram for SAMRAI::hier::IntVector< DIM >:
Public Member Functions | |
IntVector () | |
IntVector (const int i) | |
IntVector (const int i, const int j) | |
IntVector (const int i, const int j, const int k) | |
IntVector (const tbox::Array< int > a) | |
IntVector (const IntVector< DIM > &rhs) | |
IntVector & | operator= (const IntVector< DIM > &rhs) |
virtual | ~IntVector () |
int & | operator() (const int i) |
const int & | operator() (const int i) const |
operator int * () | |
operator const int * () const | |
IntVector< DIM > & | operator+= (const IntVector< DIM > &rhs) |
IntVector< DIM > | operator+ (const IntVector< DIM > &rhs) const |
IntVector< DIM > & | operator+= (const int rhs) |
IntVector< DIM > | operator+ (const int rhs) const |
IntVector< DIM > & | operator-= (const IntVector< DIM > &rhs) |
IntVector< DIM > | operator- (const IntVector< DIM > &rhs) const |
IntVector< DIM > & | operator-= (const int rhs) |
IntVector< DIM > | operator- (const int rhs) const |
IntVector< DIM > & | operator *= (const IntVector< DIM > &rhs) |
IntVector< DIM > | operator * (const IntVector< DIM > &rhs) const |
IntVector< DIM > & | operator *= (const int rhs) |
IntVector< DIM > | operator * (const int rhs) const |
IntVector< DIM > & | operator/= (const IntVector< DIM > &rhs) |
IntVector< DIM > | operator/ (const IntVector< DIM > &rhs) const |
IntVector< DIM > & | operator/= (const int rhs) |
IntVector< DIM > | operator/ (const int rhs) const |
IntVector< DIM > | operator- () const |
bool | operator== (const IntVector< DIM > &rhs) const |
bool | operator!= (const IntVector< DIM > &rhs) const |
bool | operator< (const IntVector< DIM > &rhs) const |
bool | operator<= (const IntVector< DIM > &rhs) const |
bool | operator> (const IntVector< DIM > &rhs) const |
bool | operator>= (const IntVector< DIM > &rhs) const |
void | min (const IntVector< DIM > &rhs) |
int | min () const |
void | max (const IntVector< DIM > &rhs) |
int | max () const |
int | getProduct () const |
Static Public Member Functions | |
static IntVector< DIM > | min (const IntVector< DIM > &a, const IntVector< DIM > &b) |
static IntVector< DIM > | max (const IntVector< DIM > &a, const IntVector< DIM > &b) |
Friends | |
template<int DIMENSION> | |
istream & | operator>> (istream &s, IntVector< DIMENSION > &rhs) |
template<int DIMENSION> | |
ostream & | operator<< (ostream &s, const IntVector< DIMENSION > &rhs) |
|
The default constructor creates an uninitialized vector. |
|
Construct an integer vector with all components equal to the argument. |
|
Construct a two-dimensional integer vector with the value (i,j). Provided for backward compatibility. |
|
Construct a three-dimensional integer vector with the value (i,j,k). Provided for backward compatibility. |
|
Construct a n-dimensional integer vector with the value with values provided by the array. |
|
Construct an integer vector equal to the argument. |
|
The integer vector destructor does nothing interesting. |
|
The assignment operator sets the integer vector equal to the argument. |
|
Return the specified component of the vector. No bounds checking. |
|
Return the specified component of the vector as a const integer. No bounds checking. |
|
Return a pointer to the beginning of the vector data values. |
|
Return a const pointer to the beginning of the vector data values. |
|
Plus-equals operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Plus operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Plus-equals operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Plus operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Minus-equals operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Minus operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Minus-equals operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Minus operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Times-equals operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Times operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Times-equals operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Times operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >, SAMRAI::pdat::CellIndex< DIM >, SAMRAI::pdat::EdgeIndex< DIM >, SAMRAI::pdat::FaceIndex< DIM >, SAMRAI::pdat::NodeIndex< DIM >, and SAMRAI::pdat::SideIndex< DIM >. |
|
Assign-quotient operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Quotient operator for two integer vectors. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Assign-quotient operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Quotient operator for an integer vector and an integer. Reimplemented in SAMRAI::hier::Index< DIM >. |
|
Unary minus to negate an integer vector. |
|
Returns true if two vector objects are equal. All components must be the same for equality. |
|
Returns true if two vector objects are not equal. Any of the components may be different for inequality. |
|
Returns true if each integer in vector is less than corresponding integer in comparison vector. |
|
Returns true if each integer in vector is less or equal to corresponding integer in comparison vector. |
|
Returns true if each integer in vector is greater than corresponding integer in comparison vector. |
|
Returns true if each integer in vector is greater or equal to corresponding integer in comparison vector. |
|
Return the component-wise minimum of two integer vector objects. |
|
Return the minimum entry in an integer vector. |
|
Return the component-wise maximum of two integer vector objects. |
|
Return the maximum entry in an integer vector. |
|
Utility function to take the minimum of two integer vector objects. |
|
Utility function to take the maximum of two integer vector objects. |
|
Return the product of the entries in the integer vector. |
|
Read an integer vector from an input stream. The format for the input is (i0,...,in) for an n-dimensional vector. |
|
Write an integer vector into an output stream. The format for the output is (i0,...,in) for an n-dimensional vector. |