API Documentation
Loading...
Searching...
No Matches
ResourceMirror< t_type > Class Template Reference

Creates logic that mirrors two resources. Meaning changing either resource will modify the other resource. More...

#include <ResourceMirror.h>

Inheritance diagram for ResourceMirror< t_type >:
[legend]
Collaboration diagram for ResourceMirror< t_type >:
[legend]

Public Member Functions

virtual void addInfoParent (const ResourceBase *info) override
 
virtual void onValueChanged () override
 
virtual void removeInfoParent (const ResourceBase *info) override
 
 ResourceMirror (Resource< t_type > &a, Resource< t_type > &b)
 
virtual ~ResourceMirror ()
 
- Public Member Functions inherited from ResourceListener
void changeValue ()
 
void disable (bool disable)
 
void disconnectListener ()
 
uint04 getInfoParentSize () const
 
 ResourceListener ()
 
virtual ~ResourceListener ()
 

Public Attributes

Resource< t_type > & a
 
Resource< t_type > & b
 
t_type value
 

Detailed Description

template<class t_type>
class NDEVR::ResourceMirror< t_type >

Creates logic that mirrors two resources. Meaning changing either resource will modify the other resource.


Constructor & Destructor Documentation

◆ ResourceMirror()

template<class t_type >
ResourceMirror ( Resource< t_type > & a,
Resource< t_type > & b )
inline

◆ ~ResourceMirror()

template<class t_type >
virtual ~ResourceMirror ( )
inlinevirtual

Member Function Documentation

◆ addInfoParent()

template<class t_type >
virtual void addInfoParent ( const ResourceBase * info)
inlineoverridevirtual

Reimplemented from ResourceListener.

◆ onValueChanged()

template<class t_type >
virtual void onValueChanged ( )
inlineoverridevirtual

Implements ResourceListener.

◆ removeInfoParent()

template<class t_type >
virtual void removeInfoParent ( const ResourceBase * info)
inlineoverridevirtual

Reimplemented from ResourceListener.

Member Data Documentation

◆ a

template<class t_type >
Resource<t_type>& a

◆ b

template<class t_type >
Resource<t_type>& b

◆ value

template<class t_type >
t_type value

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