• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/

Lines Matching refs:other

96 CSearchFile::CSearchFile(const CSearchFile& other)
97 : CAbstractFile(other),
99 m_parent(other.m_parent),
100 m_showChildren(other.m_showChildren),
101 m_searchID(other.m_searchID),
102 m_sourceCount(other.m_sourceCount),
103 m_completeSourceCount(other.m_completeSourceCount),
104 m_kademlia(other.m_kademlia),
105 m_downloadStatus(other.m_downloadStatus),
106 m_directory(other.m_directory),
107 m_clients(other.m_clients),
108 m_clientID(other.m_clientID),
109 m_clientPort(other.m_clientPort),
110 m_clientServerIP(other.m_clientServerIP),
111 m_clientServerPort(other.m_clientServerPort),
112 m_kadPublishInfo(other.m_kadPublishInfo)
114 for (size_t i = 0; i < other.m_children.size(); ++i) {
115 m_children.push_back(new CSearchFile(*other.m_children.at(i)));
136 void CSearchFile::MergeResults(const CSearchFile& other)
140 m_sourceCount = std::max(m_sourceCount, other.m_sourceCount);
141 m_completeSourceCount = std::max(m_completeSourceCount, other.m_completeSourceCount);
143 m_sourceCount += other.m_sourceCount;
144 m_completeSourceCount += other.m_completeSourceCount;
149 if (other.m_kadPublishInfo != 0) {
150 m_kadPublishInfo = other.m_kadPublishInfo;
153 if (other.m_kadPublishInfo != 0) {
155 std::max(m_kadPublishInfo & 0xFF000000, other.m_kadPublishInfo & 0xFF000000) |
156 std::max(m_kadPublishInfo & 0x00FF0000, other.m_kadPublishInfo & 0x00FF0000) |
157 (((m_kadPublishInfo & 0x0000FFFF) + (other.m_kadPublishInfo & 0x0000FFFF)) >> 1);
163 if (other.m_iUserRating != 0) {
164 m_iUserRating = (m_iUserRating + other.m_iUserRating) / 2;
167 if (other.m_iUserRating != 0) {
168 m_iUserRating = other.m_iUserRating;
173 if (other.GetClientID() && other.GetClientPort()) {
175 if (CPartFile::CanAddSource(other.GetClientID(), other.GetClientPort(), other.GetClientServerIP(), other.GetClientServerPort())) {
176 CSearchFile::ClientStruct client(other.GetClientID(), other.GetClientPort(), other.GetClientServerIP(), other.GetClientServerPort());
186 wxCHECK_RET(!file->GetParent(), wxT("Search-result can only be child of one other result"));
211 CSearchFile* other = m_children.at(i);
213 if (other->GetFileName() == file->GetFileName()) {
214 other->MergeResults(*file);