CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWRepresentationInfo.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWRepresentationInfo_h
2 #define Fireworks_Core_FWRepresentationInfo_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWRepresentationInfo
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Nov 11 13:12:28 EST 2008
19 //
20 
21 // system include files
22 #include <string>
23 
24 // user include files
25 
26 // forward declarations
27 
29 {
30 public:
31  FWRepresentationInfo(const std::string& iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF) :
32  m_purpose(iPurpose),
33  m_proximity(iProximity),
34  m_bitPackedViews(iBitPackedViews),
35  m_representsSubPart(iRepresentsSubPart),
36  m_requiresFF(iRequiresFF)
37  {}
38 
40  m_purpose(),
41  m_proximity(0xFFFFFFFF),
45  {}
46 
47  // ---------- const member functions ---------------------
48 
49  const std::string& purpose() const { return m_purpose; }
50 
52  unsigned int proximity() const { return m_proximity; }
53 
54  bool isValid() const { return !m_purpose.empty(); }
55 
56  bool representsSubPart() const { return m_representsSubPart; }
57 
58  bool requiresFF() const { return m_requiresFF; }
59 
60  unsigned int bitPackedViews() const { return m_bitPackedViews; }
61 
62  // ---------- static member functions --------------------
63 
64  // ---------- member functions ---------------------------
65 
66 private:
67  //FWRepresentationInfo(const FWRepresentationInfo&); // stop default
68 
69  //const FWRepresentationInfo& operator=(const FWRepresentationInfo&); // stop default
70 
71  // ---------- member data --------------------------------
73  unsigned int m_proximity;
74  unsigned int m_bitPackedViews;
75 
78 };
79 
80 
81 #endif
unsigned int proximity() const
measures how &#39;close&#39; this representation is to the type in question, the large the number the farther...
FWRepresentationInfo(const std::string &iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF)
bool representsSubPart() const
unsigned int bitPackedViews() const
const std::string & purpose() const
volatile std::atomic< bool > shutdown_flag false