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

Public Types

using type = nngn::lua::type
 
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)
 
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)
 
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 [1/2]

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

◆ type [2/2]

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

Member Function Documentation

◆ index() [1/2]

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

◆ index() [2/2]

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

◆ set() [1/2]

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

◆ set() [2/2]

constexpr void anonymous_namespace{alloc.cpp}::allocation::set ( type  t,
std::size_t  size 
)
constexpr

◆ set_size() [1/2]

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

◆ set_size() [2/2]

constexpr void anonymous_namespace{alloc.cpp}::allocation::set_size ( std::size_t  size)
constexpr

◆ size() [1/2]

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

◆ size() [2/2]

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

◆ to_index() [1/2]

constexpr 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:

◆ to_index() [2/2]

static constexpr std::size_t anonymous_namespace{alloc.cpp}::allocation::to_index ( type  t)
staticconstexpr

Member Data Documentation

◆ i

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

◆ size_mask

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

◆ type_shift

static constexpr 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 files: