Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
TDoubleLink Class Template Reference
Similar to TLink, but also stores the inverse direction.
More...
#include <link.h>
Inheritance diagram for TDoubleLink:
[legend]Collaboration diagram for TDoubleLink:
[legend]List of all members.
Detailed Description
template<class X>
class TDoubleLink< X >
Similar to TLink, but also stores the inverse direction.
-
Author:
-
Marco Krohn <marco.krohn@gmx.de>
-
Version:
-
-
Id:
-
link.h,v 1.38 2002/05/15 08:30:55 ishark Exp
-
See also:
-
TLinkBase, TLink
This class is basically a link, but also stores the information about the owner of the TDoubleLink object. This makes it possible to get more information for a linked object, as you can see in the following example:
A subfleet uses a double link, which points to the used ship design. The ship design object has now the possibility via TLinkable::getLinkedByList to get the list of objects which points towards it. Refining leads to FIXME
Member Function Documentation
template<class X> |
TLinkable* TDoubleLink< X >::getInverse |
( |
|
) |
const [inline] |
|
|
-
Returns:
-
The object that owns
|
template<class X> |
virtual int2 TDoubleLink< X >::getType |
( |
|
) |
const [inline, virtual] |
|
|
-
Returns:
-
The type of the link, that means TLinkBase::DOUBLE_LINK in this case.
-
See also:
-
TLinkBase::getType()
Reimplemented from TLink. |
template<class X> |
void TDoubleLink< X >::setInverse |
( |
TLinkable * |
src |
) |
[inline] |
|
|
Sets the "source" of the link. -
Parameters:
-
src |
The object this link belongs to (a value of 0 means that this link is a null link (see TLinkBase for details). |
|
The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:19 2002 for Stellar Legacy by
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001