Destructor for the class. This is called automatically when the reference count reaches zero. Do not call this yourself on pointers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(FTStringSet) | :: | self |
Generic Name: init()
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTObject) | :: | self |
Returns a character string of length DESCRIPTION_CHARACTER_LENGTH that represents the object. the base class implementation returns an empty string. Note that if the description is too long, the expected string will be truncated. In general, one wants to use printDescription.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTObject) | :: | self |
Base class implementation of the assignment function. Call this from within any subclasses copy assignment function. All FTObject's implementation does is set the reference count to one, implying no additional ownership to the caller that is creating the copy.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTObject), | intent(in) | :: | self |
Retain increases the reference count by one and implies ownership to the caller. ### Usage: CALL obj\ % retain()
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTObject) | :: | self |
Owners of objects should call isUnreferenced after releasing a pointer object. If true, the object should be deallocated and then set to point to NULL()
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTObject) | :: | self |
Designated initializer. Initializes the amount of storage, but the FTStringSet remains empty.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
integer | :: | FTStringSetSize |
initializer. Initializes the amount of storage from the strings passed Usage CLASS(FTStringSet) :: FTStringSet CHARACTER(LEN=) :: strings(:) CALL FTStringSet % initWithStrings(strings)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
character(len=*) | :: | strings(:) |
AddString adds a string to the set if it is not already present
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
character(len=*) | :: | str |
containsString returns .TRUE. if the set contains the string, .FALSE. otherwise.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
character(len=*) | :: | str |
strings returns a pointer to an array of strings that are in the set. Deallocate this array when done with it.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self |
unionWithSet returns a pointer to a new set that is the union of two sets. the new set has reference count of 1. Release when done.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
class(FTStringSet) | :: | set |
intersectionWithSet returns a pointer to a new set that is the intersection of two sets. the new set has reference count of 1. Release when done.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
class(FTStringSet) | :: | set |
setFromDifference returns a pointer to a new set that is the difference of two sets. the new set has reference count of 1. Release when done.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
class(FTStringSet) | :: | set |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self | ||||
integer | :: | iUnit |
Class name returns a string with the name of the type of the object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(FTStringSet) | :: | self |