LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScChangeActionLinkEntry Class Reference

A link/connection/dependency between change actions. More...

#include <chgtrack.hxx>

Inheritance diagram for ScChangeActionLinkEntry:
[legend]
Collaboration diagram for ScChangeActionLinkEntry:
[legend]

Public Member Functions

 ScChangeActionLinkEntry (ScChangeActionLinkEntry **ppPrevP, ScChangeAction *pActionP)
 
virtual ~ScChangeActionLinkEntry ()
 
void SetLink (ScChangeActionLinkEntry *pLinkP)
 
void UnLink ()
 
void Remove ()
 
const ScChangeActionLinkEntryGetNext () const
 
ScChangeActionLinkEntryGetNext ()
 
const ScChangeActionGetAction () const
 
ScChangeActionGetAction ()
 

Private Member Functions

 ScChangeActionLinkEntry (const ScChangeActionLinkEntry &)=delete
 
ScChangeActionLinkEntryoperator= (const ScChangeActionLinkEntry &)=delete
 

Private Attributes

ScChangeActionLinkEntrypNext
 
ScChangeActionLinkEntry ** ppPrev
 
ScChangeActionpAction
 
ScChangeActionLinkEntrypLink
 

Detailed Description

A link/connection/dependency between change actions.

Upon construction inserts itself as the head of a chain / linked list, respectively between existing link entries.

Upon destruction removes itself from the list and connects the previous and next entry, if it was the first entry automatically maintaining the head pointer to the list.

ppPrev == &previous->pNext or address of pointer to head of linked list, ppPrev == this

Definition at line 102 of file chgtrack.hxx.

Constructor & Destructor Documentation

◆ ScChangeActionLinkEntry() [1/2]

ScChangeActionLinkEntry::ScChangeActionLinkEntry ( const ScChangeActionLinkEntry )
privatedelete

◆ ScChangeActionLinkEntry() [2/2]

ScChangeActionLinkEntry::ScChangeActionLinkEntry ( ScChangeActionLinkEntry **  ppPrevP,
ScChangeAction pActionP 
)
inline

Definition at line 114 of file chgtrack.hxx.

References pNext, and ppPrev.

◆ ~ScChangeActionLinkEntry()

virtual ScChangeActionLinkEntry::~ScChangeActionLinkEntry ( )
inlinevirtual

Definition at line 127 of file chgtrack.hxx.

References p, pLink, Remove(), and UnLink().

Member Function Documentation

◆ GetAction() [1/2]

ScChangeAction * ScChangeActionLinkEntry::GetAction ( )
inline

Definition at line 168 of file chgtrack.hxx.

References pAction.

◆ GetAction() [2/2]

const ScChangeAction * ScChangeActionLinkEntry::GetAction ( ) const
inline

◆ GetNext() [1/2]

ScChangeActionLinkEntry * ScChangeActionLinkEntry::GetNext ( )
inline

Definition at line 166 of file chgtrack.hxx.

References pNext.

◆ GetNext() [2/2]

const ScChangeActionLinkEntry * ScChangeActionLinkEntry::GetNext ( ) const
inline

◆ operator=()

ScChangeActionLinkEntry & ScChangeActionLinkEntry::operator= ( const ScChangeActionLinkEntry )
privatedelete

◆ Remove()

void ScChangeActionLinkEntry::Remove ( )
inline

Definition at line 155 of file chgtrack.hxx.

References pNext, and ppPrev.

Referenced by ~ScChangeActionLinkEntry().

◆ SetLink()

void ScChangeActionLinkEntry::SetLink ( ScChangeActionLinkEntry pLinkP)
inline

Definition at line 136 of file chgtrack.hxx.

References pLink, and UnLink().

Referenced by ScChangeAction::AddLink(), and ScChangeAction::SetDeletedIn().

◆ UnLink()

void ScChangeActionLinkEntry::UnLink ( )
inline

Definition at line 146 of file chgtrack.hxx.

References pLink.

Referenced by ScChangeActionMove::Reject(), SetLink(), and ~ScChangeActionLinkEntry().

Member Data Documentation

◆ pAction

ScChangeAction* ScChangeActionLinkEntry::pAction
private

Definition at line 109 of file chgtrack.hxx.

Referenced by GetAction().

◆ pLink

ScChangeActionLinkEntry* ScChangeActionLinkEntry::pLink
private

Definition at line 110 of file chgtrack.hxx.

Referenced by SetLink(), UnLink(), and ~ScChangeActionLinkEntry().

◆ pNext

ScChangeActionLinkEntry* ScChangeActionLinkEntry::pNext
private

Definition at line 107 of file chgtrack.hxx.

Referenced by GetNext(), Remove(), and ScChangeActionLinkEntry().

◆ ppPrev

ScChangeActionLinkEntry** ScChangeActionLinkEntry::ppPrev
private

Definition at line 108 of file chgtrack.hxx.

Referenced by Remove(), and ScChangeActionLinkEntry().


The documentation for this class was generated from the following file: