Definition at line 156 of file testClone2.cpp.
◆ Element
◆ DummyTbl() [1/4]
◆ ~DummyTbl()
Definition at line 163 of file testClone2.cpp.
164 {
165 std::cout <<
" ~DummyTbl() this=" <<
this <<
" data=" <<
data << std::endl;
167 std::cout <<
" - freed =" <<
allocated << std::endl;
169 }
170 else
171 std::cout << " - nothing to do (already moved)" << std::endl;
173 }
References allocated, data, and nbDeleted.
◆ DummyTbl() [2/4]
DummyTbl::DummyTbl |
( |
int |
i, |
|
|
int |
val |
|
) |
| |
|
inline |
Definition at line 174 of file testClone2.cpp.
176 {
177 std::cout << " DummyTbl( " << i << " ) this=" << this << std::endl;
180 std::cout <<
" - allocated=" <<
allocated << std::endl;
181 std::cout <<
" - copied =" <<
size << std::endl;
183 }
References allocated, data, nbCreated, and size.
◆ DummyTbl() [3/4]
DummyTbl::DummyTbl |
( |
const DummyTbl & |
a | ) |
|
|
inline |
Definition at line 184 of file testClone2.cpp.
185 {
186 std::cout << " DummyTbl( const DummyTbl & a ) this=" << this << " a=" << &a << std::endl;
188 for (
int i = 0; i <
size; ++i )
data[ i ] = a.
data[ i ];
189 std::cout <<
" - allocated=" <<
allocated << std::endl;
190 std::cout <<
" - copied =" <<
size << std::endl;
192 }
References allocated, data, nbCreated, and size.
◆ DummyTbl() [4/4]
◆ operator=()
Definition at line 208 of file testClone2.cpp.
209 {
211 std::cout << " DummyTbl::operator=( const DummyTbl & a ) " << std::endl;
212 return *this;
213 }
References data.
◆ reset()
static void DummyTbl::reset |
( |
| ) |
|
|
inlinestatic |
◆ setValue()
void DummyTbl::setValue |
( |
int |
v | ) |
const |
|
inline |
◆ value()
int DummyTbl::value |
( |
| ) |
const |
|
inline |
Definition at line 204 of file testClone2.cpp.
References data.
Referenced by CloneToValueMember::value(), CloneToCountedMember::value(), CloneToCowMember::value(), CloneToPtrMember::value(), AliasToRefMember::value(), AliasToPtrMember::value(), AliasToCountedPtrOrPtrMember::value(), AliasToConstRefMember::value(), ConstAliasToConstRefMember::value(), ConstAliasToConstPtrMember::value(), and ConstAliasToCountedConstPtrOrConstPtrMember::value().
◆ allocated
◆ data
◆ nbCreated
int DummyTbl::nbCreated = 0 |
|
static |
◆ nbDeleted
int DummyTbl::nbDeleted = 0 |
|
static |
◆ nbMoved
int DummyTbl::nbMoved = 0 |
|
static |
◆ size
The documentation for this struct was generated from the following file: