Class SBCReferenceToOwnerList#
ClassList > SBCReferenceToOwnerList
Inherits the following classes: SBCReferenceToOwner
Protected Attributes#
| Type | Name |
|---|---|
| SBCReferenceListLinkPointer | referenceListLinkInOwner Pointer to the referenceListLink in the owner (for fast removal) |
| SBCReferenceOwnerList * | referenceOwnerList Pointer to the reference owner list. |
Protected Functions#
| Type | Name |
|---|---|
| SBCReferenceToOwnerList () Constructs an empty SBCReferenceToOwnerList. |
|
| SBCReferenceToOwnerList (SBCReferenceOwnerList * referenceOwnerList) Constructs an SBCReferenceToOwnerList referencing the given owner list. |
|
| virtual SBCReferenceOwner * | getReferenceOwner () override const Returns the reference owner list. |
| virtual void | print (std::ostream & os) override const Prints debugging information. |
| virtual void | print () override const Prints debugging information. |
| virtual void | stopReferencing () override Stops referencing the index. |
| virtual | ~SBCReferenceToOwnerList () Destroys the SBCReferenceToOwnerList. |
Protected Attributes Documentation#
variable referenceListLinkInOwner#
Pointer to the referenceListLink in the owner (for fast removal)
variable referenceOwnerList#
Pointer to the reference owner list.
Protected Functions Documentation#
function SBCReferenceToOwnerList [1/2]#
Constructs an empty SBCReferenceToOwnerList.
Initializes the internal pointers to null.
function SBCReferenceToOwnerList [2/2]#
Constructs an SBCReferenceToOwnerList referencing the given owner list.
Initializes the reference to the provided owner list.
Parameters:
mPointer to the SBCReferenceOwnerList to reference.
function getReferenceOwner#
Returns the reference owner list.
Returns the referenced owner.
Retrieves the owner list that this reference points to, or nullptr if no owner is referenced.
Returns:
Pointer to the referenced SBCReferenceOwner, or nullptr if none.
function print [1/2]#
Prints debugging information.
Prints debugging information to the given output stream.
Outputs the state of the reference, including the owner list pointer and the back reference if present.
Parameters:
osOutput stream to which the debugging information is written.
function print [2/2]#
Prints debugging information.
Prints debugging information to the standard output stream.
Calls the overload that takes an std::ostream with std::cout.
function stopReferencing#
Stops referencing the index.
Stops referencing the owner list and removes the back reference.
If the reference owner list is set, deletes the associated back reference and clears the internal pointers.
function ~SBCReferenceToOwnerList#
Destroys the SBCReferenceToOwnerList.