HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
32  {
33  myGroup = g.myGroup;
34  myOwnedByMe = g.myOwnedByMe;
35  return *this;
36  }
37 
38  // This method will destroy the adhoc group from the gdp.
39  // It should return true if it actually removes a group
40  // from the gdp, or false otherwise.
41  bool destroyAdhocGroup();
42 
43  int64 getMemoryUsage(bool inclusive) const;
44 
45 public:
48 };
49 
50 #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:100
GOP_AdhocGroup(GA_Group *group, bool ownedbyme)
GOP_AdhocGroup & operator=(const GOP_AdhocGroup &g)
GA_Group * myGroup