Package pyplusplus :: Package code_creators :: Module registration_based |

# Source Code for Module pyplusplus.code_creators.registration_based

     1  # Copyright 2004-2008 Roman Yakovenko.
     2  # Distributed under the Boost Software License, Version 1.0. (See
     3  # accompanying file LICENSE_1_0.txt or copy at
     4  # http://www.boost.org/LICENSE_1_0.txt)
     5
     6  import algorithm
     7  import code_creator
     8
     9 -class registration_based_t(code_creator.code_creator_t):
    10      """Code creator that is based on a declaration.
    11      """
    12 -    def __init__(self, associated_decl_creators=None ):
    13          code_creator.code_creator_t.__init__(self)
    14          if None is associated_decl_creators:
    15              associated_decl_creators = []
    16          self._associated_decl_creators = associated_decl_creators
    17
    18      @property
    19 -    def associated_decl_creators( self ):
    20          """ references to global declaration code creators. """
    21          return self._associated_decl_creators
    22