Package SCons :: Module Subst :: Class NLWrapper
[show private | hide private]
[frames | no frames]

Class NLWrapper


A wrapper class that delays turning a list of sources or targets into a NodeList until it's needed. The specified function supplied when the object is initialized is responsible for turning raw nodes into proxies that implement the special attributes like .abspath, .source, etc. This way, we avoid creating those proxies just "in case" someone is going to use $TARGET or the like, and only go through the trouble if we really have to.

In practice, this might be a wash performance-wise, but it's a little cleaner conceptually...


Method Summary
  __init__(self, list, func)
  _create_nodelist(self)
  _gen_nodelist(self)
  _return_nodelist(self)

Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net