src/Index/IndexInlines.h File Reference

#include "Utility/Unique.h"
#include "Utility/PAssert.h"

Include dependency graph for IndexInlines.h:

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

Go to the source code of this file.

Defines

#define INDEX_PETE_DOUBLE_OPERATOR(OP, APP)
#define INDEX_PETE_FLOAT_OPERATOR(OP, APP)
#define INDEX_PETE_INT_OPERATOR(OP, APP)

Functions

Index operator+ (const Index &i, int off)
Index operator+ (int off, const Index &i)
Index operator- (const Index &i, int off)
Index operator- (int off, const Index &i)
Index operator- (const Index &i)
Index operator * (const Index &i, int m)
Index operator * (int m, const Index &i)
Index operator/ (const Index &i, int d)


Define Documentation

#define INDEX_PETE_DOUBLE_OPERATOR OP,
APP   ) 
 

Value:

\
inline                                                               \
PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<double> >        \
OP ( const Index& idx, double x )                                    \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<double> >    \
    Return_t;                                                        \
  return Return_t( idx.MakeExpression(), PETE_Scalar<double>(x) );   \
}                                                                    \
                                                                     \
inline                                                               \
PETE_TBTree< APP , PETE_Scalar<double> , Index::PETE_Expr_t >        \
OP ( double x , const Index& idx )                                   \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , PETE_Scalar<double> , Index::PETE_Expr_t >    \
    Return_t;                                                        \
  return Return_t( PETE_Scalar<double>(x) , idx.MakeExpression());   \
}

Definition at line 323 of file IndexInlines.h.

#define INDEX_PETE_FLOAT_OPERATOR OP,
APP   ) 
 

Value:

\
inline                                                               \
PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<float> >         \
OP ( const Index& idx, float x )                                     \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<float> >    \
    Return_t;                                                        \
  return Return_t( idx.MakeExpression(), PETE_Scalar<float>(x) );   \
}                                                                    \
                                                                     \
inline                                                               \
PETE_TBTree< APP , PETE_Scalar<float> , Index::PETE_Expr_t >         \
OP ( float x , const Index& idx )                                    \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , PETE_Scalar<float> , Index::PETE_Expr_t >    \
    Return_t;                                                        \
  return Return_t( PETE_Scalar<float>(x) , idx.MakeExpression());   \
}

Definition at line 365 of file IndexInlines.h.

#define INDEX_PETE_INT_OPERATOR OP,
APP   ) 
 

Value:

\
inline                                                               \
PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<int> >           \
OP ( const Index& idx, int x )                                       \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , Index::PETE_Expr_t , PETE_Scalar<int> >       \
    Return_t;                                                        \
  return Return_t( idx.MakeExpression(), PETE_Scalar<int>(x) );      \
}                                                                    \
                                                                     \
inline                                                               \
PETE_TBTree< APP , PETE_Scalar<int> , Index::PETE_Expr_t >           \
OP ( int x , const Index& idx )                                      \
{                                                                    \
  typedef                                                            \
    PETE_TBTree< APP , PETE_Scalar<int> , Index::PETE_Expr_t >       \
    Return_t;                                                        \
  return Return_t( PETE_Scalar<int>(x) , idx.MakeExpression());      \
}

Definition at line 407 of file IndexInlines.h.


Function Documentation

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

Definition at line 192 of file IndexInlines.h.

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

Definition at line 187 of file IndexInlines.h.

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

Definition at line 167 of file IndexInlines.h.

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

Definition at line 162 of file IndexInlines.h.

Index operator- const Index i  )  [inline]
 

Definition at line 182 of file IndexInlines.h.

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

Definition at line 177 of file IndexInlines.h.

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

Definition at line 172 of file IndexInlines.h.

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

Definition at line 197 of file IndexInlines.h.

References Index::First, and Index::Stride.


Generated on Mon Jan 16 13:53:36 2006 for IPPL by  doxygen 1.4.6