Lines Matching refs:StringID
73 template <typename Traits> class StringID {
77 StringID() = default; // Create a default, invalid StringID.
78 StringID(const StringID &) = default;
79 StringID &operator=(const StringID &) = default;
83 static StringID createWithoutString(const typename Traits::OwnerType *Owner) { in createWithoutString()
84 return StringID(Owner); in createWithoutString()
88 static StringID createWithString(const typename Traits::OwnerType *Owner, in createWithString()
90 return StringID(Owner, Value); in createWithString()
113 bool operator==(const StringID &Other) const { return ID == Other.ID; }
114 bool operator!=(const StringID &Other) const { return !(*this == Other); }
115 bool operator<(const StringID &Other) const {
133 explicit StringID(const typename Traits::OwnerType *Owner) in StringID() function
135 StringID(const typename Traits::OwnerType *Owner, const std::string &Value) in StringID() function
149 using GlobalString = StringID<struct GlobalStringPoolTraits>;
152 Ostream &operator<<(Ostream &Str, const StringID<T> &Name) {
157 std::string operator+(const std::string &A, const StringID<T> &B) {
162 std::string operator+(const StringID<T> &A, const std::string &B) {
169 template <typename T> struct hash<Ice::StringID<T>> {
170 size_t operator()(const Ice::StringID<T> &Key) const {