Ignore:
Timestamp:
Mar 19, 2011, 10:47:28 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

compilerにおいて、各クラスのコピー禁止を明確化、ならびにコピー可能なものにムーブコンストラクタ・ムーブ代入演算子を追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/BasicCompiler_Common/include/BreakPoint.h

    r743 r817  
    99    BreakPointsPerFile(const char *lpszFileName,int iLineNum);
    1010
     11    BreakPointsPerFile(BreakPointsPerFile&& y)
     12        : filename(std::move(y.filename))
     13        , lines(std::move(y.lines))
     14    {
     15    }
     16
     17    BreakPointsPerFile(BreakPointsPerFile const& y)
     18        : filename(y.filename)
     19        , lines(y.lines)
     20    {
     21    }
     22
     23    BreakPointsPerFile& operator =(BreakPointsPerFile&& y)
     24    {
     25        filename = std::move(y.filename);
     26        lines = std::move(y.lines);
     27        return *this;
     28    }
     29
     30    BreakPointsPerFile& operator =(BreakPointsPerFile const& y)
     31    {
     32        return *this = std::move(BreakPointsPerFile(y));
     33    }
     34
    1135    void add(int iLineNum);
    1236    void remove(int iLineNum);
    1337
    1438    void update( char *nativeCodeBuffer, const SourceLines &sourceLines );
     39
    1540};
    1641typedef std::vector<BreakPointsPerFile> BreakPointsPerFiles;
     
    2752
    2853    char *update( char *nativeCodeBuffer, int SizeOf_CodeSection, const SourceLines &sourceLines );
     54
     55private:
     56    BreakPointManager(BreakPointManager const&);
     57    BreakPointManager& operator =(BreakPointManager const&);
    2958};
    3059
Note: See TracChangeset for help on using the changeset viewer.