Changeset 10982 for code/branches/cpp11_v2
- Timestamp:
- Dec 27, 2015, 11:07:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/command/Functor.h
r10981 r10982 117 117 118 118 #include <array> 119 #include <typeindex>120 #include <type_traits>121 119 #include <tuple> 122 120 … … 222 220 223 221 /// Returns the full identifier of the function-pointer which is defined as typeid(@a F), where @a F is the type of the stored function-pointer. Used to compare functors. 224 virtual const std::type_in dexgetFullIdentifier() const = 0;222 virtual const std::type_info& getFullIdentifier() const = 0; 225 223 /// Returns an identifier of the header of the function (doesn't include the function's class). Used to compare functors. 226 virtual const std::type_in dexgetHeaderIdentifier() const = 0;224 virtual const std::type_info& getHeaderIdentifier() const = 0; 227 225 /// Returns an identifier of the header of the function (doesn't include the function's class), but regards only the first @a params parameters. Used to compare functions if an Executor provides default-values for the other parameters. 228 virtual const std::type_in dexgetHeaderIdentifier(unsigned int params) const = 0;226 virtual const std::type_info& getHeaderIdentifier(unsigned int params) const = 0; 229 227 }; 230 228 … … 387 385 388 386 // see Functor::getFullIdentifier() 389 const std::type_in dexgetFullIdentifier() const387 const std::type_info& getFullIdentifier() const 390 388 { return typeid(F); } 391 389 … … 549 547 550 548 // see Functor::getHeaderIdentifier() 551 virtual const std::type_in dexgetHeaderIdentifier() const override549 virtual const std::type_info& getHeaderIdentifier() const override 552 550 { 553 551 return typeid(typename detail::FunctionPointer<R, void, false, Params...>::Type); … … 555 553 556 554 // see Functor::getHeaderIdentifier(unsigned int) 557 virtual const std::type_in dexgetHeaderIdentifier(unsigned int params) const override555 virtual const std::type_info& getHeaderIdentifier(unsigned int params) const override 558 556 { 559 557 switch (params) … … 578 576 ///Helper function that deduces a parameter pack of types and returns the corresponding identifier 579 577 template<class... Types> 580 const std::type_in dexgetTypelistIdentifier(detail::type_list<Types...>) const578 const std::type_info& getTypelistIdentifier(detail::type_list<Types...>) const 581 579 { 582 580 return typeid(typename detail::FunctionPointer<R, void, false, Types...>::Type);
Note: See TracChangeset
for help on using the changeset viewer.