The Sparta Modeling Framework
Loading...
Searching...
No Matches
SpartaSharedPointer.hpp File Reference

Defines the SpartaSharedPointer class used for garbage collection. More...

#include <cinttypes>
#include <cassert>
#include <type_traits>
#include "sparta/utils/Utils.hpp"
#include "sparta/utils/MetaStructs.hpp"
#include "sparta/utils/SpartaSharedPointerBaseAllocator.hpp"

Go to the source code of this file.

Classes

class  sparta::SpartaSharedPointer< PointerT >
 Used for garbage collection, will delete the object it points to when all objects are finished using it. More...
 
class  sparta::SpartaWeakPointer< PointerT >
 Like in STL, create a weak pointer to a SpartaSharedPointer. More...
 

Namespaces

namespace  sparta
 Macros for handling exponential backoff.
 

Functions

template<typename PtrT , typename Ptr2 >
bool sparta::operator== (const SpartaSharedPointer< PtrT > &ptr1, const SpartaSharedPointer< Ptr2 > &ptr2) noexcept
 
template<typename PtrT >
bool sparta::operator== (const SpartaSharedPointer< PtrT > &ptr1, std::nullptr_t) noexcept
 
template<typename PtrT >
bool sparta::operator== (std::nullptr_t, const SpartaSharedPointer< PtrT > &ptr1) noexcept
 
template<typename PtrT , typename Ptr2 >
bool sparta::operator!= (const SpartaSharedPointer< PtrT > &ptr1, const SpartaSharedPointer< Ptr2 > &ptr2) noexcept
 
template<typename PtrT >
bool sparta::operator!= (const SpartaSharedPointer< PtrT > &ptr1, std::nullptr_t) noexcept
 
template<typename PtrT >
bool sparta::operator!= (std::nullptr_t, const SpartaSharedPointer< PtrT > &ptr1) noexcept
 
template<typename PtrT >
std::ostream & sparta::operator<< (std::ostream &os, const SpartaSharedPointer< PtrT > &p)
 

Detailed Description

Defines the SpartaSharedPointer class used for garbage collection.

Definition in file SpartaSharedPointer.hpp.