refactor BaseSignal class. 02/244202/5
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Tue, 15 Sep 2020 06:00:03 +0000 (15:00 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 7 Oct 2020 00:37:53 +0000 (09:37 +0900)
commit09b61c9c918b31ed4d3f6f8a71bec17f21e6692f
treebf4d8f4d92fb851b5a52de2352b6fbea5ea9abbe
parent7864f227ba3147b097c8b222e62a92b6ea6e22ef
refactor BaseSignal class.

- replace Dali::Vector<SignalConnection*> with std::vector<SignalConnection>
- Fixed Empty() and GetConnectionCount() implementaion complexity from O(n) to O(1).
- move trivial functions to header to make them inline.
- use erase-remove idiom to cleanup the empty connections.

Change-Id: I941bcf6b0b27a14d29a316f005f37bfca44c3530
dali/public-api/signals/base-signal.cpp
dali/public-api/signals/base-signal.h