liblloyal 1.0.0
Branched Inference for llama.cpp
Loading...
Searching...
No Matches
lloyal::branch::GrammarEntry Struct Reference

RAII entry for a grammar sampler in the registry. More...

#include <lloyal/branch.hpp>

Public Member Functions

 GrammarEntry ()=default
 
 ~GrammarEntry ()
 
 GrammarEntry (GrammarEntry &&o) noexcept
 
GrammarEntryoperator= (GrammarEntry &&o) noexcept
 
 GrammarEntry (const GrammarEntry &)=delete
 
GrammarEntryoperator= (const GrammarEntry &)=delete
 

Public Attributes

llama_sampler * sampler = nullptr
 

Detailed Description

RAII entry for a grammar sampler in the registry.

Owns the llama_sampler* for GBNF grammar constraints. Move-only.

Definition at line 190 of file branch.hpp.

Constructor & Destructor Documentation

◆ GrammarEntry() [1/3]

lloyal::branch::GrammarEntry::GrammarEntry ( )
default

◆ ~GrammarEntry()

lloyal::branch::GrammarEntry::~GrammarEntry ( )
inline

◆ GrammarEntry() [2/3]

lloyal::branch::GrammarEntry::GrammarEntry ( GrammarEntry &&  o)
inlinenoexcept

Definition at line 196 of file branch.hpp.

◆ GrammarEntry() [3/3]

lloyal::branch::GrammarEntry::GrammarEntry ( const GrammarEntry )
delete

Member Function Documentation

◆ operator=() [1/2]

GrammarEntry & lloyal::branch::GrammarEntry::operator= ( const GrammarEntry )
delete

◆ operator=() [2/2]

GrammarEntry & lloyal::branch::GrammarEntry::operator= ( GrammarEntry &&  o)
inlinenoexcept

Member Data Documentation

◆ sampler

llama_sampler* lloyal::branch::GrammarEntry::sampler = nullptr

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