View Source vdist_atom_cache (erldist_filter v1.28.5)
Summary
Types
-type index() :: 0..2047.
-type t() :: #vdist_atom_cache{entries :: orddict:orddict(vdist_atom_cache:index(), atom())}.
Functions
-spec diff(t(), t()) -> #{del := ordsets:ordset(atom()), add := ordsets:ordset(atom())}.
-spec fill() -> t().
-spec fill(t(), non_neg_integer()) -> t().
-spec find(Cache, Atom) -> {ok, {Index, Atom}} | {error, Reason} when Cache :: t(), Atom :: atom(), Index :: index(), Reason :: not_found | {already_present, {Index, OtherAtom}}, OtherAtom :: atom(); (Cache, Index) -> {ok, {Index, Atom}} | {error, Reason} when Cache :: t(), Atom :: atom(), Index :: index(), Reason :: not_found.
-spec insert(t(), non_neg_integer(), atom()) -> {ok, {non_neg_integer(), atom()}, t()}.
-spec new() -> Cache when Cache :: t().