Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTNumericDataType.m File Reference
#import "CPTNumericDataType.h"
#import "complex.h"
+ Include dependency graph for CPTNumericDataType.m:

Functions

CPTNumericDataType CPTDataType (CPTDataTypeFormat format, size_t sampleBytes, CFByteOrder byteOrder)
 Initializes a CPTNumericDataType struct with the given parameter values. More...
 
CPTNumericDataType CPTDataTypeWithDataTypeString (NSString *__nonnull dataTypeString)
 Initializes a CPTNumericDataType struct from a data type string. More...
 
NSStringCPTDataTypeStringFromDataType (CPTNumericDataType dataType)
 Generates a string representation of the given data type. More...
 
BOOL CPTDataTypeIsSupported (CPTNumericDataType format)
 Validates a data type format. More...
 
BOOL CPTDataTypeEqualToDataType (CPTNumericDataType dataType1, CPTNumericDataType dataType2)
 Compares two data types for equality. More...
 

Function Documentation

◆ CPTDataType()

CPTNumericDataType CPTDataType ( CPTDataTypeFormat  format,
size_t  sampleBytes,
CFByteOrder  byteOrder 
)

Initializes a CPTNumericDataType struct with the given parameter values.

Parameters
formatThe data type format.
sampleBytesThe number of bytes in each sample.
byteOrderThe byte order used to store the data samples.
Returns
The initialized CPTNumericDataType struct.

◆ CPTDataTypeEqualToDataType()

BOOL CPTDataTypeEqualToDataType ( CPTNumericDataType  dataType1,
CPTNumericDataType  dataType2 
)

Compares two data types for equality.

Parameters
dataType1The first data type format.
dataType2The second data type format.
Returns
Returns YES if the two data types have the same format, size, and byte order.

◆ CPTDataTypeIsSupported()

BOOL CPTDataTypeIsSupported ( CPTNumericDataType  format)

Validates a data type format.

Parameters
formatThe data type format.
Returns
Returns YES if the format is supported by CPTNumericData, NO otherwise.

◆ CPTDataTypeStringFromDataType()

NSString* CPTDataTypeStringFromDataType ( CPTNumericDataType  dataType)

Generates a string representation of the given data type.

Parameters
dataTypeThe data type.
Returns
The string representation of the given data type.

◆ CPTDataTypeWithDataTypeString()

CPTNumericDataType CPTDataTypeWithDataTypeString ( NSString *__nonnull  dataTypeString)

Initializes a CPTNumericDataType struct from a data type string.

Parameters
dataTypeStringThe data type string.
Returns
The initialized CPTNumericDataType struct.