FlowArithmeticCalculator
1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
UITextsRow.cpp
Go to the documentation of this file.
1
#include "
UITextsRow.h
"
2
3
namespace
business_logic::components
{
4
UITextsRow::UITextsRow
(
const
std::vector<UIText>& texts) {
5
this->texts.reserve(
texts
.size());
6
std::copy(
texts
.begin(),
texts
.end(), std::back_inserter(this->texts));
7
}
8
9
UITextsRow
&
UITextsRow::operator=
(
const
UITextsRow
& other) {
10
if
(
this
!= &other) {
11
this->
texts
= other.
texts
;
12
}
13
14
return
*
this
;
15
}
16
17
UITextsRow::UITextsRow
(
UITextsRow
&& other) noexcept : texts(std::move(other.texts)) {}
18
19
UITextsRow
&
UITextsRow::operator=
(
UITextsRow
&& other)
noexcept
{
20
if
(
this
!= &other) {
21
this->texts = std::move(other.texts);
22
}
23
24
return
*
this
;
25
}
26
}
// namespace business_logic::components
UITextsRow.h
business_logic::components::UITextsRow
The UI renderable row of UITexts primitive.
Definition
UITextsRow.h:15
business_logic::components::UITextsRow::texts
std::vector< UIText > texts
The texts in this row.
Definition
UITextsRow.h:41
business_logic::components::UITextsRow::UITextsRow
UITextsRow(const std::vector< UIText > &texts)
Constructor.
Definition
UITextsRow.cpp:4
business_logic::components::UITextsRow::operator=
UITextsRow & operator=(const UITextsRow &)
Definition
UITextsRow.cpp:9
business_logic::components
UI primitives and components to be rendered as part of the UI.
Definition
UIText.cpp:3
src
business_logic
components
UITextsRow.cpp
Generated by
1.9.8