CMS 3D CMS Logo

Public Member Functions

python::Node::Node Class Reference

Inheritance diagram for python::Node::Node:
python::Node::LeafNode

List of all members.

Public Member Functions

def __getattr__
def __init__
def __repr__
def __setattr__
def empty

Detailed Description

Definition at line 1 of file Node.py.


Constructor & Destructor Documentation

def python::Node::Node::__init__ (   self)
__init__

Reimplemented in python::Node::LeafNode.

Definition at line 2 of file Node.py.

00003                         :
00004         """__init__
00005         """
00006         self.__dict__.setdefault('nodeid',0)
00007         self.__dict__.setdefault('nodelabel','ROOT')
00008         self.__dict__.setdefault('lft',0)
00009         self.__dict__.setdefault('rgt',0)
00010         self.__dict__.setdefault('parentid',0)
00011         self.__dict__.setdefault('globalsince',0)
00012         self.__dict__.setdefault('globaltill',0)
        self.__dict__.setdefault('tagid',0)

Member Function Documentation

def python::Node::Node::__getattr__ (   self,
  name 
)

Definition at line 21 of file Node.py.

00022                                  :
00023         if not name in self.__dict__:
00024             raise AttributeError("Unknown attribute "+name)
        return self.__dict__[name]
def python::Node::Node::__repr__ (   self)
__repr__

Reimplemented in python::Node::LeafNode.

Definition at line 13 of file Node.py.

00014                         :
00015         """__repr__
00016         """
        return self.__dict__.__repr__()
def python::Node::Node::__setattr__ (   self,
  name,
  value 
)

Definition at line 17 of file Node.py.

00018                                         :
00019         if not name in self.__dict__:
00020             raise AttributeError("Unknown attribute "+name)
        self.__dict__[name]=value
def python::Node::Node::empty (   self)

Definition at line 25 of file Node.py.

00026                      :
00027         if self.__dict__['nodelabel']=='':
00028             return True
        return False