Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Bindings Class Reference

#include <attr-set.hh>

Public Types

using Size = uint32_t
typedef Attriterator

Public Member Functions

Size size () const
bool empty () const
void push_back (const Attr &attr)
iterator find (Symbol name)
Attrget (Symbol name)
iterator begin ()
iterator end ()
Attroperator[] (Size pos)
void sort ()
Size capacity ()
std::vector< const Attr * > lexicographicOrder (const SymbolTable &symbols) const

Public Attributes

PosIdx pos

Static Public Attributes

static Bindings EMPTY {0}

Friends

class EvalMemory

Detailed Description

Bindings contains all the attributes of an attribute set. It is defined by its size and its capacity, the capacity being the number of Attr elements allocated after this structure, while the size corresponds to the number of elements already inserted in this structure.

Member Function Documentation

◆ lexicographicOrder()

std::vector< const Attr * > nix::Bindings::lexicographicOrder ( const SymbolTable & symbols) const
inline

Returns the attributes in lexicographically sorted order.


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