Pathfinder
TupleAccess.h
Go to the documentation of this file.
1 
10 #ifndef TUPLEACCESS_H
11 #define TUPLEACCESS_H
12 
13 #include <vector>
14 
15 #include "Line2.h"
16 
17 namespace Pathfinder {
18 
27  float
28  gettValue(
29  const std::tuple<float, float, float, float, float, float>& tValues,
30  const short& idx
31  );
32 
33 
45  std::vector<short>
47  const std::tuple<std::vector<short>,
48  std::vector<short>,
49  std::vector<short>,
50  std::vector<short>,
51  std::vector<short>>& categorizedtValueIndices,
52  const short& idx
53  );
54 
55 
64  Line2
65  getLine2(
66  const std::tuple<Line2, Line2, Line2>& lines,
67  const short& idx
68  );
69 
70 
79  bool*
80  getBoolPtr(
81  std::tuple<bool, bool, bool>& boolTuple,
82  const short& idx
83  );
84 
85 
94  short*
96  std::tuple<short, short, short>& shortTuple,
97  const short& idx
98  );
99 
100 
110  boost::optional<float>
112  const std::tuple<boost::optional<float>,
113  boost::optional<float>,
114  boost::optional<float>>& optionalFloatTuple,
115  const short& idx
116  );
117 
118 
127  bool
128  getBool(
129  const std::tuple<bool, bool, bool>& boolTuple,
130  const short& idx
131  );
132 
133 
142  Geometry::Vec3
143  getTriVertex(
144  const std::tuple<Geometry::Vec3, Geometry::Vec3, Geometry::Vec3>& tri,
145  const short& idx
146  );
147 
148 
157  Geometry::Vec2
159  const std::tuple<Geometry::Vec2, Geometry::Vec2, Geometry::Vec2>& tri,
160  const short& idx
161  );
162 
163 }
164 
165 #endif
Line2 getLine2(const std::tuple< Line2, Line2, Line2 > &lines, const short &idx)
Access the element at index idx.
Definition: TupleAccess.cpp:55
short * getShortPtr(std::tuple< short, short, short > &shortTuple, const short &idx)
Access the element at index idx and return a pointer to it.
Definition: TupleAccess.cpp:83
boost::optional< float > getOptionalFloat(const std::tuple< boost::optional< float >, boost::optional< float >, boost::optional< float >> &optionalFloatTuple, const short &idx)
Access the element at index idx.
Definition: TupleAccess.cpp:97
Definition: AABB.cpp:21
std::vector< short > gettValueIndexCategoryVector(const std::tuple< std::vector< short >, std::vector< short >, std::vector< short >, std::vector< short >, std::vector< short >> &categorizedtValueIndices, const short &idx)
Access the element at index idx.
Definition: TupleAccess.cpp:35
float gettValue(const std::tuple< float, float, float, float, float, float > &tValues, const short &idx)
Access the element at index idx.
Definition: TupleAccess.cpp:18
bool * getBoolPtr(std::tuple< bool, bool, bool > &boolTuple, const short &idx)
Access the element at index idx and return a pointer to it.
Definition: TupleAccess.cpp:69
This file declares the struct Line2 that represents a two-dimensional line.
Geometry::Vec2 getFlatTriVertex(const std::tuple< Geometry::Vec2, Geometry::Vec2, Geometry::Vec2 > &tri, const short &idx)
Access the vertex at index idx.
Definition: TupleAccess.cpp:141
bool getBool(const std::tuple< bool, bool, bool > &boolTuple, const short &idx)
Access the element at index idx.
Definition: TupleAccess.cpp:113
Geometry::Vec3 getTriVertex(const std::tuple< Geometry::Vec3, Geometry::Vec3, Geometry::Vec3 > &tri, const short &idx)
Access the vertex at index idx.
Definition: TupleAccess.cpp:127