Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Reference< TO, FROM > Class Template Referenceabstract

#include <Reference.h>

Inheritance diagram for Reference< TO, FROM >:
Collaboration diagram for Reference< TO, FROM >:

Public Member Functions

FROM * GetSource () const
TO * getTarget () const
void invalidate ()
bool isValid () const
void link (TO *toObj, FROM *fromObj)
Reference< TO, FROM > * next ()
Reference< TO, FROM > const * next () const
Reference< TO, FROM > * nocheck_next ()
Reference< TO, FROM > const * nocheck_next () const
Reference< TO, FROM > * nocheck_prev ()
Reference< TO, FROM > const * nocheck_prev () const
TO * operator-> () const
Reference< TO, FROM > * prev ()
Reference< TO, FROM > const * prev () const
 Reference ()
void unlink ()
virtual ~Reference ()
Public Member Functions inherited from LinkedListElement
void delink ()
bool hasNext () const
bool hasPrev () const
void insertAfter (LinkedListElement *pElem)
void insertBefore (LinkedListElement *pElem)
bool isInList () const
 LinkedListElement ()
LinkedListElementnext ()
LinkedListElement const * next () const
LinkedListElementnocheck_next ()
LinkedListElement const * nocheck_next () const
LinkedListElementnocheck_prev ()
LinkedListElement const * nocheck_prev () const
LinkedListElementprev ()
LinkedListElement const * prev () const
virtual ~LinkedListElement ()

Protected Member Functions

virtual void sourceObjectDestroyLink ()=0
virtual void targetObjectBuildLink ()=0
virtual void targetObjectDestroyLink ()=0

Private Member Functions

Referenceoperator= (Reference const &)
 Reference (Reference const &)

Private Attributes

FROM * iRefFrom
TO * iRefTo

Detailed Description

template<class TO, class FROM>
class Reference< TO, FROM >

Definition at line 14 of file Reference.h.

Constructor & Destructor Documentation

◆ Reference() [1/2]

template<class TO, class FROM>
Reference< TO, FROM >::Reference ( )
inline

Definition at line 29 of file Reference.h.

References iRefFrom, and iRefTo.

Referenced by next(), next(), nocheck_next(), nocheck_next(), nocheck_prev(), nocheck_prev(), operator=(), prev(), prev(), and Reference().

◆ ~Reference()

template<class TO, class FROM>
virtual Reference< TO, FROM >::~Reference ( )
inlinevirtual

Definition at line 30 of file Reference.h.

◆ Reference() [2/2]

template<class TO, class FROM>
Reference< TO, FROM >::Reference ( Reference< TO, FROM > const & )
private

References Reference().

Member Function Documentation

◆ GetSource()

◆ getTarget()

template<class TO, class FROM>
TO * Reference< TO, FROM >::getTarget ( ) const
inline

◆ invalidate()

template<class TO, class FROM>
void Reference< TO, FROM >::invalidate ( )
inline

Definition at line 58 of file Reference.h.

References LinkedListElement::delink(), iRefTo, and sourceObjectDestroyLink().

◆ isValid()

template<class TO, class FROM>
bool Reference< TO, FROM >::isValid ( ) const
inline

Definition at line 65 of file Reference.h.

References iRefTo.

Referenced by Group::CountTheRoll(), and link().

◆ link()

template<class TO, class FROM>
void Reference< TO, FROM >::link ( TO * toObj,
FROM * fromObj )
inline

Definition at line 33 of file Reference.h.

References ASSERT, iRefFrom, iRefTo, isValid(), targetObjectBuildLink(), and unlink().

◆ next() [1/2]

template<class TO, class FROM>
Reference< TO, FROM > * Reference< TO, FROM >::next ( )
inline

◆ next() [2/2]

template<class TO, class FROM>
Reference< TO, FROM > const * Reference< TO, FROM >::next ( ) const
inline

Definition at line 71 of file Reference.h.

References LinkedListElement::next(), and Reference().

◆ nocheck_next() [1/2]

template<class TO, class FROM>
Reference< TO, FROM > * Reference< TO, FROM >::nocheck_next ( )
inline

Definition at line 75 of file Reference.h.

References LinkedListElement::nocheck_next(), and Reference().

◆ nocheck_next() [2/2]

template<class TO, class FROM>
Reference< TO, FROM > const * Reference< TO, FROM >::nocheck_next ( ) const
inline

Definition at line 76 of file Reference.h.

References LinkedListElement::nocheck_next(), and Reference().

◆ nocheck_prev() [1/2]

template<class TO, class FROM>
Reference< TO, FROM > * Reference< TO, FROM >::nocheck_prev ( )
inline

◆ nocheck_prev() [2/2]

template<class TO, class FROM>
Reference< TO, FROM > const * Reference< TO, FROM >::nocheck_prev ( ) const
inline

Definition at line 78 of file Reference.h.

References LinkedListElement::nocheck_prev(), and Reference().

◆ operator->()

template<class TO, class FROM>
TO * Reference< TO, FROM >::operator-> ( ) const
inline

Definition at line 80 of file Reference.h.

References iRefTo.

◆ operator=()

template<class TO, class FROM>
Reference & Reference< TO, FROM >::operator= ( Reference< TO, FROM > const & )
private

References Reference().

◆ prev() [1/2]

template<class TO, class FROM>
Reference< TO, FROM > * Reference< TO, FROM >::prev ( )
inline

Definition at line 72 of file Reference.h.

References LinkedListElement::prev(), and Reference().

◆ prev() [2/2]

template<class TO, class FROM>
Reference< TO, FROM > const * Reference< TO, FROM >::prev ( ) const
inline

Definition at line 73 of file Reference.h.

References LinkedListElement::prev(), and Reference().

◆ sourceObjectDestroyLink()

◆ targetObjectBuildLink()

◆ targetObjectDestroyLink()

◆ unlink()

template<class TO, class FROM>
void Reference< TO, FROM >::unlink ( )
inline

Member Data Documentation

◆ iRefFrom

template<class TO, class FROM>
FROM* Reference< TO, FROM >::iRefFrom
private

Definition at line 18 of file Reference.h.

Referenced by GetSource(), link(), Reference(), and unlink().

◆ iRefTo

template<class TO, class FROM>
TO* Reference< TO, FROM >::iRefTo
private

Definition at line 17 of file Reference.h.

Referenced by getTarget(), invalidate(), isValid(), link(), operator->(), Reference(), and unlink().


The documentation for this class was generated from the following file:
  • src/server/shared/Dynamic/LinkedReference/Reference.h