Home
last modified time | relevance | path

Searched refs:type_index (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/mindspore/mindspore/lite/micro/coder/utils/
Dtype_cast.h49 std::map<std::type_index, std::string> types_name = {{std::type_index(typeid(int)), "int"}, in GetVariableTypeName()
50 … {std::type_index(typeid(int32_t)), "int32_t"}, in GetVariableTypeName()
51 … {std::type_index(typeid(int16_t)), "int16_t"}, in GetVariableTypeName()
52 {std::type_index(typeid(int8_t)), "int8_t"}, in GetVariableTypeName()
53 … {std::type_index(typeid(uint8_t)), "uint8_t"}, in GetVariableTypeName()
54 {std::type_index(typeid(float)), "float"}, in GetVariableTypeName()
55 {std::type_index(typeid(double)), "double"}, in GetVariableTypeName()
56 … {std::type_index(typeid(::QuantArg)), "QuantArg"}, in GetVariableTypeName()
57 {std::type_index(typeid(void *)), "void *"}, in GetVariableTypeName()
58 … {std::type_index(typeid(std::string)), "float *"}, in GetVariableTypeName()
[all …]
/third_party/boost/boost/
Dtype_index.hpp128 typedef platform_specific type_index; typedef
132 typedef boost::typeindex::stl_type_index type_index;
134 typedef boost::typeindex::ctti_type_index type_index;
144 typedef type_index::type_info_t type_info;
154 #define BOOST_TYPE_INDEX_USER_TYPEINDEX <full/absolute/path/to/header/with/type_index.hpp>
211 inline type_index type_id() BOOST_NOEXCEPT { in type_id()
212 return type_index::type_id<T>(); in type_id()
231 inline type_index type_id_with_cvr() BOOST_NOEXCEPT { in type_id_with_cvr()
232 return type_index::type_id_with_cvr<T>(); in type_id_with_cvr()
256 inline type_index type_id_runtime(const T& runtime_val) BOOST_NOEXCEPT { in type_id_runtime()
[all …]
/third_party/boost/libs/type_index/
DREADME.md1 # [Boost.TypeIndex](http://boost.org/libs/type_index)
8type_index.svg?branch=develop)](https://travis-ci.org/apolukhin/type_index) [![Build status](https…
9type_index.svg?branch=master)](https://travis-ci.org/apolukhin/type_index) [![Build status](https:…
12 [Open Issues](https://svn.boost.org/trac/boost/query?status=!closed&component=type_index)
14 [Latest developer documentation](http://boostorg.github.com/type_index/index.html)
/third_party/mindspore/mindspore/core/utils/
Dany.cc26 static const std::type_index typeid_int = std::type_index(typeid(int)); in AnyIsLiteral()
27 static const std::type_index typeid_float = std::type_index(typeid(float)); in AnyIsLiteral()
28 static const std::type_index typeid_bool = std::type_index(typeid(bool)); in AnyIsLiteral()
30 auto typeid_any = std::type_index(any.type()); in AnyIsLiteral()
/third_party/boost/libs/type_index/doc/
DJamfile.v212 [ glob ../../../boost/type_index.hpp ]
13 [ glob ../../../boost/type_index/*.hpp ]
14 [ glob ../../../boost/type_index/runtime_cast/*.hpp ]
29 xml type_index : type_index.qbk : <dependency>autodoc ;
32 type_index
41 : type_index
Dtype_index.qbk14 …. For such cases a construction like `&typeid(T)` or C++11 class `std::type_index` is usually used…
16 * `typeid(T)` and `std::type_index` require Run Time Type Info (RTTI)
19 * only a few implementations of Standard Library currently provide `std::type_index`
33 [classref boost::typeindex::type_index boost::typeindex::type_index]
34 is a drop-in replacement for `std::type_index`. Unlike Standard Library versions those classes can …
36 `type_index` provides the full set of comparison operators, hashing functions and ostream
49 #include <boost/type_index.hpp>
51 [headerref boost/type_index.hpp more... ]
55 std::type_index
57 boost::typeindex::type_index
[all …]
/third_party/boost/libs/type_index/test/
Dtest_lib.hpp28 TEST_LIB_DECL boost::typeindex::type_index get_integer();
29 TEST_LIB_DECL boost::typeindex::type_index get_user_defined_class();
31 TEST_LIB_DECL boost::typeindex::type_index get_const_integer();
32 TEST_LIB_DECL boost::typeindex::type_index get_const_user_defined_class();
36 TEST_LIB_DECL void accept_typeindex(const boost::typeindex::type_index&);
Dtest_lib.cpp18 boost::typeindex::type_index get_integer() { in get_integer()
22 boost::typeindex::type_index get_user_defined_class() { in get_user_defined_class()
26 boost::typeindex::type_index get_const_integer() { in get_const_integer()
30 boost::typeindex::type_index get_const_user_defined_class() { in get_const_user_defined_class()
36 void accept_typeindex(const boost::typeindex::type_index&) {} in accept_typeindex() argument
Dtype_index_test.cpp39 type_index ti1, ti2; in default_construction()
51 type_index ti1, ti2 = type_id<int>(); in copy_construction()
56 const type_index ti3(ti1); in copy_construction()
63 type_index t_int = type_id<int>(); in comparators_type_id()
64 type_index t_double = type_id<double>(); in comparators_type_id()
99 type_index t1 = type_id_with_cvr<T1>(); in test_with_modofiers()
100 type_index t2 = type_id_with_cvr<T2>(); in test_with_modofiers()
187 type_index t1 = type_id_with_cvr<T>(); in test_storing_nonstoring_modifiers_templ()
188 type_index t2 = type_id<T>(); in test_storing_nonstoring_modifiers_templ()
206 boost::typeindex::type_index t1 = boost::typeindex::type_id_with_cvr<const int>(); in type_id_storing_modifiers_vs_nonstoring()
[all …]
Dtesting_crossmodule.cpp19 boost::typeindex::type_index t_const_int = boost::typeindex::type_id_with_cvr<const int>(); in comparing_types_between_modules()
20 boost::typeindex::type_index t_int = boost::typeindex::type_id<int>(); in comparing_types_between_modules()
28 boost::typeindex::type_index t_const_userdef in comparing_types_between_modules()
30 boost::typeindex::type_index t_userdef in comparing_types_between_modules()
Dtest_lib_anonymous.cpp18 boost::typeindex::type_index get_anonymous_user_defined_class() { in get_anonymous_user_defined_class()
22 boost::typeindex::type_index get_const_anonymous_user_defined_class() { in get_const_anonymous_user_defined_class()
Dtest_lib_anonymous.hpp28 TEST_LIB_DECL boost::typeindex::type_index get_anonymous_user_defined_class();
29 TEST_LIB_DECL boost::typeindex::type_index get_const_anonymous_user_defined_class();
/third_party/boost/boost/log/utility/type_dispatch/
Dstatic_type_dispatcher.hpp52 typedef std::pair< typeindex::type_index, void* > first_argument_type, second_argument_type;
64 …static BOOST_FORCEINLINE void init(IteratorT*, IteratorT*, std::pair< typeindex::type_index, void*… in init()
69 …EINLINE void init(BeginIteratorT*, EndIteratorT* end, std::pair< typeindex::type_index, void* >* p) in init()
80 static BOOST_FORCEINLINE void do_init(T*, std::pair< typeindex::type_index, void* >* p) in do_init()
103 typedef std::pair< typeindex::type_index, void* > dispatching_map_element_type;
125 static callback_base get_callback(type_dispatcher* p, typeindex::type_index type) in get_callback()
161 std::pair< typeindex::type_index, void* >,
211 typeindex::type_index m_type;
217 … single_type_dispatcher_base(typeindex::type_index type, callback_base const& cb) BOOST_NOEXCEPT : in single_type_dispatcher_base()
226 static callback_base get_callback(type_dispatcher* p, typeindex::type_index type) in get_callback()
Ddynamic_type_dispatcher.hpp80 typedef std::map< typeindex::type_index, shared_ptr< callback_base > > dispatching_map;
120 typeindex::type_index wrapper(typeindex::type_id< T >()); in register_type()
134 static callback_base get_callback(type_dispatcher* p, typeindex::type_index type) in get_callback()
/third_party/boost/boost/log/detail/
Dvalue_ref_visitation.hpp47 …static BOOST_FORCEINLINE result_type call(const void* p, unsigned int type_index, VisitorT& visito… in call()
51 if (type_index < (SizeV / 2u)) in call()
55 return new_dispatch::call(p, type_index, visitor); in call()
61 return new_dispatch::call(p, type_index - (SizeV / 2u), visitor); in call()
94 …static BOOST_FORCEINLINE result_type call(const void* p, unsigned int type_index, VisitorT& visito… in call()
96 switch (type_index) in call()
/third_party/boost/libs/config/test/
Dboost_no_cxx11_hdr_typeindex.ipp20 std::type_index * p1;
21 std::hash<std::type_index> h;
26 std::type_index t1 = typeid(int);
27 std::type_index t2 = typeid(double);
28 std::hash<std::type_index> h;
/third_party/boost/boost/log/sources/
Dglobal_logger_storage.hpp47 const typeindex::type_index m_LoggerType;
49 …logger_holder_base(const char* file, unsigned int line, typeindex::type_index logger_type) BOOST_N… in logger_holder_base()
86 …BOOST_LOG_API static shared_ptr< logger_holder_base > get_or_init(typeindex::type_index key, initi…
96 typeindex::type_index tag_type,
97 typeindex::type_index logger_type,
126 const typeindex::type_index tag_type_index = typeindex::type_id< TagT >(); in init_instance()
128 const typeindex::type_index logger_type_index = typeindex::type_id< logger_type >(); in init_instance()
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc232 tr.type_index = 0; in ResetToBuiltinUTC()
299 std::size_t type_index = 0; in GetTransitionType() local
301 for (; type_index != transition_types_.size(); ++type_index) { in GetTransitionType()
302 const TransitionType& tt(transition_types_[type_index]); in GetTransitionType()
309 if (type_index > 255 || abbr_index > 255) { in GetTransitionType()
313 if (type_index == transition_types_.size()) { in GetTransitionType()
323 *index = static_cast<std::uint_least8_t>(type_index); in GetTransitionType()
344 return EquivTransitions(transitions_.back().type_index, std_ti); in ExtendTransitions()
361 const TransitionType& last_tt(transition_types_[last.type_index]); in ExtendTransitions()
441 transitions_[i].type_index = Decode8(bp++); in Load()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc233 tr.type_index = 0; in ResetToBuiltinUTC()
300 std::size_t type_index = 0; in GetTransitionType() local
302 for (; type_index != transition_types_.size(); ++type_index) { in GetTransitionType()
303 const TransitionType& tt(transition_types_[type_index]); in GetTransitionType()
310 if (type_index > 255 || abbr_index > 255) { in GetTransitionType()
314 if (type_index == transition_types_.size()) { in GetTransitionType()
324 *index = static_cast<std::uint_least8_t>(type_index); in GetTransitionType()
345 return EquivTransitions(transitions_.back().type_index, std_ti); in ExtendTransitions()
362 const TransitionType& last_tt(transition_types_[last.type_index]); in ExtendTransitions()
442 transitions_[i].type_index = Decode8(bp++); in Load()
[all …]
/third_party/boost/libs/container_hash/test/
Dhash_type_index_test.cpp21 BOOST_HASH_TEST_NAMESPACE::hash<std::type_index> hasher; in test_type_index()
27 std::type_index int_index = typeid(int); in test_type_index()
28 std::type_index int2_index = typeid(int); in test_type_index()
29 std::type_index char_index = typeid(char); in test_type_index()
/third_party/boost/libs/log/src/
Dglobal_logger_storage.cpp46 typedef std::map< typeindex::type_index, shared_ptr< logger_holder_base > > loggers_map_t;
59 BOOST_LOG_API shared_ptr< logger_holder_base > global_storage::get_or_init(typeindex::type_index ke…
82 typeindex::type_index tag_type, in throw_odr_violation()
83 typeindex::type_index logger_type, in throw_odr_violation()
/third_party/boost/boost/log/attributes/
Dfallback_policy.hpp62 static void on_invalid_type(typeindex::type_index const&) in on_invalid_type()
102 static void on_invalid_type(typeindex::type_index const& t) in on_invalid_type()
164 static void on_invalid_type(typeindex::type_index const&) in on_invalid_type()
Dattribute_value.hpp106 virtual typeindex::type_index get_type() const { return typeindex::type_index(); } in get_type()
169 typeindex::type_index get_type() const in get_type()
174 return typeindex::type_index(); in get_type()
/third_party/boost/libs/python/src/object/
Dinheritance.cpp167 type_index_t& type_index() in type_index() function
190 type_index().begin(), type_index().end() in type_position()
200 if (p == type_index().end() || tuples::get<ksrc_static_t>(*p) != type) in seek_type()
211 if (p != type_index().end() && tuples::get<ksrc_static_t>(*p) == type) in demand_type()
218 return type_index().insert(p, boost::make_tuple(type, v, dynamic_id_function(0))); in demand_type()
229 type_index().reserve(type_index().size() + 2); in demand_types()
/third_party/boost/boost/type_index/runtime_cast/
Dregister_runtime_class.hpp27 inline type_index runtime_class_construct_type_id(T const*) { in runtime_class_construct_type_id()
126 …virtual void const* boost_type_index_find_instance_(boost::typeindex::type_index const& idx) const…

1234