struct Clang::Cursor
- Clang::Cursor
- Struct
- Value
- Object
Defined in:
cursor.crConstructors
Instance Method Summary
- #==(other : Cursor)
-
#==(other)
Returns
trueif this struct is equal to other. - #anonymous?
- #arguments
- #availability
- #bit_field?
- #canonical_cursor
- #cxx_access_specifier
- #cxx_manglings
- #definition
- #definition?
- #display_name
- #dynamic_call?
- #enum_constant_decl_unsigned_value
- #enum_constant_decl_value
- #enum_decl_integer_type
- #evaluate
- #extent
- #field_decl_bit_width
- #function_inlined?
- #get_bried_comment_text
- #has_attributes?
-
#hash
Generates an
UInt64hash value for this object. - #ib_outlet_collection_type
- #inspect(io)
- #kind
- #language
- #lexical_parent
- #linkage
- #location
- #macro_builtin?
- #macro_function_like?
- #mangling
- #objc_decl_qualifiers
- #objc_optional?
- #objc_property_attributes
- #objc_selector_index
- #objc_type_encoding
- #offset_of_field
- #overloads
- #overriden_cursors
- #platform_availability
- #raw_comment_text
- #receiver_type
- #referenced
- #result_type
- #semantic_parent
- #spelling
- #storage_class
- #to_unsafe : LibC::CXCursor
- #type
- #typedef_decl_underlying_type
-
#usr
Returns a raw
LibC::CXString, useClang.string(usr, dispose: false)to get a String. - #variadic?
- #virtual_base?
- #visibility
- #visit_children(&block : Cursor -> ChildVisitResult)
Constructor Detail
Instance Method Detail
Returns true if this struct is equal to other.
Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4
p1 == p2 # => true
p1 == p3 # => false
Generates an UInt64 hash value for this object.
This method must have the property that a == b implies a.hash == b.hash.
The hash value is used along with #== by the Hash class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher),
though usually the macro def_hash can be used to generate this method.