Home | History | Annotate | Download | only in base

Lines Matching full:tkey

180   template <typename Base, template <typename TV> class TKey> friend struct VariantMap;
208 template <typename Base, template <typename TV> class TKey>
212 using Key = TKey<TValue>;
217 const TValue* Get(const TKey<TValue>& key) const {
224 TValue* Get(const TKey<TValue>& key) {
231 TValue GetOrDefault(const TKey<TValue>& key) const {
240 ScopedRemove(VariantMap& map, const TKey<TValue>& key) : map_(map), key_(key) {}
246 const TKey<TValue>& key_;
253 TValue ReleaseOrDefault(const TKey<TValue>& key) {
267 bool Exists(const TKey<TValue>& key) const {
273 void Set(const TKey<TValue>& key, const TValue& value) {
284 bool SetIfMissing(const TKey<TValue>& key, const TValue& value) {
295 void Remove(const TKey<TValue>& key) {
377 std::is_same<TK, TKey<TValue>>::value, "The 0th/2nd/4th/etc parameters must be a key");
379 const TKey<TValue>& key_refined = key;
401 typename StorageMap::iterator GetKeyValueIterator(const TKey<TValue>& key) {
404 const TKey<TValue>* key_ptr = &key;
410 typename StorageMap::const_iterator GetKeyValueIterator(const TKey<TValue>& key) const {
413 const TKey<TValue>* key_ptr = &key;
419 TValue* GetValuePtr(const TKey<TValue>& key) {
424 const TValue* GetValuePtr(const TKey<TValue>& key) const {
429 const TValue* GetValueConstPtr(const TKey<TValue>& key) const {
440 static_assert(std::is_base_of<VariantMapKey<TValue>, TKey<TValue>>::value,
441 "The provided key type (TKey) must be a subclass of VariantMapKey");