Changeset d031f7f for src/ResolvExpr


Ignore:
Timestamp:
Oct 25, 2024, 3:43:45 PM (3 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
06d75931, 720eec9
Parents:
90be0cf
Message:

Renamed CurrentObject?'s MemberIterator::operator* to getOptions because that is a more descriptive name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CurrentObject.cpp

    r90be0cf rd031f7f  
    6060        /// Retrieve the list of possible (Type,Designation) pairs for the
    6161        /// current position in the current object.
    62         virtual std::deque< InitAlternative > operator* () const = 0;
     62        virtual std::deque< InitAlternative > getOptions() const = 0;
    6363
    6464        /// True if the iterator is not currently at the end.
     
    7777        virtual const Type * getNext() = 0;
    7878
    79         /// Helper for operator*; aggregates must add designator to each init
    80         /// 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.
    8181        virtual std::deque< InitAlternative > first() const = 0;
    8282};
     
    103103        }
    104104
    105         std::deque< InitAlternative > operator* () const override { return first(); }
     105        std::deque< InitAlternative > getOptions() const override { return first(); }
    106106
    107107        operator bool() const override { return type; }
     
    169169        }
    170170
    171         std::deque< InitAlternative > operator* () const override { return first(); }
     171        std::deque< InitAlternative > getOptions() const override { return first(); }
    172172
    173173        operator bool() const override { return index < size; }
     
    297297        }
    298298
    299         std::deque< InitAlternative > operator* () const final {
     299        std::deque< InitAlternative > getOptions() const final {
    300300                if ( memberIter && *memberIter ) {
    301301                        std::deque< InitAlternative > ret = memberIter->first();
     
    594594        PRINT( std::cerr << "____getting current options" << std::endl; )
    595595        assertf( ! objStack.empty(), "objstack empty in getOptions" );
    596         return **objStack.back();
     596        return objStack.back()->getOptions();
    597597}
    598598
Note: See TracChangeset for help on using the changeset viewer.