The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::tracker::StateTrackerDeleter< T > Struct Template Reference

Custom Deleter of individual State Tracker Units. More...

#include <StateTracker.hpp>

Public Member Functions

 StateTrackerDeleter (const std::weak_ptr< StatePool< T > > &weak_pool)
 Construct the internal weak_ptr from a shared_ptr.
 
void operator() (StateTrackerUnit< T > *ptr) const
 

Public Attributes

std::weak_ptr< StatePool< T > > weak_pool_ptr_
 
bool valid_ {true}
 

Detailed Description

template<typename T>
struct sparta::tracker::StateTrackerDeleter< T >

Custom Deleter of individual State Tracker Units.

Definition at line 97 of file StateTracker.hpp.

Constructor & Destructor Documentation

◆ StateTrackerDeleter() [1/2]

template<typename T >
sparta::tracker::StateTrackerDeleter< T >::StateTrackerDeleter ( const std::weak_ptr< StatePool< T > > &  weak_pool)
inlineexplicit

Construct the internal weak_ptr from a shared_ptr.

Definition at line 102 of file StateTracker.hpp.

◆ StateTrackerDeleter() [2/2]

template<typename T >
sparta::tracker::StateTrackerDeleter< T >::StateTrackerDeleter ( )
inline

Definition at line 106 of file StateTracker.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
void sparta::tracker::StateTrackerDeleter< T >::operator() ( StateTrackerUnit< T > *  ptr) const
inline

Definition at line 108 of file StateTracker.hpp.

Member Data Documentation

◆ valid_

template<typename T >
bool sparta::tracker::StateTrackerDeleter< T >::valid_ {true}

Definition at line 122 of file StateTracker.hpp.

◆ weak_pool_ptr_

template<typename T >
std::weak_ptr<StatePool<T> > sparta::tracker::StateTrackerDeleter< T >::weak_pool_ptr_

Definition at line 121 of file StateTracker.hpp.


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