|
FlopCpp trunk
|
Representation of a set for indexing into some other construct. More...
#include <MP_set.hpp>
Inheritance diagram for flopc::MP_set:
Collaboration diagram for flopc::MP_set:Public Member Functions | |
| MP_set (int i=0) | |
| constructs a set with specific cardinality. | |
| MP_domain | operator() (const MP_index_exp &i) const |
| Constructs an MP_domain on the stack given an index expression into the set. | |
| operator MP_domain () const | |
| constructs an MP_domain from the MP_set. | |
| MP_domain | such_that (const MP_boolean &b) |
| constructs a domain by subsetting this MP_set where the MP_boolean evaluates to 'true' | |
| void | cyclic () |
| setter for 'cyclic' property | |
| virtual int | size () const |
| getter for the cardinality of this MP_set. | |
| int | last () |
Public Member Functions inherited from flopc::MP_set_base | |
| MP_set_base () | |
| virtual int | size () const =0 |
| virtual | operator MP_domain () const =0 |
| virtual MP_domain | operator() (const MP_index_exp &i) const =0 |
| void | display () const |
| int | check (int i) const |
| int | checkStage (int i) const |
| virtual int | isStage () const |
Public Member Functions inherited from flopc::MP_index | |
| MP_index () | |
| Default constructor. | |
| int | evaluate () const |
| bool | isInstantiated () const |
| interrogate state of instatiation of data. | |
| void | assign (int i) |
| Setter for the index. | |
| void | unInstantiate () |
| unsetter for instatiated. | |
| void | instantiate () |
| setter for instatiated. | |
| MP_index * | getIndex () const |
| getter for MP_index * data type. | |
| virtual MP_domain | getDomain (MP_set *s) const |
| Getter for domain over which this index is applied. | |
| virtual int | evaluate () const =0 |
| virtual MP_index * | getIndex () const =0 |
| virtual MP_domain | getDomain (MP_set *s) const =0 |
| virtual void | display () const |
Public Member Functions inherited from flopc::Named | |
| std::string | getName () const |
| void | setName (const std::string &n) |
Static Public Member Functions | |
| static MP_set & | getEmpty () |
| gets the distinct 'empty' MP_set. | |
Static Public Member Functions inherited from flopc::MP_index | |
| static MP_index & | getEmpty () |
| returns a reference to the distinct "empty" index. | |
Additional Inherited Members | |
Public Attributes inherited from flopc::MP_set_base | |
| bool | Cyclic |
Static Public Attributes inherited from flopc::MP_index | |
| static MP_index & | Any |
Protected Member Functions inherited from flopc::MP_index_base | |
| MP_index_base () | |
| virtual | ~MP_index_base () |
Representation of a set for indexing into some other construct.
This is one of the main public interface classes. One uses this when constructing MP_domains, and subsets. It is frequent that one would directly construct sets of indices, then use expressions to subset or slice the data.
Definition at line 78 of file MP_set.hpp.
|
inline |
constructs a set with specific cardinality.
Definition at line 81 of file MP_set.hpp.
|
inlinevirtual |
Constructs an MP_domain on the stack given an index expression into the set.
Implements flopc::MP_set_base.
Definition at line 86 of file MP_set.hpp.
|
inlinevirtual |
constructs an MP_domain from the MP_set.
Implements flopc::MP_set_base.
Definition at line 90 of file MP_set.hpp.
|
inline |
constructs a domain by subsetting this MP_set where the MP_boolean evaluates to 'true'
Definition at line 96 of file MP_set.hpp.
|
inline |
setter for 'cyclic' property
Definition at line 102 of file MP_set.hpp.
|
inlinevirtual |
getter for the cardinality of this MP_set.
Implements flopc::MP_set_base.
Reimplemented in flopc::MP_subset< nbr >.
Definition at line 106 of file MP_set.hpp.
|
inline |
Definition at line 109 of file MP_set.hpp.