Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTTable::InsertSegment

Syntax

CTSegment InsertSegment(const CTIndex& pIndex, NINT BeforeSegment,

const CTField& Field, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTIndex& pIndex, NINT BeforeSegment,

const CTString& FieldName, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTIndex& pIndex, NINT BeforeSegment,

NINT FieldNumber, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTIndex& pIndex, NINT BeforeSegment,

NINT offset, NINT length, CTSEG_MODE SegMode)

CTSegment InsertSegment(NINT IndexNbr, NINT BeforeSegment,

NINT FieldNumber, CTSEG_MODE SegMode)

CTSegment InsertSegment(NINT IndexNbr, NINT BeforeSegment,

const CTString& FieldName, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTString& IndexName, NINT BeforeSegment,

const CTString& FieldName, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTString& IndexName, NINT BeforeSegment,

NINT FieldNumber, CTSEG_MODE SegMode)

CTSegment InsertSegment(const CTString& IndexName, NINT BeforeSegment,

const CTField& Field, CTSEG_MODE SegMode)

CTSegment InsertSegment(NINT IndexNbr, NINT BeforeSegment,

const CTField& Field, CTSEG_MODE SegMode)

Parameters

  • pIndex [in] A pointer to the index object.
  • BeforeSegment [in] Insert the new segment before this segment.
  • Field [in] A pointer to the field object that composes part of the index segment
  • SegMode [in] The segment mode. The valid values to the segment mode are shown in "Segment Modes".
  • FieldName [in] Field name to compose the index segment
  • FieldNumber [in] Field number to compose the index segment
  • offset [in] Absolute byte offset of the segment
  • Length [in] Segment length in bytes
  • IndexNbr [in] Index number
  • IndexName [in] Index name
  • Field [in] Field segment to be inserted

Description

Inserts a new segment in an index.

Return

InsertSegment() returns a segment object.

See also

AddSegment(), DelSegment()

TOCIndex