The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.graphnodeexpression.ExpressionContext Class Reference
Inheritance diagram for cma.graphnodeexpression.ExpressionContext:
Collaboration diagram for cma.graphnodeexpression.ExpressionContext:

Public Member Functions

def __init__ (self, objects, prefix=None)
 
def __str__ (self)
 
def keys (self)
 
def get (self, key, alternative=None)
 
def clear (self)
 
def items (self)
 
def __iter__ (self)
 
def __contains__ (self, key)
 
def has_key (self, key)
 
def __len__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 

Data Fields

 objects
 
 prefix
 
 values
 

Detailed Description

This class defines a context for an expression evaluation.
There are three parts to it:
    1)  A cache of values which have already been computed
    2)  A scope/context for expression evaluation - a default name prefix
    3)  A set of objects which implement the 'get' operation to be used in
        evaluating values of names

We act like a dict, implementing these member functions:
__iter__, __contains__, __len__, __getitem__ __setitem__, __delitem__,
get, keys, has_key, clear, items

Definition at line 219 of file graphnodeexpression.py.

Constructor & Destructor Documentation

def cma.graphnodeexpression.ExpressionContext.__init__ (   self,
  objects,
  prefix = None 
)

Definition at line 232 of file graphnodeexpression.py.

Member Function Documentation

def cma.graphnodeexpression.ExpressionContext.__contains__ (   self,
  key 
)
def cma.graphnodeexpression.ExpressionContext.__delitem__ (   self,
  key 
)
def cma.graphnodeexpression.ExpressionContext.__getitem__ (   self,
  key 
)
def cma.graphnodeexpression.ExpressionContext.__iter__ (   self)

Definition at line 310 of file graphnodeexpression.py.

References _ConfigContext.keys, cma.graphnodeexpression.ExpressionContext.keys(), and cma.AssimCclasses.pyConfigContext.keys().

Here is the call graph for this function:

def cma.graphnodeexpression.ExpressionContext.__len__ (   self)

Definition at line 324 of file graphnodeexpression.py.

References _ConfigContext.keys, cma.graphnodeexpression.ExpressionContext.keys(), and cma.AssimCclasses.pyConfigContext.keys().

Here is the call graph for this function:

def cma.graphnodeexpression.ExpressionContext.__setitem__ (   self,
  key,
  value 
)
def cma.graphnodeexpression.ExpressionContext.__str__ (   self)
def cma.graphnodeexpression.ExpressionContext.clear (   self)
def cma.graphnodeexpression.ExpressionContext.get (   self,
  key,
  alternative = None 
)
def cma.graphnodeexpression.ExpressionContext.has_key (   self,
  key 
)
def cma.graphnodeexpression.ExpressionContext.items (   self)

Definition at line 305 of file graphnodeexpression.py.

def cma.graphnodeexpression.ExpressionContext.keys (   self)
Return the complete set of keys in all our constituent objects

Definition at line 248 of file graphnodeexpression.py.

References cma.graphnodeexpression.ExpressionContext.objects.

Referenced by cma.graphnodeexpression.ExpressionContext.__iter__(), cma.graphnodes.JSONMapNode.__iter__(), cma.systemnode.SystemNode.__len__(), and cma.graphnodeexpression.ExpressionContext.__len__().

Here is the caller graph for this function:

Field Documentation

cma.graphnodeexpression.ExpressionContext.prefix

The documentation for this class was generated from the following file: