Home | History | Annotate | Download | only in utils

Lines Matching full:rhs

215 CallStack::CallStack(const CallStack& rhs)
216 : mCount(rhs.mCount)
219 memcpy(mStack, rhs.mStack, mCount*sizeof(void*));
227 CallStack& CallStack::operator = (const CallStack& rhs)
229 mCount = rhs.mCount;
231 memcpy(mStack, rhs.mStack, mCount*sizeof(void*));
236 bool CallStack::operator == (const CallStack& rhs) const {
237 if (mCount != rhs.mCount)
239 return !mCount || (memcmp(mStack, rhs.mStack, mCount*sizeof(void*)) == 0);
242 bool CallStack::operator != (const CallStack& rhs) const {
243 return !operator == (rhs);
246 bool CallStack::operator < (const CallStack& rhs) const {
247 if (mCount != rhs.mCount)
248 return mCount < rhs.mCount;
249 return memcmp(mStack, rhs.mStack, mCount*sizeof(void*)) < 0;
252 bool CallStack::operator >= (const CallStack& rhs) const {
253 return !operator < (rhs);
256 bool CallStack::operator > (const CallStack& rhs) const {
257 if (mCount != rhs.mCount)
258 return mCount > rhs.mCount;
259 return memcmp(mStack, rhs.mStack, mCount*sizeof(void*)) > 0;
262 bool CallStack::operator <= (const CallStack& rhs) const {
263 return !operator > (rhs);