StateDictManager#

class braincore.StateDictManager#

State stack, for collecting all State used in the program.

StateDictManager supports all features of python dict.

assign_values(*args)[source]#

Assign the value for each element according to the given data.

Return type:

None

collect_values()[source]#

Collect the values by the given types.

Return type:

Dict

split(first, *others)[source]#

Split the stack into subsets of stack by the given types.

Return type:

Tuple[StateDictManager, ...]

split_values(*filters)[source]#

Split the values into several subsets of stack by the given types.

Return type:

Tuple[Dict, ...]

to_dict_values()[source]#

Convert the values into a dict.

Return type:

Dict