34 |
|
|
35 |
class POVRayReferences |
class POVRayReferences |
36 |
{ |
{ |
|
private: |
|
|
/** |
|
|
* This local structure allows to sort \f$ R^3\f$ vectors |
|
|
* |
|
|
*/ |
|
|
struct __ltv |
|
|
{ |
|
|
bool operator()(const TinyVector<3,real_t>& s1, const TinyVector<3,real_t>& s2) const |
|
|
{ |
|
|
if (s1[0]<s2[0]) |
|
|
return true; |
|
|
if (s1[1]<s2[1]) |
|
|
return true; |
|
|
if (s1[1]<s2[1]) |
|
|
return true; |
|
|
return false; |
|
|
} |
|
|
}; |
|
|
|
|
37 |
public: |
public: |
38 |
typedef std::map<TinyVector<3,real_t>,size_t, __ltv> Builtins; |
typedef std::map<TinyVector<3,real_t>,size_t> Builtins; |
39 |
|
|
40 |
private: |
private: |
41 |
POVRayReferences::Builtins __povreferences; |
POVRayReferences::Builtins __povreferences; |