Panda3D
cIntervalManager.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file cIntervalManager.I
10  * @author drose
11  * @date 2002-09-10
12  */
13 
14 /**
15  * Specifies a custom event queue to be used for throwing done events from
16  * intervals as they finish. If this is not specified, the global event queue
17  * is used.
18  *
19  * The caller maintains ownership of the EventQueue object; it is the caller's
20  * responsibility to ensure that the supplied EventQueue does not destruct
21  * during the lifetime of the CIntervalManager.
22  */
23 INLINE void CIntervalManager::
24 set_event_queue(EventQueue *event_queue) {
25  _event_queue = event_queue;
26 }
27 
28 /**
29  * Returns the custom event queue to be used for throwing done events from
30  * intervals as they finish.
31  */
33 get_event_queue() const {
34  return _event_queue;
35 }
36 
37 INLINE std::ostream &
38 operator << (std::ostream &out, const CIntervalManager &ival_mgr) {
39  ival_mgr.output(out);
40  return out;
41 }
void set_event_queue(EventQueue *event_queue)
Specifies a custom event queue to be used for throwing done events from intervals as they finish.
A queue of pending events.
Definition: eventQueue.h:29
This object holds a number of currently-playing intervals and is responsible for advancing them each ...
EventQueue * get_event_queue() const
Returns the custom event queue to be used for throwing done events from intervals as they finish.