Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blockLoc Class Reference

#include <gridutil.h>

Inheritance diagram for blockLoc:

Public Member Functions

 blockLoc ()
 
 blockLoc (int i_, int j_, int k_)
 
blockLoc operator+ (const blockLoc &b) const
 
blockLocoperator+= (const blockLoc &b)
 
blockDim operator- (const blockLoc &b) const
 
bool operator== (const blockLoc &o) const
 
bool operator!= (const blockLoc &o) const
 
int & operator[] (int d)
 
int operator[] (int d) const
 

Protected Attributes

int i
 
int j
 
int k
 

Friends

blockLoc operator* (const blockLoc &a, int k)
 
blockLoc operator* (int k, const blockLoc &a)
 

Detailed Description

Definition at line 92 of file gridutil.h.

Constructor & Destructor Documentation

blockLoc ( )
inline

Definition at line 96 of file gridutil.h.

Referenced by operator+().

96 { }

Here is the caller graph for this function:

blockLoc ( int  i_,
int  j_,
int  k_ 
)
inline

Definition at line 97 of file gridutil.h.

98  :i(i_), j(j_), k(k_) { }
int k
Definition: gridutil.h:94
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94

Member Function Documentation

bool operator!= ( const blockLoc o) const
inline

Definition at line 111 of file gridutil.h.

References i, j, and k.

112  {return i!=o.i || j!=o.j || k!=o.k; }
int k
Definition: gridutil.h:94
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94
blockLoc operator+ ( const blockLoc b) const
inline

Definition at line 99 of file gridutil.h.

References blockLoc(), i, j, and k.

100  { return blockLoc(i+b.i,j+b.j,k+b.k); }
int k
Definition: gridutil.h:94
blockLoc()
Definition: gridutil.h:96
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94

Here is the call graph for this function:

blockLoc& operator+= ( const blockLoc b)
inline

Definition at line 101 of file gridutil.h.

References i, j, and k.

102  { i+=b.i; j+=b.j; k+=b.k; return *this; }
int k
Definition: gridutil.h:94
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94
blockDim operator- ( const blockLoc b) const
inline

Definition at line 141 of file gridutil.h.

References i, j, and k.

142  { return blockDim(i-b.i,j-b.j,k-b.k); }
int k
Definition: gridutil.h:94
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94
bool operator== ( const blockLoc o) const
inline

Definition at line 109 of file gridutil.h.

References i, j, and k.

110  {return i==o.i && j==o.j && k==o.k; }
int k
Definition: gridutil.h:94
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94
int& operator[] ( int  d)
inline

Definition at line 115 of file gridutil.h.

References d, and i.

115 {return (&i)[d];}
const NT & d
int i
Definition: gridutil.h:94
int operator[] ( int  d) const
inline

Definition at line 116 of file gridutil.h.

References d, and i.

116 {return (&i)[d];}
const NT & d
int i
Definition: gridutil.h:94

Friends And Related Function Documentation

blockLoc operator* ( const blockLoc a,
int  k 
)
friend

Definition at line 104 of file gridutil.h.

105  { return blockLoc(a.i*k,a.j*k,a.k*k); }
int k
Definition: gridutil.h:94
blockLoc()
Definition: gridutil.h:96
int i
Definition: gridutil.h:94
int j
Definition: gridutil.h:94
blockLoc operator* ( int  k,
const blockLoc a 
)
friend

Definition at line 106 of file gridutil.h.

107  { return a*k; }
int k
Definition: gridutil.h:94

Member Data Documentation

int j
protected
int k
protected

Definition at line 94 of file gridutil.h.

Referenced by blockDim::getSize(), operator!=(), operator+(), operator+=(), operator-(), and operator==().


The documentation for this class was generated from the following file: