Changeset 369409
- Timestamp:
- May 8, 2017, 1:54:50 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- 5f0ddd
- Parents:
- d7bd62
- git-author:
- Frederik Heber <heber@…> (03/31/17 09:03:09)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/08/17 13:54:50)
- Location:
- src/Geometry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Geometry/GeometryRegistry.cpp
rd7bd62 r369409 37 37 #include "GeometryRegistry.hpp" 38 38 39 #include <algorithm> 40 #include <boost/assign.hpp> 41 39 42 #include "CodePatterns/Singleton_impl.hpp" 40 43 #include "CodePatterns/Registry_impl.hpp" 41 44 #include "CodePatterns/Observer/Channels.hpp" 45 46 using namespace boost::assign; 42 47 43 48 GeometryRegistry::GeometryRegistry() : … … 93 98 } 94 99 100 static std::vector<std::string> setProtectedNames() 101 { 102 std::vector<std::string> names; 103 names += std::string("zeroVector"), 104 std::string("unitVectorX"), 105 std::string("unitVectorY"), 106 std::string("unitVectorZ"); 107 return names; 108 } 109 110 bool GeometryRegistry::isProtectedName(const std::string &_name) const 111 { 112 static std::vector<std::string> protected_names = setProtectedNames(); 113 114 if (std::count(protected_names.begin(), protected_names.end(), _name) != 0) 115 return true; 116 return false; 117 } 118 95 119 CONSTRUCT_SINGLETON(GeometryRegistry) 96 120 CONSTRUCT_REGISTRY(GeometryObject) -
src/Geometry/GeometryRegistry.hpp
rd7bd62 r369409 46 46 GeometryObject *lastChanged() const { return _lastchanged; } 47 47 48 bool isProtectedName(const std::string &_name) const; 49 48 50 private: 49 51 void fillRegistry();
Note:
See TracChangeset
for help on using the changeset viewer.