JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
Defines a set of cs_abs_loc_set operations for CodeSonar.
| #define CS_ABS_LOC_SET_H | ||
| #define CS_ABS_LOC_SET_NULL | (cs_abs_loc_set_get_null()) | The null cs_abs_loc_set. |
| #define CS_ABS_LOC_SET_INL_H |
| Definition | typedef struct cs_abs_loc_set_iter_t * cs_abs_loc_set_iter |
|---|---|
| Notes | A structure to handle cs_abs_loc_set traversal.
Used by: |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | It is the responsibility of the user to close the returned set after use: use cs_abs_loc_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Create an empty cs_abs_loc_set with a given cs_set_kind. It is the reponsibility of the user to close this set after use: use cs_abs_loc_set_close(). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | Increment function for cs_abs_loc_set: increment the reference count for abs_loc_set. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | The new set must be closed with cs_abs_loc_set_close(). The cs_set_kind of the new set is the same as the old one. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | Decrements the reference count for abs_loc_set. If this brings the reference count to 0 (zero), frees the set. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if abs_loc is an element of abs_loc_set, cs_false otherwise. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The kind of abs_loc_set, as a cs_set_kind. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if abs_loc_set is empty, cs_false if not. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The size of abs_loc_set. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if abs_loc_set1 and abs_loc_set2 are equal; cs_false if not. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A hash of abs_loc_set, as a cs_hash_t. Two sets with the same contents will have the same hash. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Union of two cs_abs_loc_set sets. It is the reponsibility of the user to close the union set after use: use cs_abs_loc_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Intersection of two cs_abs_loc_set sets. It is the reponsibility of the user to close the intersection set after use: use cs_abs_loc_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if abs_loc_set1 and abs_loc_set2 have a non-empty intersection, cs_false otherwise. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Retrieve the first cs_abs_loc from abs_loc_set. This function opens abs_loc_set_iter, which is required by cs_abs_loc_set_iter_next(). Use cs_abs_loc_set_iter_close() to close abs_loc_set_iter. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on success. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Writes a (arbitarily ordered) list of cs_abs_loc elements of a cs_abs_loc_set into a user-allocated array. If the array is not large enough to hold the entire list, the list is truncated to fit into the array.
Call this function with abs_loc_list NULL and capacity_bytes 0 (zero) to determine the memory needed to hold all cs_abs_loc elements of abs_loc_set. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Creates a new cs_abs_loc_set containing the first cardinality elements from abs_loc_list. Any entries at positions higher than cardinality are ignored. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | It is the reponsibility of the user to close the difference set after use: use cs_abs_loc_set_close(). |
| Returns | The number of cs_abs_loc_set objects allocated by the C API. |
|---|---|
| Time-Complexity | O(1) |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if abs_loc_set1 and abs_loc_set2 are the same object; cs_false if not. | ||||||
| Notes | cs_abs_loc_set_same_instance( a, b ) implies cs_abs_loc_set_equal ( a, b ) |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if abs_loc_set is null; cs_false otherwise. |
| Returns | A null cs_abs_loc_set. |
|---|