#include <attr-set.hh>
Public Types | |
using | value_type = Attr |
Public Member Functions | |
BindingsBuilder (EvalState &state, Bindings *bindings) | |
void | insert (Symbol name, Value *value, PosIdx pos=noPos) |
void | insert (const Attr &attr) |
void | push_back (const Attr &attr) |
Value & | alloc (Symbol name, PosIdx pos=noPos) |
Value & | alloc (std::string_view name, PosIdx pos=noPos) |
Bindings * | finish () |
Bindings * | alreadySorted () |
size_t | capacity () |
void | grow (Bindings *newBindings) |
Public Attributes | |
EvalState & | state |
Friends | |
struct | ExprAttrs |
A wrapper around Bindings that ensures that its always in sorted order at the end. The only way to consume a BindingsBuilder is to call finish(), which sorts the bindings.