File indexing completed on 2024-06-23 08:47:21

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "uniqueidinfo.h"
0007 
0008 namespace Latte {
0009 namespace Data {
0010 
0011 UniqueIdInfo::UniqueIdInfo()
0012 {
0013 }
0014 
0015 UniqueIdInfo::UniqueIdInfo(UniqueIdInfo &&o)
0016     : newId(o.newId),
0017       newName(o.newName),
0018       oldId(o.oldId),
0019       oldName(o.oldName)
0020 {
0021 }
0022 
0023 UniqueIdInfo::UniqueIdInfo(const UniqueIdInfo &o)
0024     : newId(o.newId),
0025       newName(o.newName),
0026       oldId(o.oldId),
0027       oldName(o.oldName)
0028 {
0029 }
0030 
0031 UniqueIdInfo &UniqueIdInfo::operator=(const UniqueIdInfo &rhs)
0032 {
0033     newId = rhs.newId;
0034     newName = rhs.newName;
0035     oldId = rhs.oldId;
0036     oldName = rhs.oldName;
0037 
0038     return (*this);
0039 }
0040 
0041 UniqueIdInfo &UniqueIdInfo::operator=(UniqueIdInfo &&rhs)
0042 {
0043     newId = rhs.newId;
0044     newName = rhs.newName;
0045     oldId = rhs.oldId;
0046     oldName = rhs.oldName;
0047 
0048     return (*this);
0049 }
0050 
0051 bool UniqueIdInfo::operator==(const UniqueIdInfo &rhs) const
0052 {
0053     return (newId == rhs.newId)
0054             && (newName == rhs.newName)
0055             && (oldId == rhs.oldId)
0056             && (oldName == rhs.oldName);
0057 }
0058 
0059 bool UniqueIdInfo::operator!=(const UniqueIdInfo &rhs) const
0060 {
0061     return !(*this == rhs);
0062 }
0063 
0064 }
0065 }