Skip to content

Class endstone::NotNull

template <class T>

ClassList > endstone > NotNull

Public Types

Type Name
typedef std::shared_ptr< T > pointer_type

Public Functions

Type Name
NotNull () = delete
NotNull (std::shared_ptr< T > ptr)
NotNull (const NotNull & other) = default
NotNull (std::nullptr_t) = delete
const pointer_type & get () noexcept const
T & operator* () noexcept const
NotNull & operator++ () = delete
NotNull operator++ (int) = delete
NotNull & operator+= (std::ptrdiff_t) = delete
NotNull & operator-- () = delete
NotNull operator-- (int) = delete
NotNull & operator-= (std::ptrdiff_t) = delete
T * operator-> () noexcept const
NotNull & operator= (const NotNull & other) = default
NotNull & operator= (std::nullptr_t) = delete
void operator[] (std::ptrdiff_t) const
void swap (NotNull & other) noexcept

Public Types Documentation

typedef pointer_type

using endstone::NotNull< T >::pointer_type =  std::shared_ptr<T>;

Public Functions Documentation

function NotNull [¼]

endstone::NotNull::NotNull () = delete

function NotNull [2/4]

inline endstone::NotNull::NotNull (
    std::shared_ptr< T > ptr
) 

function NotNull [¾]

endstone::NotNull::NotNull (
    const  NotNull & other
) = default

function NotNull [4/4]

endstone::NotNull::NotNull (
    std::nullptr_t
) = delete

function get

inline const pointer_type & endstone::NotNull::get () noexcept const

function operator*

inline T & endstone::NotNull::operator* () noexcept const

function operator++

NotNull & endstone::NotNull::operator++ () = delete

function operator++

NotNull endstone::NotNull::operator++ (
    int
) = delete

function operator+=

NotNull & endstone::NotNull::operator+= (
    std::ptrdiff_t
) = delete

function operator--

NotNull & endstone::NotNull::operator-- () = delete

function operator--

NotNull endstone::NotNull::operator-- (
    int
) = delete

function operator-=

NotNull & endstone::NotNull::operator-= (
    std::ptrdiff_t
) = delete

function operator->

inline T * endstone::NotNull::operator-> () noexcept const

function operator=

NotNull & endstone::NotNull::operator= (
    const  NotNull & other
) = default

function operator=

NotNull & endstone::NotNull::operator= (
    std::nullptr_t
) = delete

function operator[]

void endstone::NotNull::operator[] (
    std::ptrdiff_t
) const

function swap

inline void endstone::NotNull::swap (
    NotNull & other
) noexcept


The documentation for this class was generated from the following file include/endstone/util/pointers.h