Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IntVect.H File Reference

#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "Misc.H"
#include <cassert>
#include "SPACE.H"

Include dependency graph for IntVect.H:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  IntVect

Defines

#define LLT0   (vect[0] < s[0])
#define LLT1   ((vect[0] == s[0]) && (vect[1] < s[1]))
#define LLT2   ((vect[1] == s[1]) && (vect[2] < s[2]))
#define LGT0   (vect[0] > s[0])
#define LGT1   ((vect[0] == s[0]) && (vect[1] > s[1]))
#define LGT2   ((vect[1] == s[1]) && (vect[2] > s[2]))

Functions

IntVect UnitVector ()
IntVect ZeroVector ()
IntVect operator+ (int s, const IntVect &p)
IntVect operator- (int s, const IntVect &p)
IntVect operator * (int s, const IntVect &p)
IntVect scale (const IntVect &p, int s)
IntVect diagShift (const IntVect &p, int s)
IntVect min (const IntVect &p1, const IntVect &p2)
IntVect max (const IntVect &p1, const IntVect &p2)


Define Documentation

#define LGT0   (vect[0] > s[0])
 

#define LGT1   ((vect[0] == s[0]) && (vect[1] > s[1]))
 

#define LGT2   ((vect[1] == s[1]) && (vect[2] > s[2]))
 

#define LLT0   (vect[0] < s[0])
 

#define LLT1   ((vect[0] == s[0]) && (vect[1] < s[1]))
 

#define LLT2   ((vect[1] == s[1]) && (vect[2] < s[2]))
 


Function Documentation

IntVect diagShift const IntVect   p,
int    s
[inline]
 

Returns IntVect obtained by adding a scalar to each of the components of the given IntVect.

IntVect max const IntVect   p1,
const IntVect   p2
[inline]
 

Returns the IntVect that is the component-wise minimum of two argument IntVects.

IntVect min const IntVect   p1,
const IntVect   p2
[inline]
 

Returns the IntVect that is the component-wise minimum of two argument IntVects.

IntVect operator * int    s,
const IntVect   p
[inline]
 

Returns and IntVect that is an IntVect p with each component multiplied by a scalar s.

IntVect operator+ int    s,
const IntVect   p
[inline]
 

Returns an IntVect that is an IntVect p with a scalar s added to each component.

IntVect operator- int    s,
const IntVect   p
[inline]
 

Returns -p + s.

IntVect scale const IntVect   p,
int    s
[inline]
 

Returns an IntVect obtained by multiplying each of the components of the given IntVect by a scalar.

IntVect UnitVector  
 

IntVect ZeroVector  
 


Generated on Wed Apr 16 14:32:57 2003 for EBChombo by doxygen1.2.16