iv::Link< Target > Class Template Reference

#include <Link.hpp>

Public Member Functions

 Link ()
 
 Link (Target *)
 
void set (Target *)
 
Target * get ()
 
Target * operator-> ()
 
Target * operator* ()
 

Detailed Description

template<class Target>
class iv::Link< Target >

Does not get automatically cleared when target is destroyed. Cleanup is responsibility of some kind of data manager which creates and destroys those instances. Autocleaned link could be implemented if needed, but should be used only when data manager is not suitable to ensure consistency.

Definition at line 16 of file Link.hpp.

Constructor & Destructor Documentation

◆ Link() [1/2]

template<class Target >
iv::Link< Target >::Link

Definition at line 6 of file Link.inl.

◆ Link() [2/2]

template<class Target >
iv::Link< Target >::Link ( Target *  target)

Definition at line 12 of file Link.inl.

Member Function Documentation

◆ set()

template<class Target >
void iv::Link< Target >::set ( Target *  tgt)

Definition at line 18 of file Link.inl.

◆ get()

template<class Target >
Target * iv::Link< Target >::get

Definition at line 24 of file Link.inl.

◆ operator->()

template<class Target >
Target * iv::Link< Target >::operator->

Definition at line 30 of file Link.inl.

◆ operator*()

template<class Target >
Target * iv::Link< Target >::operator*

Definition at line 36 of file Link.inl.


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