FLOPC++
|
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>
Public Member Functions | |
MP_index_exp (MP_index_base *r) | |
For internal use. More... | |
MP_index_exp (int i=0) | |
create an index expression from a constant integer. More... | |
MP_index_exp (const Constant &c) | |
create an index expression from a Constant More... | |
MP_index_exp (MP_index &i) | |
create an index expression from an MP_index. More... | |
MP_index_exp (const SUBSETREF &d) | |
MP_index_exp (const MP_index_exp &other) | |
copy constructor from another MP_index_exp More... | |
virtual | ~MP_index_exp () |
![]() | |
const MP_index_base *& | operator-> () const |
Handle (const MP_index_base *&r) | |
Handle (const Handle &h) | |
const Handle & | operator= (const Handle &h) |
~Handle () | |
Static Public Member Functions | |
static const MP_index_exp & | getEmpty () |
Return the unique empty expression. More... | |
Static Private Attributes | |
static MP_index_exp | Empty = *new MP_index_exp(Constant(0.0)) |
Additional Inherited Members | |
![]() | |
void | increment () |
void | decrement () |
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 145 of file MP_index.hpp.
|
inline |
For internal use.
Definition at line 148 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 113 of file MP_index.cpp.
MP_index_exp::MP_index_exp | ( | const Constant & | c | ) |
create an index expression from a Constant
Definition at line 119 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 122 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
Definition at line 116 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 125 of file MP_index.cpp.
|
inlinevirtual |
Definition at line 161 of file MP_index.hpp.
|
static |
|
staticprivate |
Definition at line 165 of file MP_index.hpp.
Referenced by getEmpty().