Ignore:
Timestamp:
Mar 19, 2012, 1:59:48 AM (12 years ago)
Author:
イグトランス (egtra)
Message:

egtraブランチの内容をマージ。

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ab5.0/abdev

    • Property svn:ignore set to
      *.opensdf
      *.sdf
      *.suo
      *.user
      int
      ipch
      out
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Enum.h

    r750 r828  
    66    std::string value;
    77    int sourceIndex;
     8
    89public:
    910    EnumMember( const std::string &name, const std::string &value, int sourceIndex )
     
    1314    {
    1415    }
     16
     17    EnumMember(EnumMember&& y)
     18        : name(std::move(y.name))
     19        , value(std::move(y.value))
     20        , sourceIndex(std::move(y.sourceIndex))
     21    {
     22    }
     23
     24    EnumMember(EnumMember const& y)
     25        : name(y.name)
     26        , value(y.value)
     27        , sourceIndex(y.sourceIndex)
     28    {
     29    }
     30
     31    EnumMember& operator =(EnumMember&& y)
     32    {
     33        name = std::move(y.name);
     34        value = std::move(y.value);
     35        sourceIndex = std::move(y.sourceIndex);
     36        return *this;
     37    }
     38
     39    EnumMember& operator =(EnumMember const& y)
     40    {
     41        return *this = std::move(EnumMember(y));
     42    }
     43
    1544    const std::string &GetName() const
    1645    {
     
    3968        : Symbol( namespaceScopes, name )
    4069    {
     70    }
     71
     72    EnumInfo(EnumInfo&& y)
     73        : Symbol(std::move(y))
     74        , bConst(std::move(y.bConst))
     75        , members(std::move(y.members))
     76    {
     77    }
     78
     79    EnumInfo(EnumInfo const& y)
     80        : Symbol(y)
     81        , bConst(y.bConst)
     82        , members(y.members)
     83    {
     84    }
     85
     86    EnumInfo& operator =(EnumInfo&& y)
     87    {
     88        Symbol::operator =(std::move(y));
     89        bConst = std::move(y.bConst);
     90        members = std::move(y.members);
     91        return *this;
     92    }
     93
     94    EnumInfo& operator =(EnumInfo const& y)
     95    {
     96        return *this = std::move(EnumInfo(y));
    4197    }
    4298
     
    80136        return NULL;
    81137    };
     138
     139    EnumInfoCollection() {}
     140
     141private:
     142    EnumInfoCollection(EnumInfoCollection const&);
     143    EnumInfoCollection& operator =(EnumInfoCollection const&);
    82144};
Note: See TracChangeset for help on using the changeset viewer.