ConsequentDataStorageOutputRef::ConsequentDataStorageOutputRef: различия между версиями
Перейти к навигации
Перейти к поиску
Параметры шаблона
Параметры
(Новая страница: «{{function_begin|ConsequentDataStorageOutputRef() noexcept; //1 ConsequentDataStorageOutputRef(IConsequentDataStorageOutput* pConsequentDataStorageOutput) noexcep…») |
|||
Строка 1: | Строка 1: | ||
{{function_begin|ConsequentDataStorageOutputRef() noexcept; //1 | {{function_begin|ConsequentDataStorageOutputRef() noexcept; //1 | ||
ConsequentDataStorageOutputRef(IConsequentDataStorageOutput* | ConsequentDataStorageOutputRef(IConsequentDataStorageOutput* pStorage) noexcept; //2 | ||
ConsequentDataStorageOutputRef(const ConsequentDataStorageOutputRef& right) noexcept; //3 | ConsequentDataStorageOutputRef(const ConsequentDataStorageOutputRef& right) noexcept; //3 | ||
ConsequentDataStorageOutputRef(ConsequentDataStorageOutputRef&& right) noexcept; //4 | ConsequentDataStorageOutputRef(ConsequentDataStorageOutputRef&& right) noexcept; //4 | ||
Строка 15: | Строка 15: | ||
{{function template paramlist end}} | {{function template paramlist end}} | ||
{{function_paramlist begin}} | {{function_paramlist begin}} | ||
{{function_paramlist add| | {{function_paramlist add|pStorage|Указатель на реализацию [[IConsequentDataStorageOutput]] накопителя данных.|paramdir=[in]}} | ||
{{function_paramlist add|right|Адаптер, интерфейсный указатель которого инициализирует создаваемый адаптер.}} | {{function_paramlist add|right|Адаптер, интерфейсный указатель которого инициализирует создаваемый адаптер.}} | ||
{{function_paramlist end}} | {{function_paramlist end}} | ||
{{function_end}} | {{function_end}} |
Текущая версия на 19:27, 16 августа 2019
ConsequentDataStorageOutputRef() noexcept; //1
ConsequentDataStorageOutputRef(IConsequentDataStorageOutput* pStorage) noexcept; //2
ConsequentDataStorageOutputRef(const ConsequentDataStorageOutputRef& right) noexcept; //3
ConsequentDataStorageOutputRef(ConsequentDataStorageOutputRef&& right) noexcept; //4
template <class AnotherAdapter>
ConsequentDataStorageOutputRef(const AnotherAdapter& right) noexcept; //5
Конструкторы, определенные требованиями ссылочного адаптера.
- Конструктор по умолчанию, инициализирующий экземпляр адаптера нулевым адресом.
- Конструктор, инициализирующий экземпляр адаптера адресом реализации накопителя данных.
- Конструктор, выполняющий инициализацию адаптера копированием адреса реализации, с которой ассоциирован адаптер, указанный параметрически.
- Конструктор, выполняющий инициализацию адаптера с перемещением адреса реализации, с которой ассоциирован параметр. Состояние right в результате операции не определено.
- Конструктор, инициализирующий адаптер адресом реализации интерфейса, приведенным из адреса, заданного адаптером right, к типу IConsequentDataStorageOutput. Шаблон 5 участвует в перегрузке, если только подтип interface_type типа параметра существует и задает тип, указатель на который неявно преобразуем в
IConsequentDataStorageOutput*
.
AnotherAdapter | Тип адаптера right в конструкторе 5. Значение std::is_convertible_v<typename AnotherAdapter::interface_type*, IConsequentDataStorageOutput*> должно быть true. |
[in] | pStorage | Указатель на реализацию IConsequentDataStorageOutput накопителя данных. |
right | Адаптер, интерфейсный указатель которого инициализирует создаваемый адаптер. |