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

Class NLWrapper

source code

object --+
         |
        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...



Instance Methods [hide private]
 
__init__(self, list, func)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_return_nodelist(self) source code
 
_gen_nodelist(self) source code
 
_create_nodelist(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, list, func)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)