摘要 |
The present invention relates to a transaction algorithm for communications between objects using a smart pointer which performs safe data management and safe communications between objects by using the smart pointer. The transaction algorithm for communications between objects using a smart pointer applies the smart pointer to a message to give an automatic effectiveness when delivering an event through an EventServer (100) which is a class for transmitting and receiving the event and a class for managing and broadcasting the message at the same time, an EventClient (110) which is a class for transmitting and receiving the event, and an EventSender (120) which is class having a function to deliver the event. The transaction algorithm is a minimal transaction unit; can be used immediately or by providing time delay; adjusts reference count when being transmitted or a certain action is taken while an operator overwriting occurs; and is automatically adjusted or erased when being substituted while being used as a factor, or when becoming a target. |