FLOPC++
Public Member Functions | Public Attributes | List of all members
flopc::MP_set_base Class Referenceabstract

Internal representation of a "set". More...

#include <MP_set.hpp>

Inheritance diagram for flopc::MP_set_base:
Inheritance graph
[legend]
Collaboration diagram for flopc::MP_set_base:
Collaboration graph
[legend]

Public Member Functions

 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. More...
 
int evaluate () const
 
bool isInstantiated () const
 
void assign (int i)
 
void unInstantiate ()
 
void instantiate ()
 
MP_indexgetIndex () const
 
virtual MP_domain getDomain (MP_set *s) const
 Getter for domain over which this index is applied. More...
 
- Public Member Functions inherited from flopc::Named
std::string getName () const
 
void setName (const std::string &n)
 

Public Attributes

bool Cyclic
 

Additional Inherited Members

- Static Public Member Functions inherited from flopc::MP_index
static MP_indexgetEmpty ()
 returns a reference to the distinct "empty" index. More...
 
- Static Public Attributes inherited from flopc::MP_index
static MP_indexAny = *new MP_index()
 
- Protected Member Functions inherited from flopc::MP_index_base
 MP_index_base ()
 
virtual ~MP_index_base ()
 

Detailed Description

Internal representation of a "set".

Note
FOR INTERNAL USE: This is not normally used directly by the calling code.

Definition at line 28 of file MP_set.hpp.

Constructor & Destructor Documentation

flopc::MP_set_base::MP_set_base ( )
inline

Definition at line 30 of file MP_set.hpp.

Member Function Documentation

int flopc::MP_set_base::check ( int  i) const
inline
int flopc::MP_set_base::checkStage ( int  i) const
inline

Definition at line 48 of file MP_set.hpp.

References Cyclic, isStage(), flopc::mod(), flopc::outOfBound, and size().

void flopc::MP_set_base::display ( ) const
virtual

MP_model::getCurrentModel()->getMessenger()->logMessage(5,toString().c_str());

Reimplemented from flopc::MP_index_base.

Definition at line 21 of file MP_set.cpp.

virtual int flopc::MP_set_base::isStage ( ) const
inlinevirtual

Reimplemented in flopc::MP_stage.

Definition at line 60 of file MP_set.hpp.

Referenced by checkStage().

virtual flopc::MP_set_base::operator MP_domain ( ) const
pure virtual

Implemented in flopc::MP_set.

virtual MP_domain flopc::MP_set_base::operator() ( const MP_index_exp i) const
pure virtual

Implemented in flopc::MP_set.

virtual int flopc::MP_set_base::size ( ) const
pure virtual

Implemented in flopc::MP_subset< nbr >, and flopc::MP_set.

Referenced by check(), and checkStage().

Member Data Documentation

bool flopc::MP_set_base::Cyclic

Definition at line 64 of file MP_set.hpp.

Referenced by check(), checkStage(), and flopc::MP_set::cyclic().


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