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  {
37  }
39  m_purpose(),
40  m_proximity(0xFFFFFFFF),
44  }
45  //virtual ~FWRepresentationInfo();
46 
47  // ---------- const member functions ---------------------
48  const std::string& purpose() const {
49  return m_purpose;
50  }
52  unsigned int proximity() const {
53  return m_proximity;
54  }
55  bool isValid() const {
56  return !m_purpose.empty();
57  }
58 
59  bool representsSubPart() const {
60  return m_representsSubPart;
61  }
62 
63  bool requiresFF() const { return m_requiresFF; }
64 
65  unsigned int bitPackedViews() const {
66  return m_bitPackedViews;
67  }
68  // ---------- static member functions --------------------
69 
70  // ---------- member functions ---------------------------
71 
72 private:
73  //FWRepresentationInfo(const FWRepresentationInfo&); // stop default
74 
75  //const FWRepresentationInfo& operator=(const FWRepresentationInfo&); // stop default
76 
77  // ---------- member data --------------------------------
79  unsigned int m_proximity;
80  unsigned int m_bitPackedViews;
81 
84 };
85 
86 
87 #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