Platform::ArrayReference 클래스

ArrayReference 는 C 스타일 배열을 입력 데이터로 채울 때 입력 매개 변수에서 Platform::Array^ 를 대체할 수 있는 최적화 형식입니다.

구문

class ArrayReference

멤버

공용 생성자

속성 설명
ArrayReference::ArrayReference ArrayReference 클래스의 새 인스턴스를 초기화합니다.

Public 연산자

이름 설명
ArrayReference::operator() 연산자 ArrayReferencePlatform::Array<T>^*로 변환합니다.
ArrayReference::operator= 연산자 다른 ArrayReference 의 내용을 이 인스턴스에 할당합니다.

예외

설명

ArrayReference 를 사용하여 C 스타일 배열을 채워서 먼저 Platform::Array 변수로 복사한 다음 C 스타일 배열로 복사하는 추가적인 복사 작업을 피합니다. ArrayReference를 사용하면 한 번의 복사 작업만 있습니다. 코드 예제는 Array 및 WriteOnlyArray를 참조 하세요.

요구 사항

지원되는 최소 클라이언트: Windows 8

지원되는 최소 서버: Windows Server 2012

네임스페이스: Platform

헤더: vccorlib.h

ArrayReference::ArrayReference 생성자

Platform::ArrayReference 클래스의 새 인스턴스를 초기화합니다.

구문

ArrayReference(TArg* ataArg, unsigned int sizeArg, bool needsInitArg = false);
ArrayReference(ArrayReference&& otherArg)

매개 변수

dataArg
배열 데이터에 대한 포인터입니다.

sizeArg
소스 배열의 요소 수입니다.

otherArg
새 인스턴스 초기화를 위해 해당 데이터가 이동될 ArrayReference 개체입니다.

설명

ArrayReference::operator= 연산자

이동 의미 체계를 사용하여 지정된 개체를 현재 Platform::ArrayReference 개체에 할당합니다.

구문

ArrayReference& operator=(ArrayReference&& otherArg);

매개 변수

otherArg
현재 ArrayReference 개체로 이동되는 개체입니다.

Return Value

ArrayReference 형식의 개체에 대한 참조입니다.

설명

Platform::ArrayReference는 ref 클래스가 아닌 표준 C++ 클래스 템플릿입니다.

ArrayReference::operator() 연산자

현재 Platform::ArrayReference 개체를 Platform::Array 클래스로 다시 변환합니다.

구문

Array<TArg>^ operator ();

Return Value

Array<TArg>^ 형식의 개체 핸들입니다.

설명

Platform::ArrayReference 는 표준 C++ 클래스 템플릿이며 Platform::Array 는 ref 클래스입니다.

참고 항목

Platform 네임스페이스