Package rekall :: Module yaml_utils :: Class OrderedYamlDict
[frames] | no frames]

Class OrderedYamlDict

source code


A class which produces an ordered dict.

Nested Classes

Inherited from yaml.YAMLObject: __metaclass__, yaml_dumper, yaml_loader

Instance Methods

Inherited from collections.OrderedDict: __delitem__, __eq__, __init__, __iter__, __ne__, __reduce__, __repr__, __reversed__, __setitem__, clear, copy, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from dict: __cmp__, __contains__, __ge__, __getattribute__, __getitem__, __gt__, __le__, __len__, __lt__, __new__, __sizeof__, get, has_key

Inherited from object: __delattr__, __format__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods
 
to_yaml(cls, dumper, data)
Convert a Python object to a representation node.
source code
 
construct_mapping(cls, loader, node, deep=False)
Based on yaml.loader.BaseConstructor.construct_mapping.
source code
 
from_yaml(cls, loader, node)
Parse the yaml file into an OrderedDict so we can preserve order.
source code

Inherited from collections.OrderedDict: fromkeys

Class Variables
  yaml_tag = 'tag:yaml.org,2002:map'
hash(x)

Inherited from yaml.YAMLObject: yaml_flow_style

Inherited from dict: __hash__

Properties

Inherited from object: __class__

Method Details

to_yaml(cls, dumper, data)
Class Method

source code 

Convert a Python object to a representation node.

Overrides: yaml.YAMLObject.to_yaml
(inherited documentation)

from_yaml(cls, loader, node)
Class Method

source code 

Parse the yaml file into an OrderedDict so we can preserve order.

Overrides: yaml.YAMLObject.from_yaml