Scenic v0.8.0 Scenic.Graph View Source
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %Scenic.Graph{ add_to: pos_integer(), ids: map(), next_uid: pos_integer(), primitives: map() }
Link to this section Functions
Link to this function
add(graph, primitive)
View Source
add(graph :: Scenic.Graph.t(), primitive :: Scenic.Primitive.t()) :: Scenic.Graph.t()
Link to this function
add(graph, primitive_module, primitive_data, opts \\ [])
View Source
add( graph :: Scenic.Graph.t(), module :: atom(), data :: any(), opts :: keyword() ) :: Scenic.Graph.t()
Link to this function
count(graph, id)
View Source
count(graph :: Scenic.Graph.t(), id :: any()) :: integer()
Link to this function
delete(graph, id)
View Source
delete(graph :: Scenic.Graph.t(), id :: any()) :: Scenic.Graph.t()
Link to this function
get!(graph, id)
View Source
get!(graph :: Scenic.Graph.t(), id :: any()) :: Scenic.Primitive.t()
Link to this function
get(graph, id)
View Source
get(graph :: Scenic.Graph.t(), id :: any()) :: [Scenic.Primitive.t()]
Link to this function
get_root(graph)
View Source
get_root(graph :: Scenic.Graph.t()) :: Scenic.Primitive.t()
Link to this function
map(graph, action)
View Source
map(graph :: Scenic.Graph.t(), action :: function()) :: Scenic.Graph.t()
Link to this function
map(graph, id, action)
View Source
map(graph :: Scenic.Graph.t(), id :: any(), action :: function()) :: Scenic.Graph.t()
Link to this function
modify(graph, id, action)
View Source
modify( graph :: Scenic.Graph.t(), id :: any(), action :: (... -> Scenic.Primitive.t()) ) :: Scenic.Graph.t()
Link to this function
reduce(graph, acc, action)
View Source
reduce(graph :: Scenic.Graph.t(), acc :: any(), action :: function()) :: any()
Link to this function
reduce(graph, id, acc, action)
View Source
reduce( graph :: Scenic.Graph.t(), id :: any(), acc :: any(), action :: function() ) :: any()