nngn
Loading...
Searching...
No Matches
anonymous_namespace{alloc.cpp}::allocation Class Reference

Public Types

using type = nngn::lua::type
 

Public Member Functions

constexpr std::size_t index (void) const
 
constexpr std::size_t size (void) const
 
constexpr void set (type t, std::size_t size)
 
constexpr void set_size (std::size_t size)
 

Static Public Member Functions

static constexpr std::size_t to_index (type t)
 

Private Attributes

std::size_t i
 

Static Private Attributes

static constexpr auto type_shift
 
static constexpr auto size_mask = (1_z << type_shift) - 1_z
 

Member Typedef Documentation

◆ type

using anonymous_namespace{alloc.cpp}::allocation::type = nngn::lua::type

Member Function Documentation

◆ index()

std::size_t anonymous_namespace{alloc.cpp}::allocation::index ( void ) const
inlineconstexpr

◆ set()

void anonymous_namespace{alloc.cpp}::allocation::set ( type t,
std::size_t size )
constexpr
Here is the call graph for this function:

◆ set_size()

void anonymous_namespace{alloc.cpp}::allocation::set_size ( std::size_t size)
constexpr
Here is the call graph for this function:

◆ size()

std::size_t anonymous_namespace{alloc.cpp}::allocation::size ( void ) const
inlineconstexpr
Here is the caller graph for this function:

◆ to_index()

std::size_t anonymous_namespace{alloc.cpp}::allocation::to_index ( type t)
staticconstexpr
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ i

std::size_t anonymous_namespace{alloc.cpp}::allocation::i
private

◆ size_mask

auto anonymous_namespace{alloc.cpp}::allocation::size_mask = (1_z << type_shift) - 1_z
staticconstexprprivate

◆ type_shift

auto anonymous_namespace{alloc.cpp}::allocation::type_shift
staticconstexprprivate
Initial value:
=
static constexpr auto n_types
Number of types for which allocations are tracked.
Definition alloc.h:41

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