How to use the replication.share.yidl.src.yidl.target.Type.__init__ function in replication

To help you get started, we’ve selected a few replication examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xtreemfs / babudb / replication / share / yidl / src / yidl / target.py View on Github external
def __init__( self, *args, **kwds ):
        Type.__init__( self, *args, **kwds )
        self.__members = []
github xtreemfs / babudb / replication / share / yidl / src / yidl / target.py View on Github external
def __init__( self, scope, qname, tag, value_type ):
        Type.__init__( self, scope, qname, tag )
        self.__value_type = value_type
github xtreemfs / babudb / replication / share / yidl / src / yidl / target.py View on Github external
def __init__( self, scope, qname, tag=0, parent_type_names=None, members=[] ):
        Type.__init__( self, scope, qname, tag )
        self.__parent_type_names = parent_type_names is not None and parent_type_names or []
        if members is None: # A forward declaration or an undefined type
            self.__members = None
        else:
            self.__members = []            
            if len( members ) > 0:      
                for member in members:
                    assert isinstance( member, Declaration )
                    self.__members.append( member )
github xtreemfs / babudb / replication / share / yidl / src / yidl / target.py View on Github external
def __init__( self, scope, qname, tag, key_type, value_type ):
        assert isinstance( key_type, Type )
        assert isinstance( value_type, Type )
        Type.__init__( self, scope, qname, tag )        
        self.__key_type = key_type
        self.__value_type = value_type
github xtreemfs / babudb / replication / share / yidl / src / yidl / target.py View on Github external
def __init__( self, *args, **kwds ):
        Type.__init__( self, *args, **kwds )
        self.__enumerators = []