xmscore  1.0
set.h
Go to the documentation of this file.
1 #pragma once
2 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 
10 // 3. Standard library headers
11 #include <cstdint> // for int64_t
12 #include <set>
13 
14 // 5. Shared code headers
15 #include <xmscore/points/ptsfwd.h>
16 namespace xms
17 {
18 typedef std::set<Pt2d> SetPt2d;
19 typedef std::set<Pt3d> SetPt3d;
20 typedef std::set<Pt4d> SetPt4d;
21 
22 typedef std::set<size_t> SetSizet;
23 typedef std::set<int> SetInt;
24 typedef std::set<int64_t> SetInt64;
25 typedef std::set<float> SetFlt;
26 typedef std::set<double> SetDbl;
27 typedef std::set<std::string> SetStr;
28 
29 //------------------------------------------------------------------------------
34 //------------------------------------------------------------------------------
35 template <class _T>
36 std::ostream& operator<<(std::ostream& a_output, const std::set<_T>& a_value)
37 {
38  a_output << std::string(",size=") << a_value.size();
39  // add loop here like vector
40  return a_output;
41 }
42 
43 } // namespace xms {
std::set< Pt4d > SetPt4d
short rename
Definition: set.h:20
Include this small header instead of pt.h.
std::set< double > SetDbl
short rename
Definition: set.h:26
std::set< Pt3d > SetPt3d
short rename
Definition: set.h:19
std::set< Pt2d > SetPt2d
short rename
Definition: set.h:18
std::set< std::string > SetStr
short rename
Definition: set.h:27
std::set< int > SetInt
short rename
Definition: set.h:23
std::set< float > SetFlt
short rename
Definition: set.h:25
std::set< int64_t > SetInt64
short rename
Definition: set.h:24
std::set< size_t > SetSizet
short rename
Definition: set.h:22