Panda3D
 All Classes Functions Variables Enumerations
asyncTaskCollection.I
1 // Filename: asyncTaskCollection.I
2 // Created by: drose (16Sep08)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: AsyncTaskCollection::Destructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE AsyncTaskCollection::
22 ~AsyncTaskCollection() {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: AsyncTaskCollection::operator +=
27 // Access: Published
28 // Description: Appends the other list onto the end of this one.
29 ////////////////////////////////////////////////////////////////////
30 INLINE void AsyncTaskCollection::
32  add_tasks_from(other);
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: AsyncTaskCollection::operator +
37 // Access: Published
38 // Description: Returns a AsyncTaskCollection representing the
39 // concatenation of the two lists.
40 ////////////////////////////////////////////////////////////////////
42 operator + (const AsyncTaskCollection &other) const {
43  AsyncTaskCollection a(*this);
44  a += other;
45  return a;
46 }
void operator+=(const AsyncTaskCollection &other)
Appends the other list onto the end of this one.
A list of tasks, for instance as returned by some of the AsyncTaskManager query functions.
AsyncTaskCollection operator+(const AsyncTaskCollection &other) const
Returns a AsyncTaskCollection representing the concatenation of the two lists.
void add_tasks_from(const AsyncTaskCollection &other)
Adds all the AsyncTasks indicated in the other collection to this task.