Mobile API Reference  MicroStrategy 2019
StrongObj.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : StrongObj.h
3 // AUTHOR : Juan Pablo Muraira
4 // CREATION : 9/26/01
5 // Copyright (C) MicroStrategy Incorporated 2001
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MBase_StrongObj_h
9 #define MBase_StrongObj_h
10 
11 #include "StrongBase.h"
12 
13 namespace MBase
14 {
19  template<class T,class DeleteOperator>
20  class StrongObj:public StrongBase<T,DeleteOperator>
21  {
22  public:
23  explicit StrongObj(T ipData = NULL) throw() : StrongBase<T,DeleteOperator>(ipData)
24  {
25  }
26 
27  void Acquire(StrongObj<T, DeleteOperator>& iStrongObj) throw()
28  {
29  Reset(iStrongObj.GiveUp());
30  }
31 
32  void Acquire(T& irData) throw()
33  {
34  Reset(irData);
35  irData=NULL;
36  }
37  };
38 }
39 
40 #endif // MBase_StrongObj_h
Definition: StrongObj.h:20
StrongObj(T ipData=NULL)
Definition: StrongObj.h:23
void Acquire(T &irData)
Definition: StrongObj.h:32
void Acquire(StrongObj< T, DeleteOperator > &iStrongObj)
Definition: StrongObj.h:27
void Reset(T iData=NULL)
Definition: StrongBase.h:43
Definition: Allocator.h:47
Definition: StrongBase.h:23
#define NULL
Definition: Null.h:10