Class shape_definition_representation

Hierarchy

  • property_definition_representation
    • shape_definition_representation

Constructors

Properties

localID: number

The local (dense) ID within the model, that acts as a reference.

model: default<EntityTypesAP214, default<EntityTypesAP214>>

The model this came from.

expectedType: EntityTypesAP214 = EntityTypesAP214.SHAPE_DEFINITION_REPRESENTATION
query: EntityTypesAP214[] = ...

Accessors

  • get definition():
        | shape_aspect
        | property_definition
        | general_property
        | property_definition_relationship
        | shape_aspect_relationship
  • Returns
        | shape_aspect
        | property_definition
        | general_property
        | property_definition_relationship
        | shape_aspect_relationship

  • get Dim(): number
  • Get the number of dimensions for this, some functions require every object to have this,

    The default value is 0.

    Returns number

    The number of dimensions.

  • get expressID(): undefined | number
  • Get the express ID for this, note that if an element is inlined, it will have not have an express ID.

    Returns undefined | number

    The express ID of this or undefined if there isn't one.

  • get isInline(): boolean
  • Is this an inline element or fully specified?

    Returns boolean

    Is this inline?

Methods

  • Extract a flat array of references

    Parameters

    • offset: number

      offset in ifc line

    Returns (undefined | default<EntityTypesAP214>)[]

    array of values

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | [Uint8Array, number]

    The extracted number.

  • Parameters

    • vtableOffset: number
    • optional: false

    Returns [Uint8Array, number]

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field? (true)

    Returns null | boolean

    The extracted number or null if it's not supplied.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field? (false).

    Returns boolean

    The extracted number.

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field? (true)

    • entityConstructor: T

    Returns null | InstanceType<T>

    The extracted element, or null if optional and this value isn't specified.

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field? (false)

    • entityConstructor: T

    Returns InstanceType<T>

    The extracted element.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    ExtractionType Type to be extracted

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: ((buffer: Uint8Array, cursor: number, endCursor: number) => undefined | null | ExtractionType)

      The function to be used for extraction.

        • (buffer, cursor, endCursor): undefined | null | ExtractionType
        • Parameters

          • buffer: Uint8Array
          • cursor: number
          • endCursor: number

          Returns undefined | null | ExtractionType

    • optional: true

      Is this an optional field? (true)

    Returns null | ExtractionType

    The extracted value or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    ExtractionType Type to be extracted

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: ((buffer: Uint8Array, cursor: number, endCursor: number) => undefined | ExtractionType)

      The function to be used for extraction.

        • (buffer, cursor, endCursor): undefined | ExtractionType
        • Parameters

          • buffer: Uint8Array
          • cursor: number
          • endCursor: number

          Returns undefined | ExtractionType

    • optional: false

      Is this an optional field? (false)

    Returns ExtractionType

    The extracted value or null for optionals.

  • Returns Uint8Array

    buffer containing line data up to the semicolon

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | boolean

    The extracted logical or null for optionals.

  • Parameters

    • offset: number
    • optional: false

    Returns boolean

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Whether this is a potentially optional field

    Returns null | number

    The extracted number.

  • Parameters

    • vtableOffset: number
    • optional: false

    Returns number

  • Extract a parse buffer at a particular vtable offset.

    Parameters

    • offset: number
    • result: ParseBuffer
    • module: any
    • optional: boolean

    Returns boolean

    True if this extracts, false (usually because this is optional)

  • Extract a reference from an offset, without type check.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | default<EntityTypesAP214>

    Extracted entity or undefined.

  • Parameters

    • offset: number
    • optional: false

    Returns default<EntityTypesAP214>

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | string

    The extracted string, or null if optional and this value isn't specified.

  • Parameters

    • offset: number
    • optional: false

    Returns string

  • Make it so this particular object is not held in the cache.

    Returns void

  • Parameters

    • buffer: Uint8Array
    • cursor: number

    Returns {
        data: string;
        length: number;
    }

    string and length

    • data: string
    • length: number
  • Parameters

    • buffer: Uint8Array
    • cursor: number
    • t: IfcTokenType

      ifc token type

    Returns {
        length: number;
        value: string;
    } | {
        length: number;
        value: number;
    } | {
        length: number;
        value: undefined;
    }

    ifc token

  • Convert this to a string (which is the equivalent to a reference or '#inline' for inline elements).

    Returns string

    Convert this to a string