Lines Matching full: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;
81 /// Create a unique StringID without an actual string, by grabbing the next
83 static StringID createWithoutString(const typename Traits::OwnerType *Owner) { in createWithoutString()
84 return StringID(Owner); in createWithoutString()
86 /// Create a unique StringID that holds an actual string, by fetching or
88 static StringID createWithString(const typename Traits::OwnerType *Owner, in createWithString()
90 return StringID(Owner, Value); in createWithString()
93 /// Tests whether the StringID was initialized with respect to an actual
94 /// std::string value, i.e. via StringID::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 {