DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExp::Resource< PointerType > Struct Template Reference

Defines a DynExp resource, which mainly owns a DynExp::Object instance wrapping a pointer to it. More...

Public Member Functions

template<typename ResourcePointerT >
 Resource (ResourcePointerT &&ResourcePointer)
 Constructs a Resource instance. More...
 

Public Attributes

PointerType ResourcePointer
 Pointer to the DynExp::Object instance owned by this resource. More...
 
std::unique_ptr< QTreeWidgetItem > TreeWidgetItem
 For visualization of the resource and its state in DynExp's main window (DynExpManager). Can be modified by DynExpManager even for const Resource instances since DynExpManager manages this QTreeWidgetItem. More...
 

Detailed Description

template<typename PointerType>
struct DynExp::Resource< PointerType >

Defines a DynExp resource, which mainly owns a DynExp::Object instance wrapping a pointer to it.

Template Parameters
PointerTypeType of the pointer pointing to the DynExp::Object instance

Definition at line 23 of file Managers.h.

Constructor & Destructor Documentation

◆ Resource()

template<typename PointerType >
template<typename ResourcePointerT >
DynExp::Resource< PointerType >::Resource ( ResourcePointerT &&  ResourcePointer)
inline

Constructs a Resource instance.

Template Parameters
ResourcePointerTType of the pointer to perfectly forward to the constructor of ResourcePointer.
Parameters
ResourcePointerPointer to a DynExp object (e.g. DynExp::ModulePtrType) to initialize ResourcePointer with.

Definition at line 33 of file Managers.h.

Member Data Documentation

◆ ResourcePointer

template<typename PointerType >
PointerType DynExp::Resource< PointerType >::ResourcePointer

Pointer to the DynExp::Object instance owned by this resource.

Definition at line 36 of file Managers.h.

◆ TreeWidgetItem

template<typename PointerType >
std::unique_ptr<QTreeWidgetItem> DynExp::Resource< PointerType >::TreeWidgetItem
mutable

For visualization of the resource and its state in DynExp's main window (DynExpManager). Can be modified by DynExpManager even for const Resource instances since DynExpManager manages this QTreeWidgetItem.

Definition at line 43 of file Managers.h.


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