Public Member Functions | Static Public Member Functions | Static Private Attributes

flopc::MP_index_exp Class Reference
[Public interface]

Representation of an expression involving an index.This is one of the main public interface classes. It is used to create complex arrangements of index values.
Index expressions can involve: More...

#include <MP_index.hpp>

Inheritance diagram for flopc::MP_index_exp:
flopc::Handle< MP_index_base * >

List of all members.

Public Member Functions

 MP_index_exp (MP_index_base *r)
 For internal use.
 MP_index_exp (int i=0)
 create an index expression from a constant integer.
 MP_index_exp (const Constant &c)
 create an index expression from a Constant
 MP_index_exp (MP_index &i)
 create an index expression from an MP_index.
 MP_index_exp (const SUBSETREF &d)
 MP_index_exp (const MP_index_exp &other)
 copy constructor from another MP_index_exp
virtual ~MP_index_exp ()

Static Public Member Functions

static const MP_index_expgetEmpty ()
 Return the unique empty expression.

Static Private Attributes

static MP_index_exp Empty = *new MP_index_exp(Constant(0.0))

Detailed Description

Representation of an expression involving an index.

This is one of the main public interface classes. It is used to create complex arrangements of index values.
Index expressions can involve:

Definition at line 141 of file MP_index.hpp.


Constructor & Destructor Documentation

flopc::MP_index_exp::MP_index_exp ( MP_index_base r  )  [inline]

For internal use.

Definition at line 144 of file MP_index.hpp.

MP_index_exp::MP_index_exp ( int  i = 0  ) 

create an index expression from a constant integer.

Definition at line 105 of file MP_index.cpp.

MP_index_exp::MP_index_exp ( const Constant c  ) 

create an index expression from a Constant

Definition at line 111 of file MP_index.cpp.

MP_index_exp::MP_index_exp ( MP_index i  ) 

create an index expression from an MP_index.

Definition at line 114 of file MP_index.cpp.

References flopc::MP_index_base::count, and flopc::Handle< MP_index_base * >::operator->().

MP_index_exp::MP_index_exp ( const SUBSETREF d  ) 

create an index expression from a SUBSETREF

Todo:
internal? or explain?

Definition at line 108 of file MP_index.cpp.

MP_index_exp::MP_index_exp ( const MP_index_exp other  ) 

copy constructor from another MP_index_exp

Definition at line 117 of file MP_index.cpp.

virtual flopc::MP_index_exp::~MP_index_exp (  )  [inline, virtual]

Definition at line 157 of file MP_index.hpp.


Member Function Documentation

const MP_index_exp & flopc::MP_index_exp::getEmpty (  )  [static]

Return the unique empty expression.

Definition at line 26 of file MP_index.cpp.

References Empty.


Member Data Documentation

Definition at line 161 of file MP_index.hpp.

Referenced by getEmpty().


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