0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
src
class_diagram
model
objc_interface.cc
Go to the documentation of this file.
1
/**
2
* @file src/class_diagram/model/objc_interface.cc
3
*
4
* Copyright (c) 2021-2025 Bartek Kryza <bkryza@gmail.com>
5
*
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
19
#include "
objc_interface.h
"
20
21
#include "
common/model/filters/diagram_filter.h
"
22
#include "
util/util.h
"
23
24
#include <sstream>
25
26
namespace
clanguml::class_diagram::model
{
27
28
objc_interface::objc_interface
(
const
common::model::namespace_
&using_namespace)
29
: element{using_namespace}
30
{
31
}
32
33
bool
operator==
(
const
objc_interface
&l,
const
objc_interface
&r)
34
{
35
return
l.
id
() == r.
id
();
36
}
37
38
std::string
objc_interface::full_name_impl
(
bool
/*relative*/
)
const
39
{
40
return
name
();
41
}
42
43
bool
objc_interface::is_protocol
()
const
{
return
is_protocol_
; }
44
45
void
objc_interface::is_protocol
(
bool
ip) {
is_protocol_
= ip; }
46
47
bool
objc_interface::is_category
()
const
{
return
is_category_
; }
48
49
void
objc_interface::is_category
(
bool
cat) {
is_category_
= cat; }
50
51
void
objc_interface::add_member
(
objc_member
&&member)
52
{
53
members_
.emplace_back(std::move(member));
54
}
55
56
void
objc_interface::add_method
(
objc_method
&&method)
57
{
58
methods_
.emplace_back(std::move(method));
59
}
60
61
const
std::vector<objc_member> &
objc_interface::members
()
const
62
{
63
return
members_
;
64
}
65
66
const
std::vector<objc_method> &
objc_interface::methods
()
const
67
{
68
return
methods_
;
69
}
70
71
std::optional<std::string>
objc_interface::doxygen_link
()
const
72
{
73
return
std::nullopt;
74
}
75
}
// namespace clanguml::class_diagram::model
Copyright © 2022-present
Bartek Kryza
Generated by
1.9.7