OpenNI 1.5.4
XnNodeAllocator.h
Go to the documentation of this file.
1 /****************************************************************************
2 * *
3 * OpenNI 1.x Alpha *
4 * Copyright (C) 2011 PrimeSense Ltd. *
5 * *
6 * This file is part of OpenNI. *
7 * *
8 * OpenNI is free software: you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published *
10 * by the Free Software Foundation, either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * OpenNI is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with OpenNI. If not, see <http://www.gnu.org/licenses/>. *
20 * *
21 ****************************************************************************/
22 #ifndef _NISIMPLENODEALLOCATOR_H
23 #define _NISIMPLENODEALLOCATOR_H
24 
25 #include <IXnNodeAllocator.h>
26 #include <XnNode.h>
27 
28 class XnNodeAllocator : public INiNodeAllocator
29 {
30 public:
36  virtual XnNode *Allocate() { return XnNode::Allocate(); }
37 
43  virtual void Deallocate(XnNode *pNode) { XnNode::Deallocate(pNode); }
44 };
45 
46 #endif //_NISIMPLENODEALLOCATOR_H
XnNode::Allocate
static XnNode * Allocate()
Definition: XnNode.h:58
IXnNodeAllocator.h
XnNodeAllocator
Definition: XnNodeAllocator.h:27
XnNodeAllocator::Allocate
virtual XnNode * Allocate()
Definition: XnNodeAllocator.h:54
INiNodeAllocator
Definition: IXnNodeAllocator.h:32
XnNode.h
XnNode::Deallocate
static void Deallocate(XnNode *pNode)
Definition: XnNode.h:59
XnNodeAllocator::Deallocate
virtual void Deallocate(XnNode *pNode)
Definition: XnNodeAllocator.h:61
XnNode
Definition: XnNode.h:36