C4 Engine
C4 Engine API Documentation

class LinkTarget

Defined in:  TSLink.h
The LinkTarget class template is the base class for objects that can be the target of a smart pointer.
Definition

template <class type> class LinkTarget

Member Functions
LinkTarget::GetFirstLink Returns the first link that points to an object.
LinkTarget::BreakAllLinks Breaks all links that point to an object.
Template Parameters
type The type of the subclass to which a link may point.
Constructor

LinkTarget();

Description
The LinkTarget class template stores a list of Link objects that each currently point to the object of which the LinkTarget class is a base class. A class of type T inherits from LinkTarget<T> to allow it to be the target of an object of type Link<T>. When the LinkTarget object is destroyed, all of the links currently pointing to it are automatically cleared to nullptr.
See Also

Link