Index Class Reference

#include <Index.h>

Inheritance diagram for Index:

Inheritance graph
[legend]
Collaboration diagram for Index:

Collaboration graph
[legend]
List of all members.

Public Types

typedef cursor PETE_Expr_t

Public Member Functions

 Index ()
 Index (unsigned n)
 Index (int f, int l)
 Index (int f, int l, int s)
 ~Index ()
int id () const
int min () const
int max () const
int length () const
int stride () const
int first () const
int last () const
bool empty () const
int getBase () const
Index intersect (const Index &) const
Index plugBase (const Index &) const
bool sameBase (const Index &) const
bool touches (const Index &a) const
bool contains (const Index &a) const
bool containsAllPoints (const Index &b) const
bool split (Index &l, Index &r) const
bool split (Index &l, Index &r, double a) const
iterator begin ()
iterator end ()
bool operator< (const Index &r) const
bool operator== (const Index &r) const
MessageputMessage (Message &m) const
MessagegetMessage (Message &m)
cursor MakeExpression () const

Static Public Member Functions

static void findPut (const Index &, const Index &, const Index &, Index &, Index &)

Friends

Index operator+ (const Index &, int)
Index operator+ (int, const Index &)
Index operator- (const Index &, int)
Index operator- (int, const Index &)
Index operator- (const Index &)
Index operator * (const Index &, int)
Index operator * (int, const Index &)
Index operator/ (const Index &, int)

Classes

class  cursor
class  iterator

Detailed Description

Definition at line 242 of file Index.h.


Member Typedef Documentation

typedef cursor Index::PETE_Expr_t
 

Definition at line 491 of file Index.h.


Constructor & Destructor Documentation

Index::Index  )  [inline]
 

Definition at line 22 of file IndexInlines.h.

Referenced by getMessage(), and split().

Index::Index unsigned  n  )  [inline]
 

Definition at line 36 of file IndexInlines.h.

Index::Index int  f,
int  l
[inline]
 

Definition at line 50 of file IndexInlines.h.

References PAssert.

Index::Index int  f,
int  l,
int  s
[inline]
 

Definition at line 61 of file IndexInlines.h.

References PAssert.

Index::~Index  )  [inline]
 

Definition at line 405 of file Index.h.


Member Function Documentation

iterator Index::begin  )  [inline]
 

Definition at line 450 of file Index.h.

bool Index::contains const Index a  )  const [inline]
 

Definition at line 248 of file IndexInlines.h.

References a, max(), and min().

Here is the call graph for this function:

bool Index::containsAllPoints const Index b  )  const [inline]
 

Definition at line 253 of file IndexInlines.h.

References b, max(), min(), and stride().

Here is the call graph for this function:

bool Index::empty  )  const [inline]
 

Definition at line 126 of file IndexInlines.h.

iterator Index::end  )  [inline]
 

Definition at line 452 of file Index.h.

static void Index::findPut const Index ,
const Index ,
const Index ,
Index ,
Index
[static]
 

int Index::first  )  const [inline]
 

Definition at line 116 of file IndexInlines.h.

Referenced by Cartesian< Dim, MFLOAT >::Cartesian(), UniformCartesian< Dim, MFLOAT >::initialize(), Cartesian< Dim, MFLOAT >::initialize(), intersect(), operator<<(), putMessage(), RegionLayout< T, Dim, MeshType >::RegionLayout(), split(), and UniformCartesian< Dim, MFLOAT >::UniformCartesian().

int Index::getBase  )  const [inline]
 

Definition at line 151 of file IndexInlines.h.

Message& Index::getMessage Message m  )  [inline]
 

Definition at line 482 of file Index.h.

References Message::get(), and Index().

Here is the call graph for this function:

int Index::id  )  const [inline]
 

Definition at line 406 of file Index.h.

Referenced by Index::cursor::id().

Index Index::intersect const Index  )  const
 

Definition at line 107 of file Index.cpp.

References Base, BaseFirst, endl(), First, first(), last(), Length, PAssert, Stride, and stride().

Here is the call graph for this function:

int Index::last  )  const [inline]
 

Definition at line 136 of file IndexInlines.h.

Referenced by intersect(), operator<<(), and RegionLayout< T, Dim, MeshType >::RegionLayout().

int Index::length  )  const [inline]
 

Definition at line 131 of file IndexInlines.h.

Referenced by Cartesian< Dim, MFLOAT >::Cartesian(), UniformCartesian< Dim, MFLOAT >::initialize(), Cartesian< Dim, MFLOAT >::initialize(), putMessage(), NDIndex< Dim >::size(), NDIndex< Dim >::split(), split(), and UniformCartesian< Dim, MFLOAT >::UniformCartesian().

cursor Index::MakeExpression  )  const [inline]
 

Definition at line 492 of file Index.h.

int Index::max  )  const [inline]
 

Definition at line 146 of file IndexInlines.h.

Referenced by contains(), containsAllPoints(), and touches().

int Index::min  )  const [inline]
 

Definition at line 141 of file IndexInlines.h.

Referenced by contains(), containsAllPoints(), and touches().

bool Index::operator< const Index r  )  const [inline]
 

Definition at line 455 of file Index.h.

References r.

bool Index::operator== const Index r  )  const [inline]
 

Definition at line 463 of file Index.h.

References r.

Index Index::plugBase const Index  )  const [inline]
 

Definition at line 215 of file IndexInlines.h.

References a, Base, BaseFirst, First, Length, and Stride.

Referenced by Index::cursor::plugBase().

Message& Index::putMessage Message m  )  const [inline]
 

Definition at line 471 of file Index.h.

References first(), length(), Message::put(), and stride().

Here is the call graph for this function:

bool Index::sameBase const Index  )  const [inline]
 

Definition at line 208 of file IndexInlines.h.

References Base.

bool Index::split Index l,
Index r,
double  a
const [inline]
 

Definition at line 303 of file IndexInlines.h.

References first(), Index(), length(), PAssert, and r.

Here is the call graph for this function:

bool Index::split Index l,
Index r
const [inline]
 

Definition at line 285 of file IndexInlines.h.

References first(), Index(), length(), PAssert, and r.

Referenced by NDIndex< Dim >::split().

Here is the call graph for this function:

int Index::stride  )  const [inline]
 

Definition at line 121 of file IndexInlines.h.

Referenced by Cartesian< Dim, MFLOAT >::Cartesian(), containsAllPoints(), UniformCartesian< Dim, MFLOAT >::initialize(), Cartesian< Dim, MFLOAT >::initialize(), intersect(), operator<<(), putMessage(), RegionLayout< T, Dim, MeshType >::RegionLayout(), and UniformCartesian< Dim, MFLOAT >::UniformCartesian().

bool Index::touches const Index a  )  const [inline]
 

Definition at line 242 of file IndexInlines.h.

References a, max(), and min().

Here is the call graph for this function:


Friends And Related Function Documentation

Index operator * int  m,
const Index i
[friend]
 

Definition at line 192 of file IndexInlines.h.

Index operator * const Index i,
int  m
[friend]
 

Definition at line 187 of file IndexInlines.h.

Index operator+ int  off,
const Index i
[friend]
 

Definition at line 167 of file IndexInlines.h.

Index operator+ const Index i,
int  off
[friend]
 

Definition at line 162 of file IndexInlines.h.

Index operator- const Index i  )  [friend]
 

Definition at line 182 of file IndexInlines.h.

Index operator- int  off,
const Index i
[friend]
 

Definition at line 177 of file IndexInlines.h.

Index operator- const Index i,
int  off
[friend]
 

Definition at line 172 of file IndexInlines.h.

Index operator/ const Index i,
int  d
[friend]
 

Definition at line 197 of file IndexInlines.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 16 14:41:16 2006 for IPPL by  doxygen 1.4.6