区块链学习笔记

Relationship of object/object_id

2018-08-09  本文已影响0人  杨小伟的世界


    object
    +-----------------------------------------------+
    |space_id                                       |       typedef object_id<protocol_ids, limit_order_object_type,limit_order_object>;
    |type_id                                        |       limit_order_id_type
    |id                                   <---------|------>+-----------------------------------+
    |    (object_id_type)                           |       |space_id = protocol_ids            |
    +-----------------------------------------------+       |type_id = limit_order_object_type  |
                            ^                               |instance                           |
                            |                               +-----------------------------------+
                            |
                            |
    abstract_object
    +-----------------------------------------------+
    |pack()                                         |
    |hash()                                         |
    |                                               |
    +-----------------------------------------------+
                            ^
                            |
                            |
    limit_order_object      |
    +-----------------------------------------------+
    |space_id = protocol_ids                        |
    |type_id = limit_order_object_type              |
    +-----------------------------------------------+

上一篇下一篇

猜你喜欢

热点阅读