src
fields2cover
types
Strip.cpp
Go to the documentation of this file.
1
//=============================================================================
2
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3
// Author: Gonzalo Mier
4
// BSD-3 License
5
//=============================================================================
6
7
#include "
fields2cover/types/Strip.h
"
8
9
namespace
f2c::types
{
10
11
Cell
&
Strip::getCell
() {
12
return
this->
cell_
;
13
}
14
15
const
Cell
&
Strip::getCell
()
const
{
16
return
this->
cell_
;
17
}
18
19
void
Strip::setCell
(
const
Cell
& c) {
20
this->
cell_
= c;
21
}
22
23
std::string
Strip::getName
()
const
{
24
return
name_
;
25
}
26
27
void
Strip::setName
(
const
std::string& str) {
28
this->
name_
= str;
29
}
30
31
Strip
Strip::clone
()
const
{
32
Strip
new_strip;
33
new_strip.
setName
(this->
name_
);
34
new_strip.
setCell
(this->
cell_
.
clone
());
35
return
new_strip;
36
}
37
38
}
// namespace f2c::types
39
f2c::types
Types used by fields2cover library.
Definition:
Cell.h:20
f2c::types::Geometries::clone
SAMETYPE clone() const
Definition:
Geometries_impl.hpp:19
f2c::types::Strip::clone
Strip clone() const
Definition:
Strip.cpp:31
f2c::types::Strip::setCell
void setCell(const Cell &cell)
Definition:
Strip.cpp:19
f2c::types::Strip::getName
std::string getName() const
Definition:
Strip.cpp:23
f2c::types::Strip
Definition:
Strip.h:16
f2c::types::Cell
Definition:
Cell.h:32
f2c::types::Strip::cell_
Cell cell_
Definition:
Strip.h:28
f2c::types::Strip::setName
void setName(const std::string &str)
Definition:
Strip.cpp:27
f2c::types::Strip::name_
std::string name_
Definition:
Strip.h:29
Strip.h
f2c::types::Strip::getCell
Cell & getCell()
Definition:
Strip.cpp:11
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31