Lines Matching defs:caster

568     // Base methods for generic caster; there are overridden in copyable_holder_caster
608 auto caster = type_caster_generic(ti);
609 if (caster.load(src, false))
610 return caster.value;
742 * Determine suitable casting operator for pointer-or-lvalue-casting type casters. The type caster
755 * Determine suitable casting operator for a type caster with a movable value. Such a type caster
825 /// Generic type caster for objects stored on the heap
914 // Shortcut for calling a caster's `cast_op_type` cast operator for casting a type_caster to a T
915 template <typename T> typename make_caster<T>::template cast_op_type<T> cast_op(make_caster<T> &caster) {
916 return caster.operator typename make_caster<T>::template cast_op_type<T>();
919 cast_op(make_caster<T> &&caster) {
920 return std::move(caster).operator
930 "std::reference_wrapper<T> caster requires T to have a caster with an `T &` operator");
1273 // Type caster for C-style strings. We basically use a std::string type caster, but also add the
1274 // ability to use None as a nullptr char* (which the string caster doesn't allow).
1436 /// Type caster for holder types like std::shared_ptr, etc.
1664 "Unable to cast type to reference: value is local to type caster");
1737 template <typename T> enable_if_t<cast_is_temporary_value_reference<T>::value, T> cast_ref(object &&o, make_caster<T> &caster) {
1738 return cast_op<T>(load_type(caster, o));
1789 /// Indicate that the type should not be converted in the type caster
1795 bool flag_noconvert : 1; ///< If set, do not allow conversion (requires a supporting type caster!)