The Sparta Modeling Framework
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
i
l
n
o
r
s
t
w
y
Functions
a
b
c
d
f
g
i
l
n
o
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Enumerations
Enumerator
c
i
n
o
t
u
v
Related Symbols
a
b
c
d
f
m
o
p
q
r
s
t
v
Files
File List
File Members
All
a
c
d
e
g
h
o
p
r
s
t
v
Functions
Enumerations
Macros
a
c
d
e
h
p
r
s
t
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
LifeTracker.hpp
Go to the documentation of this file.
1
// <LifeTracker.h> -*- C++ -*-
2
3
9
#pragma once
10
11
#include <memory>
12
13
namespace
sparta
14
{
15
namespace
utils
16
{
66
template
<
class
TrackedObjectT>
67
class
LifeTracker
:
public
std::shared_ptr<LifeTracker<TrackedObjectT> >
68
{
69
public
:
70
LifeTracker
(TrackedObjectT * obj) :
71
std::shared_ptr<LifeTracker<TrackedObjectT>>(
this
, [] (
LifeTracker<TrackedObjectT>
*) {}),
72
tracked_object(obj)
73
{}
74
75
TrackedObjectT * tracked_object;
76
};
67
class
LifeTracker
:
public
std::shared_ptr<LifeTracker<TrackedObjectT> > {
…
};
77
78
}
79
}
80
sparta::utils::LifeTracker
A class that will track the lifetime of the object it points to.
Definition
LifeTracker.hpp:68
sparta
Macros for handling exponential backoff.
Definition
AppTriggers.hpp:22
sparta
utils
LifeTracker.hpp
Generated on Thu Apr 24 2025 21:27:31 for The Sparta Modeling Framework by
1.12.0