Skip to content

Commit

Permalink
Add dyninstAPI/BPatch_Set.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 90be53e commit 6acdcf7
Showing 1 changed file with 76 additions and 78 deletions.
154 changes: 76 additions & 78 deletions docs/dyninstAPI/public/BPatch_Set.h.rst
Original file line number Diff line number Diff line change
@@ -1,82 +1,80 @@
BPatch_Set.h
============
.. _`sec:BPatch_Set.h`:

``BPatch_Set``
--------------
.. cpp:namespace:: BPatch_Set
BPatch_Set.h
############

.. cpp:class:: BPatch_Set
**BPatch_Set** is another container class, similar to the set class in
the STL. THIS CLASS HAS BEEN DEPRECATED AND WILL BE REMOVED IN THE NEXT
RELEASE. In addition the methods provided by std::set, it provides the
following compatibility methods:
.. cpp:function:: BPatch_Set::BPatch_Set()
A constructor that creates an empty set with the default comparison
function.
.. cpp:function:: BPatch_Set::BPatch_Set(const BPatch_Set<T,Compare>& newBPatch_Set)
Copy constructor.
.. cpp:function:: void remove(const T&)
Remove the given element from the set.
.. cpp:function:: bool contains(const T&)
Return true if the argument is a member of the set, otherwise returns
false.
.. cpp:function:: T* elements(T*)
.. cpp:function:: void elements(std::vector<T> &)
Fill an array (or vector) with a list of the elements in the set that
are sorted in ascending order according to the comparison function. The
input argument should point to an array large enough to hold the
elements. This function returns its input argument, unless the set is
empty, in which case it returns NULL.
.. cpp:function:: T minimum()
Return the minimum element in the set, as determined by the comparison
function. For an empty set, the result is undefined.
.. cpp:function:: T maximum()
Return the maximum element in the set, as determined by the comparison
function. For an empty set, the result is undefined.
.. cpp:function:: BPatch_Set<T,Compare>& operator+= (const T&)
Add the given object to the set.
.. cpp:function:: BPatch_Set<T,Compare>& operator|= (const BPatch_Set<T,Compare>&)
Set union operator. Assign the result of the union to the set on the
left hand side.
.. cpp:function:: BPatch_Set<T,Compare>& operator&= (const BPatch_Set<T,Compare>&)
Set intersection operator. Assign the result of the intersection to the
set on the left hand side.
.. cpp:function:: BPatch_Set<T,Compare>& operator-= (const BPatch_Set<T,Compare>&)
Set difference operator. Assign the difference of the sets to the set on
the left hand side.
.. cpp:function:: BPatch_Set<T,Compare> operator| (const BPatch_Set<T,Compare>&)
Set union operator.
.. cpp:function:: BPatch_Set<T,Compare> operator& (const BPatch_Set<T,Compare>&)
Set intersection operator.
.. cpp:function:: BPatch_Set<T,Compare> operator- (const BPatch_Set<T,Compare>&)
Set difference operator.
**BPatch_Set** is another container class, similar to the set class in
the STL. THIS CLASS HAS BEEN DEPRECATED AND WILL BE REMOVED IN THE NEXT
RELEASE. In addition the methods provided by std::set, it provides the
following compatibility methods:

.. cpp:function:: BPatch_Set::BPatch_Set()

A constructor that creates an empty set with the default comparison
function.

.. cpp:function:: BPatch_Set::BPatch_Set(const BPatch_Set<T,Compare>& newBPatch_Set)

Copy constructor.

.. cpp:function:: void remove(const T&)

Remove the given element from the set.

.. cpp:function:: bool contains(const T&)

Return true if the argument is a member of the set, otherwise returns
false.

.. cpp:function:: T* elements(T*)

.. cpp:function:: void elements(std::vector<T> &)

Fill an array (or vector) with a list of the elements in the set that
are sorted in ascending order according to the comparison function. The
input argument should point to an array large enough to hold the
elements. This function returns its input argument, unless the set is
empty, in which case it returns NULL.

.. cpp:function:: T minimum()

Return the minimum element in the set, as determined by the comparison
function. For an empty set, the result is undefined.

.. cpp:function:: T maximum()

Return the maximum element in the set, as determined by the comparison
function. For an empty set, the result is undefined.

.. cpp:function:: BPatch_Set<T,Compare>& operator+= (const T&)

Add the given object to the set.

.. cpp:function:: BPatch_Set<T,Compare>& operator|= (const BPatch_Set<T,Compare>&)

Set union operator. Assign the result of the union to the set on the
left hand side.

.. cpp:function:: BPatch_Set<T,Compare>& operator&= (const BPatch_Set<T,Compare>&)

Set intersection operator. Assign the result of the intersection to the
set on the left hand side.

.. cpp:function:: BPatch_Set<T,Compare>& operator-= (const BPatch_Set<T,Compare>&)

Set difference operator. Assign the difference of the sets to the set on
the left hand side.

.. cpp:function:: BPatch_Set<T,Compare> operator| (const BPatch_Set<T,Compare>&)

Set union operator.

.. cpp:function:: BPatch_Set<T,Compare> operator& (const BPatch_Set<T,Compare>&)

Set intersection operator.

.. cpp:function:: BPatch_Set<T,Compare> operator- (const BPatch_Set<T,Compare>&)

Set difference operator.

0 comments on commit 6acdcf7

Please sign in to comment.