#include <LocIdxSubSet.hpp>


Public Member Functions | |
| LocIdxSubSet (OA_ptr< Location > loc, int idx) | |
| LocIdxSubSet (LocIdxSubSet &other) | |
| copy constructor | |
| ~LocIdxSubSet () | |
| void | acceptVisitor (LocationVisitor &pVisitor) |
| bool | isaIdxSubSet () |
| bool | isFull () |
| something useful to have for all LocSubSet's | |
| int | getIdx () |
| bool | operator< (Location &other) |
| bool | operator== (Location &other) |
| bool | mayOverlap (Location &other) |
| bool | mustOverlap (Location &other) |
| bool | subSetOf (Location &other) |
| void | output (IRHandlesIRInterface &ir) |
| void | dump (std::ostream &os) |
| void | dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > pIR) |
| std::string | toString (OA_ptr< IRHandlesIRInterface > pIR) |
| virtual int | getOrder () |
Private Attributes | |
| int | mIdx |
Static Private Attributes | |
| static const int | sOrder = 400 |
The LocIdxSubSet describes a subset for an array that includes one constant index. Way of representing an individual element of an array.
Definition at line 24 of file LocIdxSubSet.hpp.
Definition at line 21 of file LocIdxSubSet.cpp.
References OA::debug, and OA_DEBUG_CTRL_MACRO.
| OA::LocIdxSubSet::LocIdxSubSet | ( | LocIdxSubSet & | other | ) | [inline] |
copy constructor
Definition at line 29 of file LocIdxSubSet.hpp.
| OA::LocIdxSubSet::~LocIdxSubSet | ( | ) | [inline] |
Definition at line 31 of file LocIdxSubSet.hpp.
| void OA::LocIdxSubSet::acceptVisitor | ( | LocationVisitor & | pVisitor | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 28 of file LocIdxSubSet.cpp.
References OA::LocationVisitor::visitLocIdxSubSet().

| void OA::LocIdxSubSet::dump | ( | std::ostream & | os, | |
| OA_ptr< IRHandlesIRInterface > | pIR | |||
| ) |
Reimplemented from OA::LocSubSet.
Definition at line 144 of file LocIdxSubSet.cpp.
References OA::OA_ptr< T >::dump(), getIdx(), and OA::LocSubSet::getLoc().

| void OA::LocIdxSubSet::dump | ( | std::ostream & | os | ) |
Reimplemented from OA::LocSubSet.
Definition at line 136 of file LocIdxSubSet.cpp.
References OA::OA_ptr< T >::dump(), getIdx(), and OA::LocSubSet::getLoc().

| int OA::LocIdxSubSet::getIdx | ( | ) | [inline] |
Definition at line 50 of file LocIdxSubSet.hpp.
References mIdx.
Referenced by dump(), operator<(), operator==(), toString(), and OA::LocIdxSubSetMustOverlapVisitor::visitLocIdxSubSet().
| virtual int OA::LocIdxSubSet::getOrder | ( | ) | [inline, virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 77 of file LocIdxSubSet.hpp.
References sOrder.
Referenced by operator<(), and operator==().
| bool OA::LocIdxSubSet::isaIdxSubSet | ( | ) | [inline, virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 38 of file LocIdxSubSet.hpp.
| bool OA::LocIdxSubSet::isFull | ( | ) | [inline, virtual] |
something useful to have for all LocSubSet's
Reimplemented from OA::LocSubSet.
Definition at line 43 of file LocIdxSubSet.hpp.
| bool OA::LocIdxSubSet::mayOverlap | ( | Location & | other | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 71 of file LocIdxSubSet.cpp.
References OA::LocSubSet::getLoc().

| bool OA::LocIdxSubSet::mustOverlap | ( | Location & | other | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 105 of file LocIdxSubSet.cpp.
References OA::Location::acceptVisitor(), and OA::LocIdxSubSetMustOverlapVisitor::mMustOverlap.
Referenced by subSetOf().

| bool OA::LocIdxSubSet::operator< | ( | Location & | other | ) | [virtual] |
Locations are ordered first between Location subclasses based on their sOrder value. Then there is an ordering within each subclass.
When comparing between LocIdxSubSet's will first compare base locations and will then will compare indices.
Reimplemented from OA::LocSubSet.
Definition at line 42 of file LocIdxSubSet.cpp.
References getIdx(), OA::LocSubSet::getLoc(), OA::Location::getOrder(), and getOrder().

| bool OA::LocIdxSubSet::operator== | ( | Location & | other | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 57 of file LocIdxSubSet.cpp.
References getIdx(), OA::LocSubSet::getLoc(), OA::Location::getOrder(), and getOrder().

| void OA::LocIdxSubSet::output | ( | IRHandlesIRInterface & | ir | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 125 of file LocIdxSubSet.cpp.
References OA::int2string(), mIdx, and OA::Annotation::sOutBuild.

| bool OA::LocIdxSubSet::subSetOf | ( | Location & | other | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 114 of file LocIdxSubSet.cpp.
References OA::LocSubSet::getLoc(), and mustOverlap().

| std::string OA::LocIdxSubSet::toString | ( | OA_ptr< IRHandlesIRInterface > | pIR | ) | [virtual] |
Reimplemented from OA::LocSubSet.
Definition at line 152 of file LocIdxSubSet.cpp.
References getIdx(), and OA::LocSubSet::getLoc().

int OA::LocIdxSubSet::mIdx [private] |
Definition at line 80 of file LocIdxSubSet.hpp.
const int OA::LocIdxSubSet::sOrder = 400 [static, private] |
Reimplemented from OA::LocSubSet.
Definition at line 81 of file LocIdxSubSet.hpp.
Referenced by getOrder().
1.6.1