bitmap v1.0.1 Bitmap behaviour

Defines behaviour of a Bitmap, which can be implemented by the user. We provide implementations using Binary and Integers.

This behavior has been designed to be pipe-friendly, so pipe ‘em up.

Methods are delegated to the default implementation which is currently, integer - Bitmap.Integer.

Summary

Types

argt()
argt() :: non_neg_integer | list | Range.t
bit()
bit() :: 1 | 0
bitmap()
bitmap() :: binary | Bitmap.Integer.t
index()
index() :: non_neg_integer

Functions

at(bitmap, index)

See Bitmap.Integer.at/2.

inspect(bitmap)

See Bitmap.Integer.inspect/1.

new(argument)

See Bitmap.Integer.new/1.

set(bitmap, index)

See Bitmap.Integer.set/2.

set?(bitmap, index)

See Bitmap.Integer.set?/2.

set_all(bitmap)

See Bitmap.Integer.set_all/1.

to_string(bitmap)

See Bitmap.Integer.to_string/1.

toggle(bitmap, index)

See Bitmap.Integer.toggle/2.

toggle_all(bitmap)

See Bitmap.Integer.toggle_all/1.

unset(bitmap, index)

See Bitmap.Integer.unset/2.

unset?(bitmap, index)

See Bitmap.Integer.unset?/2.

unset_all(bitmap)

See Bitmap.Integer.unset_all/1.

Callbacks

at(bitmap, index)
at(bitmap, index) :: bit
inspect(bitmap)
inspect(bitmap) :: String.t
new(argt)
new(argt) :: any
set(bitmap, index)
set(bitmap, index) :: bitmap
set?(bitmap, index)
set?(bitmap, index) :: boolean
set_all(bitmap)
set_all(bitmap) :: bitmap
to_string(bitmap)
to_string(bitmap) :: String.t
toggle(bitmap, index)
toggle(bitmap, index) :: bitmap
toggle_all(bitmap)
toggle_all(bitmap) :: bitmap
unset(bitmap, index)
unset(bitmap, index) :: bitmap
unset?(bitmap, index)
unset?(bitmap, index) :: boolean
unset_all(bitmap)
unset_all(bitmap) :: bitmap