y3c-stl 0.3.3
Friendly C++ STL wrapper with automatic stacktrace
Loading...
Searching...
No Matches
life_state Class Reference

#include <y3c/life.h>

Public Member Functions

 life_state (const void *begin, const void *end)
 
 life_state (const life_state &)=delete
 
life_stateoperator= (const life_state &)=delete
 
 life_state (life_state &&)=delete
 
life_stateoperator= (life_state &&)=delete
 
 ~life_state ()=default
 
void destroy ()
 
const void * begin () const
 
const void * end () const
 
void push_validator (const std::shared_ptr< life_validator > &v)
 
void update_range (const void *new_begin, const void *new_end, const void *invalidate_from=nullptr)
 
bool alive () const
 
bool in_range (const void *ptr) const
 
bool in_range_including_end (const void *ptr) const
 
bool in_range (const void *begin, const void *end) const
 
template<typename T >
std::size_t size () const
 
template<typename T >
std::ptrdiff_t index_of (T *ptr) const
 

Constructor & Destructor Documentation

◆ life_state() [1/3]

life_state ( const void *  begin,
const void *  end 
)
inline

◆ life_state() [2/3]

life_state ( const life_state )
delete

◆ life_state() [3/3]

life_state ( life_state &&  )
delete

◆ ~life_state()

~life_state ( )
default

Member Function Documentation

◆ alive()

bool alive ( ) const
inline

◆ begin()

const void * begin ( ) const
inline

◆ destroy()

void destroy ( )
inline

◆ end()

const void * end ( ) const
inline

◆ in_range() [1/2]

bool in_range ( const void *  begin,
const void *  end 
) const
inline

◆ in_range() [2/2]

bool in_range ( const void *  ptr) const
inline

◆ in_range_including_end()

bool in_range_including_end ( const void *  ptr) const
inline

◆ index_of()

template<typename T >
std::ptrdiff_t index_of ( T *  ptr) const
inline

◆ operator=() [1/2]

life_state & operator= ( const life_state )
delete

◆ operator=() [2/2]

life_state & operator= ( life_state &&  )
delete

◆ push_validator()

void push_validator ( const std::shared_ptr< life_validator > &  v)
inline

◆ size()

template<typename T >
std::size_t size ( ) const
inline

◆ update_range()

void update_range ( const void *  new_begin,
const void *  new_end,
const void *  invalidate_from = nullptr 
)
inline

The documentation for this class was generated from the following file: