Goose  Artifact [2f60dde741]

Artifact 2f60dde741055efdbb440eb6cc5bb8313654a5e1ffbef7ebf0b865529dc79f72:

  • File bs/llr/gettemporary.h — part of check-in [d939807dfa] at 2019-08-01 22:49:11 on branch trunk — Implemented the logic or operator. Not functional yet due to an architectural flaw. (user: achavasse size: 684)

#ifndef EMPATHY_LLR_GETTEMPORARY_H
#define EMPATHY_LLR_GETTEMPORARY_H

namespace empathy::llr
{
    class GetTemporary
    {
        public:
            GetTemporary( uint32_t index ) :
                m_index( index )
            {}

            const auto& index() const { return m_index; }

            void bumpTemporayIndices( uint32_t offset )
            {
                m_index += offset;
            }

            bool canBeExecuted() const
            {
                return true;
            }

            bool canBeEagerlyEvaluated() const
            {
                return true;
            }

        private:
            uint32_t m_index = 0;
    };
}

#endif