#include <DSIGReferenceList.hpp>
The library holds a Signature's list of references using this class. Manifest lists are similarly held. Developers can obtain the list from the Signature library using DSIGSignature::getReferenceList and then iterate through each reference.
The library also uses the List as the owner of the memory associated with References. So when a list is deleted, the references are deleted at the same time.
Public Types | |
| typedef std::vector< DSIGReference * > | ReferenceListVectorType |
| typedef size_t | size_type |
Public Member Functions | |
Constructors and Destructors | |
| DSIGReferenceList () | |
| Construct a list. | |
| ~DSIGReferenceList () | |
| Destroy a list. | |
List manipulation | |
| void | addReference (DSIGReference *ref) |
| Add a reference to the list. | |
| DSIGReference * | removeReference (size_type index) |
| Remove a reference from the list. | |
| DSIGReference * | item (size_type index) |
| Return a reference from the list. | |
| size_type | getSize () |
| Find the number of elements in the list. | |
| bool | empty () |
| Clear out the list. | |
|
|
|
|
|
|
|
|
Construct a list.
|
|
|
Destroy a list. Standard destructor to close down the list.
|
|
|
Add a reference to the list. Appends the reference to the end of the list and takes ownership of associated memory. |
|
|
Clear out the list. Simply clears the list. Does not delete the reference elements themselves. |
|
|
Find the number of elements in the list.
|
|
|
Return a reference from the list. Gets the reference at point index in the list
|
|
|
Remove a reference from the list. Removes the reference at the index point and returns a pointer to the reference removed.
|
1.4.2