Map from AST to AST
More...
Map from AST to AST
Definition at line 29 of file ASTMap.cs.
◆ Contains()
Checks whether the map contains the key k .
- Parameters
-
- Returns
- True if k is a key in the map, false otherwise.
Definition at line 36 of file ASTMap.cs.
38 Contract.Requires(k !=
null);
40 return Native.Z3_ast_map_contains(Context.nCtx, NativeObject, k.NativeObject) != 0;
◆ Erase()
Erases the key k from the map.
- Parameters
-
Definition at line 75 of file ASTMap.cs.
77 Contract.Requires(k !=
null);
79 Native.Z3_ast_map_erase(Context.nCtx, NativeObject, k.NativeObject);
◆ Find()
Finds the value associated with the key k .
This function signs an error when k is not a key in the map.
- Parameters
-
Definition at line 50 of file ASTMap.cs.
52 Contract.Requires(k !=
null);
53 Contract.Ensures(Contract.Result<AST>() !=
null);
55 return new AST(Context, Native.Z3_ast_map_find(Context.nCtx, NativeObject, k.NativeObject));
◆ Insert()
Stores or replaces a new key/value pair in the map.
- Parameters
-
Definition at line 63 of file ASTMap.cs.
65 Contract.Requires(k !=
null);
66 Contract.Requires(v !=
null);
68 Native.Z3_ast_map_insert(Context.nCtx, NativeObject, k.NativeObject, v.NativeObject);
◆ Reset()
Removes all keys from the map.
Definition at line 85 of file ASTMap.cs.
87 Native.Z3_ast_map_reset(Context.nCtx, NativeObject);
◆ ToString()
| override string ToString |
( |
| ) |
|
|
inline |
Retrieves a string representation of the map.
Definition at line 113 of file ASTMap.cs.
115 return Native.Z3_ast_map_to_string(Context.nCtx, NativeObject);
◆ Keys
The keys stored in the map.
Definition at line 102 of file ASTMap.cs.
105 ASTVector res =
new ASTVector(Context, Native.Z3_ast_map_keys(Context.nCtx, NativeObject));
106 return res.ToArray();
◆ Size
The size of the map
Definition at line 94 of file ASTMap.cs.
95 get {
return Native.Z3_ast_map_size(Context.nCtx, NativeObject); }