nngn
Loading...
Searching...
No Matches
utils.lua File Reference

Functions

local function make_class (t, name, parent)
 
function Class class (_, arg)
 
function Class public (parent)
 
 setmetatable (Class, {__call=Class.class})
 
local function pprint (x, pre, write)
 
local function pformat (x)
 
local function print_mat4 (m)
 
local function get (t,...)
 
local function deep_copy_values (x)
 
local function map (t, f, iter)
 
local function fmt_time (ns, plus)
 
local function fmt_size (n)
 
local function shift (i, n, inc, base)
 
local function shift_table (v, t, d, inc, cmp)
 
local function find (t, x)
 
local function cmp (x, y) return not(y< x) end
 
local function lower_bound (t, x, f)
 
local function insert_sorted (t, x, f)
 
local function set_double_tap_interval (i) DOUBLE_TAP_INTERVAL
 
local function check_double_tap (t, key, shift)
 
local function reset_double_tap (key, shift)
 

Variables

local Class< const > = {}
 
local DOUBLE_TAP = {}
 
local DOUBLE_TAP_INTERVAL = 200
 
 pprint = pprint
 
 pformat = pformat
 
 print_mat4 = print_mat4
 
 get = get
 
 deep_copy_values = deep_copy_values
 
 map = map
 
 fmt_time = fmt_time
 
 fmt_size = fmt_size
 
 shift = shift
 
 shift_table = shift_table
 
 find = find
 
 lower_bound = lower_bound
 
 insert_sorted = insert_sorted
 
 get_double_tap_interval = get_double_tap_interval
 
 set_double_tap_interval = set_double_tap_interval
 
 check_double_tap = check_double_tap
 
 reset_double_tap = reset_double_tap
 

Function Documentation

◆ check_double_tap()

local function check_double_tap ( t ,
key ,
shift  )

◆ class()

function Class class ( _ ,
arg  )

◆ cmp()

local function cmp ( x ,
y  )
Here is the caller graph for this function:

◆ deep_copy_values()

local function deep_copy_values ( x )

◆ find()

local function find ( t ,
x  )

◆ fmt_size()

local function fmt_size ( n )

◆ fmt_time()

local function fmt_time ( ns ,
plus  )

◆ get()

local function get ( t ,
... )
Here is the call graph for this function:

◆ insert_sorted()

local function insert_sorted ( t ,
x ,
f  )

◆ lower_bound()

local function lower_bound ( t ,
x ,
f  )

◆ make_class()

local function make_class ( t ,
name ,
parent  )
Here is the caller graph for this function:

◆ map()

local function map ( t ,
f ,
iter  )

◆ pformat()

local function pformat ( x )

◆ pprint()

local function pprint ( x ,
pre ,
write  )

◆ print_mat4()

local function print_mat4 ( m )

◆ public()

function Class public ( parent )

◆ reset_double_tap()

local function reset_double_tap ( key ,
shift  )

◆ set_double_tap_interval()

local function set_double_tap_interval ( i )

◆ setmetatable()

setmetatable ( Class ,
{__call=Class.class}  )

◆ shift()

local function shift ( i ,
n ,
inc ,
base  )

◆ shift_table()

local function shift_table ( v ,
t ,
d ,
inc ,
cmp  )

Variable Documentation

◆ check_double_tap

check_double_tap = check_double_tap

◆ Class< const >

local Class< const > = {}

◆ deep_copy_values

deep_copy_values = deep_copy_values

◆ DOUBLE_TAP

local DOUBLE_TAP = {}

◆ DOUBLE_TAP_INTERVAL

local DOUBLE_TAP_INTERVAL = 200

◆ find

find = find

◆ fmt_size

fmt_size = fmt_size

◆ fmt_time

fmt_time = fmt_time

◆ get

get = get

◆ get_double_tap_interval

local function get_double_tap_interval = get_double_tap_interval

◆ insert_sorted

insert_sorted = insert_sorted

◆ lower_bound

lower_bound = lower_bound

◆ map

map = map

◆ pformat

pformat = pformat

◆ pprint

pprint = pprint

◆ print_mat4

print_mat4 = print_mat4

◆ reset_double_tap

reset_double_tap = reset_double_tap

◆ set_double_tap_interval

set_double_tap_interval = set_double_tap_interval

◆ shift

shift = shift

◆ shift_table

shift_table = shift_table