forked from potassco/potassco.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup__SymbolicAtoms.html
746 lines (723 loc) · 44 KB
/
group__SymbolicAtoms.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Clingo C API: Symbolic Atom Inspection</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="clingo.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Clingo C API
</div>
<div id="projectbrief">C API for clingo providing high level functions to control grounding and solving.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Symbolic Atom Inspection<div class="ingroups"><a class="el" href="group__Control.html">Grounding and Solving</a></div></div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Inspection of atoms occurring in ground logic programs. </p>
<p>For an example, see <a class="el" href="symbolic-atoms_8c-example.html">symbolic-atoms.c</a>. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga48f4026c13a49553efce213e76ab32aa"><td class="memItemLeft" align="right" valign="top">typedef struct clingo_symbolic_atoms </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a></td></tr>
<tr class="memdesc:ga48f4026c13a49553efce213e76ab32aa"><td class="mdescLeft"> </td><td class="mdescRight">Object to inspect symbolic atoms in a program—the relevant Herbrand base gringo uses to instantiate programs. <a href="#ga48f4026c13a49553efce213e76ab32aa">More...</a><br /></td></tr>
<tr class="separator:ga48f4026c13a49553efce213e76ab32aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0a773e6f798cb2395d0cdfab5b277ca2"><td class="memItemLeft" align="right" valign="top">typedef uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a></td></tr>
<tr class="memdesc:ga0a773e6f798cb2395d0cdfab5b277ca2"><td class="mdescLeft"> </td><td class="mdescRight">Object to iterate over symbolic atoms. <a href="#ga0a773e6f798cb2395d0cdfab5b277ca2">More...</a><br /></td></tr>
<tr class="separator:ga0a773e6f798cb2395d0cdfab5b277ca2"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga254c68c537a26bf6683f4e001bf265d4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga254c68c537a26bf6683f4e001bf265d4">clingo_symbolic_atoms_size</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, size_t *size)</td></tr>
<tr class="memdesc:ga254c68c537a26bf6683f4e001bf265d4"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of different atoms occurring in a logic program. <a href="#ga254c68c537a26bf6683f4e001bf265d4">More...</a><br /></td></tr>
<tr class="separator:ga254c68c537a26bf6683f4e001bf265d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae6880b80149d0148632a42951ee67aed"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#gae6880b80149d0148632a42951ee67aed">clingo_symbolic_atoms_begin</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__Symbols.html#ga3485f06e63e12f967ef6420e132f7376">clingo_signature_t</a> const *signature, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> *iterator)</td></tr>
<tr class="memdesc:gae6880b80149d0148632a42951ee67aed"><td class="mdescLeft"> </td><td class="mdescRight">Get a forward iterator to the beginning of the sequence of all symbolic atoms optionally restricted to a given signature. <a href="#gae6880b80149d0148632a42951ee67aed">More...</a><br /></td></tr>
<tr class="separator:gae6880b80149d0148632a42951ee67aed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga327968989c722c6df96b014d01f97edb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga327968989c722c6df96b014d01f97edb">clingo_symbolic_atoms_end</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> *iterator)</td></tr>
<tr class="memdesc:ga327968989c722c6df96b014d01f97edb"><td class="mdescLeft"> </td><td class="mdescRight">Iterator pointing to the end of the sequence of symbolic atoms. <a href="#ga327968989c722c6df96b014d01f97edb">More...</a><br /></td></tr>
<tr class="separator:ga327968989c722c6df96b014d01f97edb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2aaaf8cbd79db44ee7e165b0ef609b8d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga2aaaf8cbd79db44ee7e165b0ef609b8d">clingo_symbolic_atoms_find</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> symbol, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> *iterator)</td></tr>
<tr class="memdesc:ga2aaaf8cbd79db44ee7e165b0ef609b8d"><td class="mdescLeft"> </td><td class="mdescRight">Find a symbolic atom given its symbolic representation. <a href="#ga2aaaf8cbd79db44ee7e165b0ef609b8d">More...</a><br /></td></tr>
<tr class="separator:ga2aaaf8cbd79db44ee7e165b0ef609b8d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1790be46a59ee51cea04055ebfcfc412"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga1790be46a59ee51cea04055ebfcfc412">clingo_symbolic_atoms_iterator_is_equal_to</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> a, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> b, bool *equal)</td></tr>
<tr class="memdesc:ga1790be46a59ee51cea04055ebfcfc412"><td class="mdescLeft"> </td><td class="mdescRight">Check if two iterators point to the same element (or end of the sequence). <a href="#ga1790be46a59ee51cea04055ebfcfc412">More...</a><br /></td></tr>
<tr class="separator:ga1790be46a59ee51cea04055ebfcfc412"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga52b7e5f4e34356313fc029a2a2a28e11"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga52b7e5f4e34356313fc029a2a2a28e11">clingo_symbolic_atoms_symbol</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> *symbol)</td></tr>
<tr class="memdesc:ga52b7e5f4e34356313fc029a2a2a28e11"><td class="mdescLeft"> </td><td class="mdescRight">Get the symbolic representation of an atom. <a href="#ga52b7e5f4e34356313fc029a2a2a28e11">More...</a><br /></td></tr>
<tr class="separator:ga52b7e5f4e34356313fc029a2a2a28e11"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2ca0a9d54a80ecaaeb0243f71aa19468"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga2ca0a9d54a80ecaaeb0243f71aa19468">clingo_symbolic_atoms_is_fact</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, bool *fact)</td></tr>
<tr class="memdesc:ga2ca0a9d54a80ecaaeb0243f71aa19468"><td class="mdescLeft"> </td><td class="mdescRight">Check whether an atom is a fact. <a href="#ga2ca0a9d54a80ecaaeb0243f71aa19468">More...</a><br /></td></tr>
<tr class="separator:ga2ca0a9d54a80ecaaeb0243f71aa19468"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae2ac94572b5b9f67fb8565ca5c00e926"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#gae2ac94572b5b9f67fb8565ca5c00e926">clingo_symbolic_atoms_is_external</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, bool *external)</td></tr>
<tr class="memdesc:gae2ac94572b5b9f67fb8565ca5c00e926"><td class="mdescLeft"> </td><td class="mdescRight">Check whether an atom is external. <a href="#gae2ac94572b5b9f67fb8565ca5c00e926">More...</a><br /></td></tr>
<tr class="separator:gae2ac94572b5b9f67fb8565ca5c00e926"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad848a8e3019450374adf396eb1298fec"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#gad848a8e3019450374adf396eb1298fec">clingo_symbolic_atoms_literal</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> *literal)</td></tr>
<tr class="memdesc:gad848a8e3019450374adf396eb1298fec"><td class="mdescLeft"> </td><td class="mdescRight">Returns the (numeric) aspif literal corresponding to the given symbolic atom. <a href="#gad848a8e3019450374adf396eb1298fec">More...</a><br /></td></tr>
<tr class="separator:gad848a8e3019450374adf396eb1298fec"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabc494c643a192a32cd5c4eae39ee19b8"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#gabc494c643a192a32cd5c4eae39ee19b8">clingo_symbolic_atoms_signatures_size</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, size_t *size)</td></tr>
<tr class="memdesc:gabc494c643a192a32cd5c4eae39ee19b8"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of different predicate signatures used in the program. <a href="#gabc494c643a192a32cd5c4eae39ee19b8">More...</a><br /></td></tr>
<tr class="separator:gabc494c643a192a32cd5c4eae39ee19b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5c0a8e4b656f1814909759b5022f311d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga5c0a8e4b656f1814909759b5022f311d">clingo_symbolic_atoms_signatures</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__Symbols.html#ga3485f06e63e12f967ef6420e132f7376">clingo_signature_t</a> *signatures, size_t size)</td></tr>
<tr class="memdesc:ga5c0a8e4b656f1814909759b5022f311d"><td class="mdescLeft"> </td><td class="mdescRight">Get the predicate signatures occurring in a logic program. <a href="#ga5c0a8e4b656f1814909759b5022f311d">More...</a><br /></td></tr>
<tr class="separator:ga5c0a8e4b656f1814909759b5022f311d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2d24ba87d7bdbe32912cddfb6282af89"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga2d24ba87d7bdbe32912cddfb6282af89">clingo_symbolic_atoms_next</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> *next)</td></tr>
<tr class="memdesc:ga2d24ba87d7bdbe32912cddfb6282af89"><td class="mdescLeft"> </td><td class="mdescRight">Get an iterator to the next element in the sequence of symbolic atoms. <a href="#ga2d24ba87d7bdbe32912cddfb6282af89">More...</a><br /></td></tr>
<tr class="separator:ga2d24ba87d7bdbe32912cddfb6282af89"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3c3da42d4d381e30e2c9966a12c17105"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__SymbolicAtoms.html#ga3c3da42d4d381e30e2c9966a12c17105">clingo_symbolic_atoms_is_valid</a> (<a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> *atoms, <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> iterator, bool *valid)</td></tr>
<tr class="memdesc:ga3c3da42d4d381e30e2c9966a12c17105"><td class="mdescLeft"> </td><td class="mdescRight">Check whether the given iterator points to some element with the sequence of symbolic atoms or to the end of the sequence. <a href="#ga3c3da42d4d381e30e2c9966a12c17105">More...</a><br /></td></tr>
<tr class="separator:ga3c3da42d4d381e30e2c9966a12c17105"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga0a773e6f798cb2395d0cdfab5b277ca2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef uint64_t <a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Object to iterate over symbolic atoms. </p>
<p>Such an iterator either points to a symbolic atom within a sequence of symbolic atoms or to the end of the sequence.</p>
<dl class="section note"><dt>Note</dt><dd>Iterators are valid as long as the underlying sequence is not modified. Operations that can change this sequence are <a class="el" href="group__Control.html#gad0d95c5766649ff2f00e4ee3507a679f" title="Ground the selected parts of the current (non-ground) logic program. ">clingo_control_ground()</a>, <a class="el" href="group__Control.html#ga26e10ca86d2bedbcfa8fb2bc6a6f8006" title="Clean up the domains of clingo's grounding component using the solving component's top level assignme...">clingo_control_cleanup()</a>, and functions that modify the underlying non-ground program. </dd></dl>
</div>
</div>
<a class="anchor" id="ga48f4026c13a49553efce213e76ab32aa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct clingo_symbolic_atoms <a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Object to inspect symbolic atoms in a program—the relevant Herbrand base gringo uses to instantiate programs. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__Control.html#gac1c7e54de01e03c4595446d6fe5632cc" title="Get an object to inspect symbolic atoms (the relevant Herbrand base) used for grounding. ">clingo_control_symbolic_atoms()</a> </dd></dl>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gae6880b80149d0148632a42951ee67aed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_begin </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Symbols.html#ga3485f06e63e12f967ef6420e132f7376">clingo_signature_t</a> const * </td>
<td class="paramname"><em>signature</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> * </td>
<td class="paramname"><em>iterator</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a forward iterator to the beginning of the sequence of all symbolic atoms optionally restricted to a given signature. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">signature</td><td>optional signature </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">iterator</td><td>the resulting iterator </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="propagator_8c-example.html#a9">propagator.c</a>, and <a class="el" href="symbolic-atoms_8c-example.html#a9">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga327968989c722c6df96b014d01f97edb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_end </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> * </td>
<td class="paramname"><em>iterator</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Iterator pointing to the end of the sequence of symbolic atoms. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">iterator</td><td>the resulting iterator </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="backend_8c-example.html#a14">backend.c</a>, <a class="el" href="propagator_8c-example.html#a8">propagator.c</a>, and <a class="el" href="symbolic-atoms_8c-example.html#a10">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga2aaaf8cbd79db44ee7e165b0ef609b8d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_find </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> </td>
<td class="paramname"><em>symbol</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> * </td>
<td class="paramname"><em>iterator</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Find a symbolic atom given its symbolic representation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">symbol</td><td>the symbol to lookup </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">iterator</td><td>iterator pointing to the symbolic atom or to the end of the sequence if no corresponding atom is found </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="backend_8c-example.html#a13">backend.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="gae2ac94572b5b9f67fb8565ca5c00e926"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_is_external </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>external</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check whether an atom is external. </p>
<p>An atom is external if it has been defined using an external directive and has not been released or defined by a rule.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>iterator to the atom </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">external</td><td>whether the atom is a external </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="symbolic-atoms_8c-example.html#a14">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga2ca0a9d54a80ecaaeb0243f71aa19468"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_is_fact </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>fact</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check whether an atom is a fact. </p>
<dl class="section note"><dt>Note</dt><dd>This does not determine if an atom is a cautious consequence. The grounding or solving component's simplifications can only detect this in some cases.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>iterator to the atom </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">fact</td><td>whether the atom is a fact </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="symbolic-atoms_8c-example.html#a13">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga3c3da42d4d381e30e2c9966a12c17105"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_is_valid </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>valid</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check whether the given iterator points to some element with the sequence of symbolic atoms or to the end of the sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>the iterator </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">valid</td><td>whether the iterator points to some element within the sequence </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a class="anchor" id="ga1790be46a59ee51cea04055ebfcfc412"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_iterator_is_equal_to </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>equal</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if two iterators point to the same element (or end of the sequence). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>the first iterator </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>the second iterator </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">equal</td><td>whether the two iterators are equal </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="backend_8c-example.html#a15">backend.c</a>, <a class="el" href="propagator_8c-example.html#a10">propagator.c</a>, and <a class="el" href="symbolic-atoms_8c-example.html#a11">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="gad848a8e3019450374adf396eb1298fec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_literal </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> * </td>
<td class="paramname"><em>literal</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the (numeric) aspif literal corresponding to the given symbolic atom. </p>
<p>Such a literal can be mapped to a solver literal (see the <a class="el" href="group__Propagator.html">Theory Propagation</a> module) or be used in rules in aspif format (see the <a class="el" href="group__ProgramBuilder.html">Program Building</a> module).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>iterator to the atom </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">literal</td><td>the associated literal </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="backend_8c-example.html#a16">backend.c</a>, and <a class="el" href="propagator_8c-example.html#a11">propagator.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga2d24ba87d7bdbe32912cddfb6282af89"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_next </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> * </td>
<td class="paramname"><em>next</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get an iterator to the next element in the sequence of symbolic atoms. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>the current iterator </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">next</td><td>the succeeding iterator </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="propagator_8c-example.html#a15">propagator.c</a>, and <a class="el" href="symbolic-atoms_8c-example.html#a15">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga5c0a8e4b656f1814909759b5022f311d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_signatures </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Symbols.html#ga3485f06e63e12f967ef6420e132f7376">clingo_signature_t</a> * </td>
<td class="paramname"><em>signatures</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the predicate signatures occurring in a logic program. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">signatures</td><td>the resulting signatures </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of signatures </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#gga5adba1f5e366e7489ac4a3fb5266dba6aa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated ">clingo_error_bad_alloc</a></li>
<li><a class="el" href="group__BasicTypes.html#gga5adba1f5e366e7489ac4a3fb5266dba6af43eebc9503fef8d1b2b85f99bb63221" title="wrong usage of the clingo API or invalid input ">clingo_error_runtime</a> if the size is too small</li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__SymbolicAtoms.html#gabc494c643a192a32cd5c4eae39ee19b8" title="Get the number of different predicate signatures used in the program. ">clingo_symbolic_atoms_signatures_size()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gabc494c643a192a32cd5c4eae39ee19b8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_signatures_size </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the number of different predicate signatures used in the program. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>the number of signatures </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a class="anchor" id="ga254c68c537a26bf6683f4e001bf265d4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_size </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the number of different atoms occurring in a logic program. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>the number of atoms </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a class="anchor" id="ga52b7e5f4e34356313fc029a2a2a28e11"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool clingo_symbolic_atoms_symbol </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga0a773e6f798cb2395d0cdfab5b277ca2">clingo_symbolic_atom_iterator_t</a> </td>
<td class="paramname"><em>iterator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> * </td>
<td class="paramname"><em>symbol</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the symbolic representation of an atom. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">iterator</td><td>iterator to the atom </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">symbol</td><td>the resulting symbol </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="propagator_8c-example.html#a13">propagator.c</a>, and <a class="el" href="symbolic-atoms_8c-example.html#a12">symbolic-atoms.c</a>.</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 18 2016 13:19:52 for Clingo C API by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>