Atoms Crowd  7.0.0
BlackboardValue.h
1 #pragma once
2 // ===========================================================================
3 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
4 //
5 // Use of this software is subject to the terms of the Toolchefs license
6 // agreement provided at the time of installation or download, or which
7 // otherwise accompanies this software in either electronic or hard copy form.
8 // ===========================================================================
9 
10 #include <Atoms/Globals.h>
11 #include <AtomsCore/Metadata/Metadata.h>
12 #include <AtomsUtils/Curve.h>
13 #include <AtomsUtils/Image.h>
14 #include <AtomsUtils/Mesh.h>
15 #include <AtomsUtils/SampledCurve.h>
16 #include <vector>
17 
18 namespace Atoms
19 {
21  {
22  short valueIndex;
23  short parentIndex;
24  };
25 
26  template <typename T>
28  {
29  public:
31  {
32  position.valueIndex = -1;
33  position.parentIndex = 0;
34  }
35  BlackboardValue(const T& defaultValue): value(defaultValue)
36  {
37  position.valueIndex = -1;
38  position.parentIndex = 0;
39  }
40  ~BlackboardValue() {}
41  T value;
42  BlackboardEntryPosition position;
43  };
44 
72 
76 
97 }
Definition: BlackboardValue.h:28
Atoms namespace.
Definition: Agent.h:29
Definition: BlackboardValue.h:21