0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
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
22#include "util/util.h"
23
24#include <sstream>
25
27
29 : element{using_namespace}
30{
31}
32
34{
35 return l.id() == r.id();
36}
37
38std::string objc_interface::full_name_impl(bool /*relative*/) const
39{
40 return name();
41}
42
44
46
48
50
52{
53 members_.emplace_back(std::move(member));
54}
55
57{
58 methods_.emplace_back(std::move(method));
59}
60
61const std::vector<objc_member> &objc_interface::members() const
62{
63 return members_;
64}
65
66const std::vector<objc_method> &objc_interface::methods() const
67{
68 return methods_;
69}
70
71std::optional<std::string> objc_interface::doxygen_link() const
72{
73 return std::nullopt;
74}
75} // namespace clanguml::class_diagram::model