TextFSM.Engine.Memory (TextFSM v0.1.2)

Copy Markdown View Source

Summary

Types

finalized_table()

@type finalized_table() :: %{required(value_name()) => [finalized_value()]}

finalized_value()

@type finalized_value() :: nil | String.t() | [String.t()]

key()

@type key() :: row()

key_group()

@type key_group() :: MapSet.t(key())

key_group_to_pending_rows()

@type key_group_to_pending_rows() :: %{required(key_group()) => [row()]}

key_group_to_row_idx()

@type key_group_to_row_idx() :: %{required(key_group()) => row_idx()}

match()

@type match() :: nil | String.t()

row()

@type row() :: %{required(value_name()) => value()}

row_idx()

@type row_idx() :: non_neg_integer()

t()

@type t() :: %TextFSM.Engine.Memory{
  accumulator: row(),
  key_group_to_pending_rows: term(),
  key_group_to_row_idx: key_group_to_row_idx(),
  match_constraints: TextFSM.Engine.MatchConstraints.t(),
  num_rows: non_neg_integer(),
  table: table()
}

table()

@type table() :: %{required(value_name()) => [value()]}

value()

@type value() :: nil | :fillup | String.t() | [String.t()]

value_name()

@type value_name() :: String.t()

Functions

clear(memory)

@spec clear(t()) :: t()

clear_all(memory)

@spec clear_all(t()) :: t()

collect(memory, value_name, match)

@spec collect(t(), value_name(), match()) :: t()

finalize(memory)

@spec finalize(t()) :: finalized_table()

new(value_definitions)

record(memory, eof_state? \\ false)

@spec record(t(), boolean()) :: t()