Package gbp :: Package rpm :: Module linkedlist :: Class LinkedListNode

[hide private]
[frames] | no frames]

# Class LinkedListNode

    object --+
             |
            LinkedListNode

Node of the linked list

Instance Methods | [hide private]

__init__(self, data=`'````'`, prev_node=None, next_node=None) x.__init__(...) initializes x; see help(type(x)) for signature |

__str__(self) str(x) |

set_data(self, data) Set data stored into node |

delete(self) Delete node |

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties | [hide private]

| data Get data stored into node
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, data=`'````'`, prev_node=None, next_node=None)
(Constructor)

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
  (inherited documentation)

### __str__(self)
(Informal representation operator)

str(x)

Overrides: object.__str__
  (inherited documentation)

### set_data(self, data)

Set data stored into node

    >>> node = LinkedListNode('foo')
    >>> node.data
    'foo'
    >>> node.set_data('bar')
    >>> node.data
    'bar'
    >>> node.set_data(None)
    >>> node.data
    ''

Property Details | [hide private]

### data

Get data stored into node

Get Method:
  unreachable.data(self) - Get data stored into node