Vector_int ๆดๅๅ้
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | len | = | 0 |
ๆๆๅ้้ฟๅบฆ |
ๅๅงๅๅ้
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(inout) | :: | self |
ๅ้ๅผนๅบ
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(inout) | :: | self | |||
integer, | intent(out), | optional | :: | item |
ๅ้ๅๅ ฅ
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | item |
ๅ้่ฎพ็ฝฎ
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | index | |||
integer, | intent(in) | :: | item |
ๅ้่ทๅ
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(in) | :: | self | |||
integer, | intent(in) | :: | index | |||
integer, | intent(out) | :: | item |
ๅ้ๆธ ็ฉบ
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_int), | intent(inout) | :: | self |
type vector_int
private
integer, public :: len = 0 !! ๆๆๅ้้ฟๅบฆ
integer, allocatable :: items(:) !! ๆดๅๆฐ็ป
contains
procedure :: init
procedure :: push, pop
procedure :: get, set
procedure :: clear
procedure, private :: extend
end type vector_int