Home
last modified time | relevance | path

Searched refs:TValue (Results 1 – 25 of 51) sorted by relevance

123

/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DDictionaryExtensions.cs55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { in get()
56 TValue value; in get()
60 if (typeof(TValue).IsValueType) in get()
63 return default(TValue); in get()
67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { in get()
68 TValue value; in get()
72 if (typeof(TValue).IsValueType) in get()
75 return default(TValue); in get()
78 public static TValue get<TKey, TValue>(SortedList<TKey, TValue> map, TKey key) { in get()
79 TValue value; in get()
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DDictionaryExtensions.cs55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) in get()
57 TValue value; in get()
61 if ( typeof( TValue ).IsValueType ) in get()
64 return default( TValue ); in get()
68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) in get()
70 TValue value; in get()
74 if ( typeof( TValue ).IsValueType ) in get()
77 return default( TValue ); in get()
80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key ) in get()
82 TValue value; in get()
[all …]
/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.Collections.pas51 IHashList<TKey, TValue> = interface(IDictionary<TKey, TValue>)
79 THashList<TKey, TValue> = class(TANTLRObject, IHashList<TKey, TValue>)
82 TPairEnumerator = class(TEnumerator<TPair<TKey, TValue>>)
84 FHashList: THashList<TKey, TValue>;
88 FPair: TPair<TKey, TValue>;
89 function GetCurrent: TPair<TKey, TValue>; in GetCurrent()
91 function DoGetCurrent: TPair<TKey, TValue>; override; in DoGetCurrent()
94 constructor Create(const AHashList: THashList<TKey, TValue>); argument
96 property Current: TPair<TKey, TValue> read GetCurrent;
99 FDictionary: IDictionary<TKey, TValue>;
[all …]
DAntlr.Runtime.Tools.pas186 IDictionary<TKey,TValue> = interface(IANTLRInterface)
189 function GetItem(const Key: TKey): TValue;
190 procedure SetItem(const Key: TKey; const Value: TValue);
194 procedure Add(const Key: TKey; const Value: TValue);
198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
199 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
201 function ContainsValue(const Value: TValue): Boolean;
202 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
205 property Items[const Key: TKey]: TValue read GetItem write SetItem; default;
234 TDictionaryArray<TKey,TValue> = array of IDictionary<TKey,TValue>;
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Misc/
DDoubleKeyMap.cs6 public class DoubleKeyMap<TKey1, TKey2, TValue> {
7 …ternal IDictionary<TKey1, IDictionary<TKey2, TValue>> data = new Dictionary<TKey1, IDictionary<TKe…
9 public virtual TValue Put(TKey1 k1, TKey2 k2, TValue v) { in Put()
10 IDictionary<TKey2, TValue> data2; in Put()
12 TValue prev = default(TValue); in Put()
14 data2 = new Dictionary<TKey2, TValue>(); in Put()
23 public virtual TValue Get(TKey1 k1, TKey2 k2) { in Get()
24 IDictionary<TKey2, TValue> data2; in Get()
27 return default(TValue); in Get()
29 TValue value; in Get()
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/Misc/
DDoubleKeyMap`3.cs5 public class DoubleKeyMap<TKey1, TKey2, TValue>
7 …ternal IDictionary<TKey1, IDictionary<TKey2, TValue>> data = new Dictionary<TKey1, IDictionary<TKe…
9 public virtual TValue Put(TKey1 k1, TKey2 k2, TValue v) in Put()
11 IDictionary<TKey2, TValue> data2; in Put()
13 TValue prev = default(TValue); in Put()
16 data2 = new Dictionary<TKey2, TValue>(); in Put()
27 public virtual TValue Get(TKey1 k1, TKey2 k2) in Get()
29 IDictionary<TKey2, TValue> data2; in Get()
32 return default(TValue); in Get()
34 TValue value; in Get()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/
DIExtendableMessage.cs45 TValue GetExtension<TValue>(Extension<T, TValue> extension); in GetExtension()
51 RepeatedField<TValue> GetExtension<TValue>(RepeatedExtension<T, TValue> extension); in GetExtension()
56 … RepeatedField<TValue> GetOrRegisterExtension<TValue>(RepeatedExtension<T, TValue> extension); in GetOrRegisterExtension()
61 void SetExtension<TValue>(Extension<T, TValue> extension, TValue value); in SetExtension()
66 bool HasExtension<TValue>(Extension<T, TValue> extension); in HasExtension()
71 void ClearExtension<TValue>(Extension<T, TValue> extension); in ClearExtension()
76 void ClearExtension<TValue>(RepeatedExtension<T, TValue> extension); in ClearExtension()
DExtensionSet.cs60 …public static TValue Get<TTarget, TValue>(ref ExtensionSet<TTarget> set, Extension<TTarget, TValue
65 return ((ExtensionValue<TValue>)value).GetValue();
76 …public static RepeatedField<TValue> Get<TTarget, TValue>(ref ExtensionSet<TTarget> set, RepeatedEx…
81 return ((RepeatedExtensionValue<TValue>)value).GetValue();
92 …lic static RepeatedField<TValue> GetOrRegister<TTarget, TValue>(ref ExtensionSet<TTarget> set, Rep…
110 return ((RepeatedExtensionValue<TValue>)value).GetValue();
116 …public static void Set<TTarget, TValue>(ref ExtensionSet<TTarget> set, Extension<TTarget, TValue> …
134 ((ExtensionValue<TValue>)extensionValue).SetValue(value);
140 …public static bool Has<TTarget, TValue>(ref ExtensionSet<TTarget> set, Extension<TTarget, TValue> …
149 …public static void Clear<TTarget, TValue>(ref ExtensionSet<TTarget> set, Extension<TTarget, TValue
[all …]
DExtension.cs66 …public sealed class Extension<TTarget, TValue> : Extension where TTarget : IExtendableMessage<TTar…
68 private readonly FieldCodec<TValue> codec;
73 public Extension(int fieldNumber, FieldCodec<TValue> codec) : base(fieldNumber) in Extension()
78 internal TValue DefaultValue => codec.DefaultValue;
84 return new ExtensionValue<TValue>(codec); in CreateValue()
94 …public sealed class RepeatedExtension<TTarget, TValue> : Extension where TTarget : IExtendableMess…
96 private readonly FieldCodec<TValue> codec;
101 public RepeatedExtension(int fieldNumber, FieldCodec<TValue> codec) : base(fieldNumber) in RepeatedExtension()
110 return new RepeatedExtensionValue<TValue>(codec); in CreateValue()
/external/protobuf/csharp/src/Google.Protobuf/Collections/
DMapField.cs69 … class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IDictionary<TKey, TValue>,…
71 , IReadOnlyDictionary<TKey, TValue>
74 … static readonly EqualityComparer<TValue> ValueEqualityComparer = ProtobufEqualityComparers.GetEqu…
78 private readonly Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>> map =
79 new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>(KeyEqualityComparer);
80 …private readonly LinkedList<KeyValuePair<TKey, TValue>> list = new LinkedList<KeyValuePair<TKey, T…
88 public MapField<TKey, TValue> Clone() in Clone()
90 var clone = new MapField<TKey, TValue>(); in Clone()
92 if (typeof(IDeepCloneable<TValue>).IsAssignableFrom(typeof(TValue))) in Clone()
96 clone.Add(pair.Key, ((IDeepCloneable<TValue>)pair.Value).Clone()); in Clone()
[all …]
DReadOnlyDictionary.cs42 internal sealed class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
44 private readonly IDictionary<TKey, TValue> wrapped;
46 public ReadOnlyDictionary(IDictionary<TKey, TValue> wrapped) in ReadOnlyDictionary()
51 public void Add(TKey key, TValue value) in Add()
71 public bool TryGetValue(TKey key, out TValue value) in TryGetValue()
76 public ICollection<TValue> Values
81 public TValue this[TKey key]
87 public void Add(KeyValuePair<TKey, TValue> item) in Add()
97 public bool Contains(KeyValuePair<TKey, TValue> item) in Contains()
102 public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) in CopyTo()
[all …]
/external/llvm-project/llvm/test/CodeGen/X86/
Dcoalescer-cross.ll8 %0 = type { %struct.TValue } ; type %0
10 %struct.CallInfo = type { %struct.TValue*, %struct.TValue*, %struct.TValue*, i32*, i32, i32 }
14 %struct.Node = type { %struct.TValue, %struct.TKey }
17 %struct.TValue = type { %struct.L_Umaxalign, i32 }
18 …%struct.Table = type { %struct.GCObject*, i8, i8, i8, i8, %struct.Table*, %struct.TValue*, %struct…
19 %struct.UpVal = type { %struct.GCObject*, i8, i8, %struct.TValue*, %0 }
21 …buffer, i32, i32, i32, i32, i32, i32, i32 (%struct.lua_State*)*, %struct.TValue, %struct.lua_State…
23TValue*, %struct.TValue*, %struct.global_State*, %struct.CallInfo*, i32*, %struct.TValue*, %struct…
33 …%3 = getelementptr %struct.lua_State, %struct.lua_State* %L, i32 0, i32 4 ; <%struct.TValue**> [#…
34 %4 = load %struct.TValue*, %struct.TValue** %3, align 4 ; <%struct.TValue*> [#uses=2]
[all …]
/external/llvm/test/CodeGen/X86/
Dcoalescer-cross.ll8 %0 = type { %struct.TValue } ; type %0
10 %struct.CallInfo = type { %struct.TValue*, %struct.TValue*, %struct.TValue*, i32*, i32, i32 }
14 %struct.Node = type { %struct.TValue, %struct.TKey }
17 %struct.TValue = type { %struct.L_Umaxalign, i32 }
18 …%struct.Table = type { %struct.GCObject*, i8, i8, i8, i8, %struct.Table*, %struct.TValue*, %struct…
19 %struct.UpVal = type { %struct.GCObject*, i8, i8, %struct.TValue*, %0 }
21 …buffer, i32, i32, i32, i32, i32, i32, i32 (%struct.lua_State*)*, %struct.TValue, %struct.lua_State…
23TValue*, %struct.TValue*, %struct.global_State*, %struct.CallInfo*, i32*, %struct.TValue*, %struct…
33 …%3 = getelementptr %struct.lua_State, %struct.lua_State* %L, i32 0, i32 4 ; <%struct.TValue**> [#…
34 %4 = load %struct.TValue*, %struct.TValue** %3, align 4 ; <%struct.TValue*> [#uses=2]
[all …]
/external/lua/src/
Dltm.h74 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
76 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
77 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
81 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
82 const TValue *p2, const TValue *p3);
83 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
84 const TValue *p1, const TValue *p2, StkId p3);
85 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
88 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
89 const TValue *p2, int inv, StkId res, TMS event);
[all …]
Dlvm.h107 { setobj2t(L, cast(TValue *,slot), v); \
113 LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
114 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
115 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
116 LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n);
117 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode);
118 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p,
121 LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key,
122 StkId val, const TValue *slot);
123 LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
[all …]
Dltm.c60 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
61 const TValue *tm = luaH_getshortstr(events, ename); in luaT_gettm()
71 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
91 const char *luaT_objtypename (lua_State *L, const TValue *o) { in luaT_objtypename()
95 const TValue *name = luaH_getshortstr(mt, luaS_new(L, "__name")); in luaT_objtypename()
103 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM()
104 const TValue *p2, const TValue *p3) { in luaT_callTM()
119 void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTMres()
120 const TValue *p2, StkId res) { in luaT_callTMres()
137 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM()
[all …]
Dltable.h38 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
40 TValue *value);
41 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
42 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
43 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
44 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
45 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
57 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
Dldebug.h32 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
34 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
36 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
37 const TValue *p2);
38 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
39 const TValue *p2,
41 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
42 const TValue *p2);
43 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
44 const TValue *p2);
Dlvm.c90 static int l_strton (const TValue *obj, TValue *result) { in l_strton()
103 int luaV_tonumber_ (const TValue *obj, lua_Number *n) { in luaV_tonumber_()
104 TValue v; in luaV_tonumber_()
137 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointegerns()
152 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointeger()
153 TValue v; in luaV_tointeger()
176 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim, in forlimit()
207 TValue *pinit = s2v(ra); in forprep()
208 TValue *plimit = s2v(ra + 1); in forprep()
209 TValue *pstep = s2v(ra + 2); in forprep()
[all …]
Dlobject.h63 typedef struct TValue { struct
65 } TValue; typedef
115 { TValue *io1=(obj1); const TValue *io2=(obj2); \
140 TValue val;
245 { TValue *io = (obj); lua_State *x_ = (x); \
286 { TValue *io = (obj); GCObject *i_g=(x); \
315 { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_VNUMFLT); }
318 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
321 { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_VNUMINT); }
324 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
[all …]
Dltable.c54 #define MAXASIZE luaM_limitN(1u << MAXABITS, TValue)
96 static const TValue absentkey = {ABSTKEYCONSTANT};
163 static Node *mainpositionTV (const Table *t, const TValue *key) { in mainpositionTV()
176 static int equalkey (const TValue *k1, const Node *n2) { in equalkey()
255 static const TValue *getgeneric (Table *t, const TValue *key) { in getgeneric()
287 static unsigned int findindex (lua_State *L, Table *t, TValue *key, in findindex()
295 const TValue *n = getgeneric(t, key); in findindex()
472 TValue k; in reinsert()
514 TValue *newarray; in luaH_resize()
529 newarray = luaM_reallocvector(L, t->array, oldasize, newasize, TValue); in luaH_resize()
[all …]
Dlapi.c56 static TValue *index2value (lua_State *L, int idx) { in index2value()
205 TValue temp; in reverse()
232 TValue *fr, *to; in lua_copy()
261 const TValue *o = index2value(L, idx); in lua_type()
274 const TValue *o = index2value(L, idx); in lua_iscfunction()
280 const TValue *o = index2value(L, idx); in lua_isinteger()
287 const TValue *o = index2value(L, idx); in lua_isnumber()
293 const TValue *o = index2value(L, idx); in lua_isstring()
299 const TValue *o = index2value(L, idx); in lua_isuserdata()
305 const TValue *o1 = index2value(L, index1); in lua_rawequal()
[all …]
Dlobject.c89 int luaO_rawarith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_rawarith()
90 TValue *res) { in luaO_rawarith()
126 void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_arith()
308 size_t luaO_str2num (const char *s, TValue *o) { in luaO_str2num()
355 static int tostringbuff (TValue *obj, char *buff) { in tostringbuff()
374 void luaO_tostring (lua_State *L, TValue *obj) { in luaO_tostring()
459 static void addnum2buff (BuffFS *buff, TValue *num) { in addnum2buff()
490 TValue num; in luaO_pushvfstring()
496 TValue num; in luaO_pushvfstring()
502 TValue num; in luaO_pushvfstring()
Dldebug.c301 TValue v; in collectvalidlines()
390 TValue *func; in lua_getinfo()
431 TValue *kvalue = &p->k[c]; in kname()
654 static int isinstack (CallInfo *ci, const TValue *o) { in isinstack()
666 static const char *getupvalname (CallInfo *ci, const TValue *o, in getupvalname()
680 static const char *varinfo (lua_State *L, const TValue *o) { in varinfo()
694 l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { in luaG_typeerror()
700 l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) { in luaG_forerror()
706 l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { in luaG_concaterror()
712 l_noret luaG_opinterror (lua_State *L, const TValue *p1, in luaG_opinterror()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs1729 public TValue GetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) { in GetExtension()
1732 …public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions… in GetExtension()
1735 …public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<ExtensionRa… in GetOrRegisterExtension()
1738 …public void SetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue va… in SetExtension()
1741 public bool HasExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) { in HasExtension()
1744 public void ClearExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) { in ClearExtension()
1747 …public void ClearExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)… in ClearExtension()
4866 public TValue GetExtension<TValue>(pb::Extension<FileOptions, TValue> extension) { in GetExtension()
4869 …public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> … in GetExtension()
4872 …public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<FileOptions… in GetOrRegisterExtension()
[all …]

123