Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Constant.h

    rc36298d r7870799  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Spt 28 14:48:00 2018
    13 // Update Count     : 18
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Jul 10 15:57:38 2019
     13// Update Count     : 19
    1414//
    1515
     
    3030        Constant( Type * type, std::string rep, std::optional<unsigned long long> i );
    3131        Constant( const Constant & other );
     32        Constant & operator=( const Constant & ) = default;
    3233        virtual ~Constant();
    3334
    34         virtual Constant * clone() const { return new Constant( *this ); }
     35        virtual Constant * clone() const override { return new Constant( *this ); }
    3536
    3637        Type * get_type() { return type; }
     
    5051        static Constant null( Type * ptrtype = nullptr );
    5152
    52         virtual void accept( Visitor & v ) { v.visit( this ); }
    53         virtual Constant * acceptMutator( Mutator & m ) { return m.mutate( this ); }
    54         virtual void print( std::ostream & os, Indenter indent = 0 ) const;
    55   private:
     53        virtual void accept( Visitor & v ) override { v.visit( this ); }
     54        virtual void accept( Visitor & v ) const override { v.visit( this ); }
     55        virtual Constant * acceptMutator( Mutator & m ) override { return m.mutate( this ); }
     56        virtual void print( std::ostream & os, Indenter indent = 0 ) const override;
     57
    5658        Type * type;
    5759        std::string rep;
    5860        std::optional<unsigned long long> ival;
    59 
    60         friend class ConverterOldToNew;
    6161};
    6262
Note: See TracChangeset for help on using the changeset viewer.