28 #include "NamespaceHeader.H"
81 int l,
int m,
int n));
88 explicit IntVect (
const int* a);
578 void printOn (std::ostream& os)
const;
590 void dumpOn (std::ostream& os)
const;
596 friend std::ostream&
operator<< (std::ostream& os,
603 friend std::istream&
operator>> (std::istream& os,
688 int l,
int m,
int n))
768 &&
vect[3] == p[3], &&
vect[4] == p[4], &&
vect[5] == p[5]);
776 ||
vect[3] != p[3], ||
vect[4] != p[4], ||
vect[5] != p[5]);
784 &&
vect[3] < p[3], &&
vect[4] < p[4], &&
vect[5] < p[5]);
792 &&
vect[3] <= p[3], &&
vect[4] <= p[4], &&
vect[5] <= p[5]);
801 &&
vect[3] > p[3], &&
vect[4] > p[4], &&
vect[5] > p[5]);
809 &&
vect[3] >= p[3], &&
vect[4] >= p[4], &&
vect[5] >= p[5]);
817 if (
vect[0] < s[0])
return true;
819 if (
vect[0] > s[0])
return false;
820 if (
vect[1] < s[1])
return true;
823 if (
vect[1] > s[1])
return false;
824 if (
vect[2] < s[2])
return true;
827 if (
vect[2] > s[2])
return false;
828 if (
vect[3] < s[3])
return true;
831 if (
vect[3] > s[3])
return false;
832 if (
vect[4] < s[4])
return true;
835 if (
vect[4] > s[4])
return false;
836 if (
vect[5] < s[5])
return true;
847 if (
vect[0] > s[0])
return true;
849 if (
vect[0] < s[0])
return false;
850 if (
vect[1] > s[1])
return true;
853 if (
vect[1] < s[1])
return false;
854 if (
vect[2] > s[2])
return true;
857 if (
vect[2] < s[2])
return false;
858 if (
vect[3] > s[3])
return true;
861 if (
vect[3] < s[3])
return false;
862 if (
vect[4] > s[4])
return true;
865 if (
vect[4] < s[4])
return false;
866 if (
vect[5] > s[5])
return true;
916 D_EXPR6(
vect[0] += p[0],
vect[1] += p[1],
vect[2] += p[2],
934 D_EXPR6(
vect[0] *= p[0],
vect[1] *= p[1],
vect[2] *= p[2],
952 D_EXPR6(
vect[0] /= p[0],
vect[1] /= p[1],
vect[2] /= p[2],
970 D_EXPR6(
vect[0] -= p[0],
vect[1] -= p[1],
vect[2] -= p[2],
1080 vect[idir] = -
vect[idir] + 2*ref_ix;
1117 p[3] + s, p[4] + s, p[5] + s));
1126 s - p[3], s - p[4], s - p[5]));
1135 s * p[3], s * p[4], s * p[5]));
1144 s * p[3], s * p[4], s * p[5]));
1152 abs(p[3]), abs(p[4]), abs(p[5])));
1160 p[3] + s, p[4] + s, p[5] + s));
1199 b.
vect[idir] = -b.
vect[idir] + 2*ref_ix;
1215 (p.
vect[5]<0) ? -abs(p.
vect[5]+1)/s-1 : p.
vect[5]/s ));
1252 const int s = p.
vect[i];
1260 #include "NamespaceFooter.H"
IntVect min(const IntVect &p1, const IntVect &p2)
Definition: IntVect.H:1165
IntVect & operator*=(int s)
Definition: IntVect.H:923
#define D_DECL6(a, b, c, d, e, f)
Definition: CHArray.H:39
bool operator!=(const IntVect &p) const
Definition: IntVect.H:773
IntVect & min(const IntVect &p)
Definition: IntVect.H:1041
#define D_TERM6(a, b, c, d, e, f)
Definition: CHArray.H:40
static const size_t IntVectSize
Definition: IntVect.H:660
const int * getVect() const
Definition: IntVect.H:758
#define CH_assert(cond)
Definition: CHArray.H:37
IntVect & scale(int s)
Definition: IntVect.H:1067
IntVect operator+() const
Definition: IntVect.H:874
IntVect scale(const IntVect &p, int s)
Definition: IntVect.H:1140
Definition: FaceIndex.H:28
int product() const
Definition: CHArray.H:64
IntVect operator/(const IntVect &p) const
Definition: IntVect.H:1025
IntVect operator*(int s, const IntVect &p)
Definition: IntVect.H:1131
static int s_dummyForIntVectH
Definition: IntVect.H:670
IntVect & operator/=(int s)
Definition: IntVect.H:941
IntVect copy() const
Definition: IntVect.H:98
IntVect max(const IntVect &p1, const IntVect &p2)
Definition: IntVect.H:1174
IntVect BASISV(int dir)
Definition: IntVect.H:1183
IntVect & operator-=(int s)
Definition: IntVect.H:959
IntVect operator-() const
Definition: IntVect.H:881
bool lexGT(const IntVect &s) const
Definition: IntVect.H:845
IntVect diagShift(const IntVect &p, int s)
Definition: IntVect.H:1157
const int SpaceDim
Definition: SPACE.H:39
void setVal(int i, int val)
Definition: IntVect.H:734
IntVect coarsen(const IntVect &p, int s)
Definition: IntVect.H:1205
friend std::istream & operator>>(std::istream &os, IntVect &iv)
IntVect & shift(int coord, int s)
Definition: IntVect.H:1086
friend class BLfacade::IntVect
Definition: IntVect.H:650
static const IntVect Unit
Definition: IntVect.H:632
friend std::ostream & operator<<(std::ostream &os, const IntVect &iv)
IntVect & operator=(const IntVect &rhs)
Definition: IntVect.H:709
IntVect & reflect(int ref_ix, int idir)
Definition: IntVect.H:1076
IntVect & max(const IntVect &p)
Definition: IntVect.H:1054
bool lexLT(const IntVect &s) const
Definition: IntVect.H:814
IntVect & operator+=(int s)
Definition: IntVect.H:905
int & operator[](const int i)
Definition: CHArray.H:56
IntVect(const Vector< int > &vi)
Definition: IntVect.H:61
void dumpOn(std::ostream &os) const
bool operator<=(const IntVect &p) const
Definition: IntVect.H:789
static const IntVect Zero
Definition: IntVect.H:627
friend const IntVect absolute(const IntVect &p)
Returns the componentwise absolute value of the given IntVect.
Definition: IntVect.H:1149
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
IntVect & diagShift(int s)
Definition: IntVect.H:1104
IntVect reflect(const IntVect &a, int ref_ix, int idir)
Definition: IntVect.H:1193
const IntVect absolute(const IntVect &p)
Definition: IntVect.H:1149
friend IntVect BASISV(int dir)
Definition: IntVect.H:1183
bool operator>(const IntVect &p) const
Definition: IntVect.H:798
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:267
int sum() const
Definition: IntVect.H:889
int vect[SpaceDim]
Definition: IntVect.H:655
T Min(const T &a_a, const T &a_b)
Definition: Misc.H:26
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
IntVect operator-(int s, const IntVect &p)
Definition: IntVect.H:1122
Volume of Fluid Index.
Definition: VolIndex.H:31
T Max(const T &a_a, const T &a_b)
Definition: Misc.H:39
bool operator<(const IntVect &p) const
Definition: IntVect.H:781
IntVect operator*(const IntVect &p) const
Definition: IntVect.H:1009
const int * dataPtr() const
Definition: IntVect.H:744
~IntVect()
Definition: IntVect.H:71
IntVect & coarsen(const IntVect &p)
Definition: IntVect.H:1247
IntVect operator+(int s, const IntVect &p)
Definition: IntVect.H:1113
bool operator==(const IntVect &p) const
Definition: IntVect.H:765
void printOn(std::ostream &os) const
bool operator>=(const IntVect &p) const
Definition: IntVect.H:806
IntVect()
Definition: IntVect.H:58