Changeset d031f7f for src/ResolvExpr
- Timestamp:
- Oct 25, 2024, 3:43:45 PM (3 weeks ago)
- Branches:
- master
- Children:
- 06d75931, 720eec9
- Parents:
- 90be0cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CurrentObject.cpp
r90be0cf rd031f7f 60 60 /// Retrieve the list of possible (Type,Designation) pairs for the 61 61 /// current position in the current object. 62 virtual std::deque< InitAlternative > operator*() const = 0;62 virtual std::deque< InitAlternative > getOptions() const = 0; 63 63 64 64 /// True if the iterator is not currently at the end. … … 77 77 virtual const Type * getNext() = 0; 78 78 79 /// Helper for operator*; aggregates must add designator to each init80 /// alternative, but adding designators in operator*creates duplicates.79 /// Helper for getOptions; aggregates must add designator to each init 80 /// alternative, but adding designators in getOptions creates duplicates. 81 81 virtual std::deque< InitAlternative > first() const = 0; 82 82 }; … … 103 103 } 104 104 105 std::deque< InitAlternative > operator*() const override { return first(); }105 std::deque< InitAlternative > getOptions() const override { return first(); } 106 106 107 107 operator bool() const override { return type; } … … 169 169 } 170 170 171 std::deque< InitAlternative > operator*() const override { return first(); }171 std::deque< InitAlternative > getOptions() const override { return first(); } 172 172 173 173 operator bool() const override { return index < size; } … … 297 297 } 298 298 299 std::deque< InitAlternative > operator*() const final {299 std::deque< InitAlternative > getOptions() const final { 300 300 if ( memberIter && *memberIter ) { 301 301 std::deque< InitAlternative > ret = memberIter->first(); … … 594 594 PRINT( std::cerr << "____getting current options" << std::endl; ) 595 595 assertf( ! objStack.empty(), "objstack empty in getOptions" ); 596 return **objStack.back();596 return objStack.back()->getOptions(); 597 597 } 598 598
Note: See TracChangeset
for help on using the changeset viewer.