xtd 0.2.0
Loading...
Searching...
No Matches
trace_listener_collection.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <memory>
7#include "../iequatable.hpp"
8#include "trace_listener.hpp"
9
11namespace xtd {
13 namespace diagnostics {
29 class core_export_ trace_listener_collection : public xtd::collections::generic::list<xtd::sptr<xtd::diagnostics::trace_listener>>, public xtd::iequatable<trace_listener_collection> {
30 public:
32
37
39
42 explicit trace_listener_collection() = default;
45 trace_listener_collection(const std::initializer_list<value_type>& il); // Can't be explicit by design.
48 explicit trace_listener_collection(const base& collection);
50 trace_listener_collection& operator =(const trace_listener_collection& collection);
53
55 bool equals(const object& value) const noexcept override;
56 using list::equals;
57 bool equals(const trace_listener_collection& value) const noexcept override;
59
61
63 using base::operator [];
79 const_reference operator [](const xtd::string& name) const;
95 reference operator [](const xtd::string& name);
97
99
100 private:
101 inline static value_type empty_;
102 };
103 }
104}
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:80
typename ilist< xtd::sptr< xtd::diagnostics::trace_listener > >::value_type value_type
Definition list.hpp:86
bool equals(const object &value) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::collections::generic::list< value_type > base
Represents the base type of the collection.
Definition trace_listener_collection.hpp:35
trace_listener_collection(const std::initializer_list< value_type > &il)
Creates a new object xtd::diagnostics::trace_listener_collection with specified initializer list.
trace_listener_collection()=default
Creates a new object xtd::diagnostics::trace_listener_collection with specified allocator (optional).
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains xtd::iequatable interface.
Contains xtd::collections::generic::list <type_t> class.
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::diagnostics::trace_listener listener.