HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GOP_AdhocGroup.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  */
7 #ifndef __GOP_AdhocGroup_h__
8 #define __GOP_AdhocGroup_h__
9 
10 #include "GOP_API.h"
11 #include <SYS/SYS_Types.h>
12 
13 class GA_Group;
14 
16 {
17 public:
19 
20  GOP_AdhocGroup(GA_Group *group, bool ownedbyme)
21  : myGroup(group)
22  , myOwnedByMe(ownedbyme)
23  {}
24 
25  bool operator==(const GOP_AdhocGroup &g) const
26  {
27  return (myGroup == g.myGroup &&
28  myOwnedByMe == g.myOwnedByMe);
29  }
30 
31  GOP_AdhocGroup &operator=(const GOP_AdhocGroup &g) = default;
32 
33  // This method will destroy the adhoc group from the gdp.
34  // It should return true if it actually removes a group
35  // from the gdp, or false otherwise.
36  bool destroyAdhocGroup();
37 
38  int64 getMemoryUsage(bool inclusive) const;
39 
40 public:
43 };
44 
45 #endif
bool operator==(const GOP_AdhocGroup &g) const
GLboolean GLboolean g
Definition: glcorearb.h:1221
#define GOP_API
Definition: GOP_API.h:10
long long int64
Definition: SYS_Types.h:107
GOP_AdhocGroup(GA_Group *group, bool ownedbyme)
GA_Group * myGroup