Defines a column of logical values.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | m_name |
A header, or column name. |
Constructs an empty logical_column of the requested size.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | n |
The number of rows to create. |
The newly constructed logical_column object.
Constructs a new logical_column by copying the contents of the supplied array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in), | dimension(:) | :: | x |
The array to copy. |
The newly constructed logical_column object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout) | :: | this | |||
| class(*), | intent(in) | :: | x |
Copies the contents of this column to the supplied destination array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(in) | :: | this |
The logical_column object. |
||
| class(*), | intent(inout), | dimension(:) | :: | dest |
The destination array. |
Gets the number of values stored in this column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(in) | :: | this |
The logical_column object. |
The number of values.
Gets the requested value from the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(in) | :: | this |
The logical_column object. |
||
| integer(kind=int32), | intent(in) | :: | row |
The row index of the value to retrieve. |
The value stored at the requested row.
Gets the type stored by this column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(in) | :: | this |
The logical_column object. |
The type stored by this column.
Gets the name associated with the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(in) | :: | this |
The data_column object. |
The name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | row | |||
| class(*), | intent(in) | :: | x |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | row |
Sets the requested value into the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout) | :: | this |
The logical_column object. |
||
| integer(kind=int32), | intent(in) | :: | row |
The row index. |
||
| logical, | intent(in) | :: | x |
The value stored at the requested row. |
Sets the name associated with the column.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(data_column), | intent(inout) | :: | this |
The data_column object. |
||
| character(len=*), | intent(in) | :: | x |
The name. |
Returns a borrowed, mutable slice of this column's array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout), | target | :: | this |
The logical_column object. |
|
| integer(kind=int32), | intent(in) | :: | first |
The one-based starting index of the slice. |
||
| integer(kind=int32), | intent(in) | :: | last |
The one-based ending index of the slice. |
The array pointer, or null if unallocated.
Returns the value in the requested row as a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(in) | :: | this |
The logical_column object. |
||
| integer(kind=int32), | intent(in) | :: | row |
The row index. |
||
| character(len=*), | intent(in), | optional | :: | fmt |
The formatting string (e.g. "L1"). |
The resulting string.
Returns a borrowed, mutable view of this column's array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(logical_column), | intent(inout), | target | :: | this |
The logical_column object. |
The array pointer, or null if unallocated.