CUBRID Engine  latest
func_type Namespace Reference

Classes

struct  argument_resolve
 
class  Node
 
struct  signature_compatibility
 

Enumerations

enum  type_compatibility { type_compatibility::EQUIVALENT, type_compatibility::COERCIBLE, type_compatibility::INCOMPATIBLE }
 

Functions

bool sig_has_json_args (const func_signature &sig)
 
bool is_type_with_collation (PT_TYPE_ENUM type)
 
bool can_signature_have_collation (const pt_arg_type &arg_sig)
 
bool cmp_types_equivalent (const pt_arg_type &type, pt_type_enum type_enum)
 
bool cmp_types_castable (const pt_arg_type &type, pt_type_enum type_enum)
 

Enumeration Type Documentation

Enumerator
EQUIVALENT 
COERCIBLE 
INCOMPATIBLE 

Definition at line 47 of file func_type.hpp.

Function Documentation

bool func_type::cmp_types_equivalent ( const pt_arg_type type,
pt_type_enum  type_enum 
)

Definition at line 651 of file func_type.cpp.

References assert, pt_arg_type::INDEX, pt_are_equivalent_types(), PT_TYPE_NULL, and pt_arg_type::type.

Referenced by func_type::Node::check_arg_compat().

Here is the caller graph for this function:

bool func_type::is_type_with_collation ( PT_TYPE_ENUM  type)

Definition at line 619 of file func_type.cpp.

References PT_HAS_COLLATION, and PT_TYPE_MAYBE.

Referenced by can_signature_have_collation(), func_type::Node::check_arg_compat(), and func_type::Node::set_return_type().

Here is the caller graph for this function:

bool func_type::sig_has_json_args ( const func_signature sig)

Definition at line 599 of file func_type.cpp.

References func_signature::fix, PT_GENERIC_TYPE_JSON_DOC, PT_GENERIC_TYPE_JSON_VAL, and func_signature::rep.

Referenced by func_type::Node::get_signature().

Here is the caller graph for this function: