Overte C++ Documentation
OctreeElementBag.h
1 //
2 // OctreeElementBag.h
3 // libraries/octree/src
4 //
5 // Created by Brad Hefta-Gaub on 4/25/2013.
6 // Copyright 2013 High Fidelity, Inc.
7 //
8 // This class is used by the Octree:encodeTreeBitstream() functions to store elements and element data that need to be sent.
9 // It's a generic bag style storage mechanism. But It has the property that you can't put the same element into the bag
10 // more than once (in other words, it de-dupes automatically).
11 //
12 // Distributed under the Apache License, Version 2.0.
13 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
14 //
15 
16 #ifndef hifi_OctreeElementBag_h
17 #define hifi_OctreeElementBag_h
18 
19 #include "OctreeElement.h"
20 
21 class OctreeElementExtraEncodeDataBase {
22 public:
23  OctreeElementExtraEncodeDataBase() {}
24 };
25 using OctreeElementExtraEncodeDataBasePointer = std::shared_ptr<OctreeElementExtraEncodeDataBase>;
26 using OctreeElementExtraEncodeData = QMap<const OctreeElement*, OctreeElementExtraEncodeDataBasePointer>;
27 
28 #endif // hifi_OctreeElementBag_h