Lines Matching refs:rhs
110 ResourceNamedTypeRef(const ResourceNamedType& rhs); // NOLINT(google-explicit-constructor)
112 ResourceNamedTypeRef& operator=(const ResourceNamedTypeRef& rhs) = default;
113 ResourceNamedTypeRef& operator=(ResourceNamedTypeRef&& rhs) = default;
114 ResourceNamedTypeRef& operator=(const ResourceNamedType& rhs);
158 ResourceNameRef(const ResourceName& rhs); // NOLINT(google-explicit-constructor)
161 ResourceNameRef& operator=(const ResourceNameRef& rhs) = default;
162 ResourceNameRef& operator=(ResourceNameRef&& rhs) = default;
163 ResourceNameRef& operator=(const ResourceName& rhs);
189 ResourceId(const ResourceId& rhs) = default;
298 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) {
299 return lhs.id < rhs.id;
302 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) {
303 return lhs.id > rhs.id;
306 inline bool operator==(const ResourceId& lhs, const ResourceId& rhs) {
307 return lhs.id == rhs.id;
310 inline bool operator!=(const ResourceId& lhs, const ResourceId& rhs) {
311 return lhs.id != rhs.id;
362 inline bool operator<(const ResourceNamedType& lhs, const ResourceNamedType& rhs) {
363 return lhs.compare(rhs) < 0;
366 inline bool operator==(const ResourceNamedType& lhs, const ResourceNamedType& rhs) {
367 return lhs.compare(rhs) == 0;
370 inline bool operator!=(const ResourceNamedType& lhs, const ResourceNamedType& rhs) {
371 return lhs.compare(rhs) != 0;
385 inline ResourceNamedTypeRef::ResourceNamedTypeRef(const ResourceNamedType& rhs) in ResourceNamedTypeRef() argument
386 : name(rhs.name), type(rhs.type) { in ResourceNamedTypeRef()
389 inline ResourceNamedTypeRef& ResourceNamedTypeRef::operator=(const ResourceNamedType& rhs) {
390 name = rhs.name;
391 type = rhs.type;
403 inline bool operator<(const ResourceNamedTypeRef& lhs, const ResourceNamedTypeRef& rhs) {
404 return std::tie(lhs.type, lhs.name) < std::tie(rhs.type, rhs.name);
407 inline bool operator==(const ResourceNamedTypeRef& lhs, const ResourceNamedTypeRef& rhs) {
408 return std::tie(lhs.type, lhs.name) == std::tie(rhs.type, rhs.name);
411 inline bool operator!=(const ResourceNamedTypeRef& lhs, const ResourceNamedTypeRef& rhs) {
412 return std::tie(lhs.type, lhs.name) != std::tie(rhs.type, rhs.name);
445 inline bool operator<(const ResourceName& lhs, const ResourceName& rhs) {
447 std::tie(rhs.package, rhs.type, rhs.entry);
450 inline bool operator==(const ResourceName& lhs, const ResourceName& rhs) {
452 std::tie(rhs.package, rhs.type, rhs.entry);
455 inline bool operator!=(const ResourceName& lhs, const ResourceName& rhs) {
457 std::tie(rhs.package, rhs.type, rhs.entry);
468 inline ResourceNameRef::ResourceNameRef(const ResourceName& rhs) in ResourceNameRef() argument
469 : package(rhs.package), type(rhs.type), entry(rhs.entry) {} in ResourceNameRef()
481 inline ResourceNameRef& ResourceNameRef::operator=(const ResourceName& rhs) {
482 package = rhs.package;
483 type = rhs.type;
484 entry = rhs.entry;
496 inline bool operator<(const ResourceNameRef& lhs, const ResourceNameRef& rhs) {
498 std::tie(rhs.package, rhs.type, rhs.entry);
501 inline bool operator==(const ResourceNameRef& lhs, const ResourceNameRef& rhs) {
503 std::tie(rhs.package, rhs.type, rhs.entry);
506 inline bool operator!=(const ResourceNameRef& lhs, const ResourceNameRef& rhs) {
508 std::tie(rhs.package, rhs.type, rhs.entry);
519 inline bool operator!=(const ResourceName& lhs, const ResourceNameRef& rhs) {
520 return ResourceNameRef(lhs) != rhs;
523 inline bool operator==(const SourcedResourceName& lhs, const SourcedResourceName& rhs) {
524 return lhs.name == rhs.name && lhs.line == rhs.line;