14#ifndef POINTERTOVOID_H
15#define POINTERTOVOID_H
33class EXPCL_PANDA_EXPRESS PointerToVoid :
public MemoryBase {
35 constexpr PointerToVoid()
noexcept =
default;
39 PointerToVoid(
const PointerToVoid ©) =
delete;
43 INLINE
size_t get_hash()
const;
48 INLINE
bool operator < (
const void *other)
const;
49 INLINE
bool operator < (
const PointerToVoid &other)
const;
51 INLINE
bool operator == (
const PointerToVoid &other)
const;
52 INLINE
bool operator != (
const PointerToVoid &other)
const;
54 INLINE
void swap(PointerToVoid &other)
noexcept;
66 AtomicAdjust::Pointer _void_ptr =
nullptr;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
void swap(PointerToVoid &other) noexcept
Swaps the contents of this PointerTo with the other, without touching the reference counts.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.