定义序列
From Apache OpenOffice Wiki
< Zh | Documentation
UNOIDL 中的序列是包含各种数量的相同 UNOIDL 类型的元素的数组。下面是一个 sequence
术语的示例:
// this term could occur in a UNOIDL definition block somewhere sequence< com::sun::star::uno::XInterface >
它的开头是关键字 sequence
,然后给出元素类型(包含在 尖括号 <>
内)。元素类型必须是已知类型。序列类型可以用作参数、返回值、属性或结构成员,与其他所有类型一样。如果有必要,序列也可以嵌套。
// this could be a nested sequence definition sequence< sequence< long > > // this could be an operation using sequences in some interface definition sequence< string > getNamesOfIndex(sequence< long > indexes);
Content on this page is licensed under the Public Documentation License (PDL). |