Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ValueStorage< ptrSize, std::enable_if_t< detail::useBitPackedValueStorage< ptrSize > > > Class Template Reference

#include <value.hh>

Inheritance diagram for nix::ValueStorage< ptrSize, std::enable_if_t< detail::useBitPackedValueStorage< ptrSize > > >:
nix::detail::ValueBase nix::detail::ValueBase

Public Member Functions

 ValueStorage (const ValueStorage &other)
ValueStorage & operator= (const ValueStorage &other)
 ValueStorage (ValueStorage &&other) noexcept
ValueStorage & operator= (ValueStorage &&other) noexcept

Protected Member Functions

InternalType getInternalType () const noexcept
void getStorage (NixInt &integer) const noexcept
void getStorage (bool &boolean) const noexcept
void getStorage (Null &null) const noexcept
void getStorage (NixFloat &fpoint) const noexcept
void getStorage (ExternalValueBase *&external) const noexcept
void getStorage (PrimOp *&primOp) const noexcept
void getStorage (const Bindings *&attrs) const noexcept
void getStorage (List &list) const noexcept
void getStorage (Symbol &symbol) const noexcept
void getStorage (Failed *&failed) const noexcept
void setStorage (NixInt integer) noexcept
void setStorage (bool boolean) noexcept
void setStorage (Null path) noexcept
void setStorage (NixFloat fpoint) noexcept
void setStorage (ExternalValueBase *external) noexcept
void setStorage (PrimOp *primOp) noexcept
void setStorage (const Bindings *bindings) noexcept
void setStorage (List list) noexcept
void setStorage (Symbol symbol) noexcept
void setStorage (Failed *failed) noexcept
bool isAtomic ()

Static Protected Member Functions

static bool isAtomic ()

Additional Inherited Members

Public Types inherited from nix::detail::ValueBase
using SmallList = std::array<Value *, 2>

Detailed Description

template<std::size_t ptrSize>
class nix::ValueStorage< ptrSize, std::enable_if_t< detail::useBitPackedValueStorage< ptrSize > > >

Value storage that is optimized for 64 bit systems. Packs discriminator bits into the pointer alignment niches.

Member Function Documentation

◆ getInternalType()

template<std::size_t ptrSize>
InternalType nix::ValueStorage< ptrSize, std::enable_if_t< detail::useBitPackedValueStorage< ptrSize > > >::getInternalType ( ) const
inlineprotectednoexcept

Get internal type currently occupying the storage.


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