Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Bindings Class Reference

#include <attr-set.hh>

Public Types

typedef uint32_t size_t
 
typedef Attriterator
 
typedef const Attrconst_iterator
 

Public Member Functions

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

Public Attributes

PosIdx pos
 

Friends

class EvalState
 

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.

Friends And Related Symbol Documentation

◆ EvalState

friend class EvalState
friend

EvalErrorBuilders may only be constructed by EvalState. The debugThrow method must be the final method in any such EvalErrorBuilder usage, and it handles deleting the object.


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