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
▼
The Sparta Modeling Framework
Sparta
►
Best Practices, Suggestions on using Sparta
Building and Integrating the Framework
Checkpointing
►
Command Command Line Interface
►
Communication, Events, and Scheduling
►
Core Example Using Sparta
►
Sparta Command Line Interface End-User Guide
►
Sparta FAQ
Sparta File Formats
►
Parameter/Configuration Format (.cfg,.yaml)
►
Report Definition Format (.rrep,.yaml)
►
Report Output Formats
Logging Output formats (.log, .log.raw, .log.basic, log.verbose)
►
Framework Development
►
Textual Message Logging
Sparta API
►
Simulator Configuration
►
Skeleton Pipeline Using Sparta
►
SystemC Models
Precedence operators for EventNode/Scheduleables
RegisterProxy Usage
Todo List
Deprecated List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
example
▼
sparta
►
app
►
collection
►
events
►
functional
►
kernel
►
log
►
memory
►
pevents
►
ports
►
resources
►
serialization
►
simulation
►
statistics
▼
utils
BitArray.hpp
Bits.hpp
►
BoundedValue.hpp
►
ByteOrder.hpp
►
Colors.hpp
►
DataContainer.hpp
►
DetectMemberUtils.hpp
Enum.hpp
►
FastList.hpp
►
File.hpp
►
IteratorTraits.hpp
KeyValue.hpp
►
LexicalCast.hpp
►
LifeTracker.hpp
►
LockedValue.hpp
LogUtils.hpp
MathUtils.hpp
►
MetaStructs.hpp
►
MetaTypeList.hpp
PointerUtils.hpp
►
Printing.hpp
Rational.hpp
►
SmartLexicalCast.hpp
►
SpartaAssert.hpp
►
SpartaException.hpp
SpartaExpBackoff.hpp
►
SpartaSharedPointer.hpp
SpartaSharedPointerAllocator.hpp
SpartaSharedPointerBaseAllocator.hpp
►
SpartaTester.hpp
►
StaticInit.hpp
StringManager.hpp
►
StringUtils.hpp
►
SysCSpartaSchedulerAdapter.hpp
►
Tag.hpp
TieredMap.hpp
TimeManager.hpp
►
Traits.hpp
►
TreeUtils.hpp
TupleHashCompute.hpp
Utils.hpp
►
ValidValue.hpp
VectorUtils.hpp
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
SpartaSharedPointerBaseAllocator.hpp
1
#pragma once
2
3
namespace
sparta
4
{
5
6
#ifndef DO_NOT_DOCUMENT
8
// Internals to support cross object allocation (derivative types)
9
// using Allocators. In a nutshell, if one SSP
10
// (SpartaSharedPointer) of the base type is being reclaimed via
11
// an allocator, we want to steer that deallocation to the correct
12
// deallocator.
13
template
<
class
Po
int
erT>
14
class
SpartaSharedPointer;
15
18
class
BaseAllocator {
19
public
:
20
virtual
~BaseAllocator() {}
21
22
struct
MemBlockBase {
23
MemBlockBase(BaseAllocator * alloc_in) : alloc(alloc_in) {}
24
virtual
~MemBlockBase() {}
25
BaseAllocator *
const
alloc =
nullptr
;
26
};
27
28
template
<
class
Po
int
erT>
29
friend
class
SpartaSharedPointer;
30
31
protected
:
32
// Release an object; release the block
33
virtual
void
releaseObject_(
void
* block)
const
noexcept
= 0;
34
virtual
void
releaseBlock_(
void
* block) = 0;
35
};
36
#endif
37
38
}
sparta
Macros for handling exponential backoff.
Definition
AppTriggers.hpp:22
sparta
utils
SpartaSharedPointerBaseAllocator.hpp
Generated on Tue Apr 8 2025 21:37:31 for The Sparta Modeling Framework by
1.12.0