xtd - Reference Guide 0.2.0
trace_listener_collection.h
Go to the documentation of this file.
1 #pragma once
5 #include <memory>
6 #include <vector>
7 #include "trace_listener.h"
8 
10 namespace xtd {
12  namespace diagnostics {
24  class core_export_ trace_listener_collection : public std::vector<std::shared_ptr<xtd::diagnostics::trace_listener>> {
25  public:
27 
30  using base = std::vector<value_type>;
32 
34 
39  explicit trace_listener_collection(const allocator_type& allocator = allocator_type());
42  trace_listener_collection(const std::initializer_list<value_type>& il);
45  explicit trace_listener_collection(const base& collection);
47  trace_listener_collection& operator=(const trace_listener_collection& collection);
49  bool operator==(const trace_listener_collection& value) const;
50  bool operator!=(const trace_listener_collection& value) const;
52 
54 
56  using base::operator[];
72  const_reference operator[](const xtd::ustring& name) const;
88  reference operator[](const xtd::ustring& name);
90 
91  private:
92  inline static value_type empty_;
93  };
94  }
95 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< value_type > base
Represents the base type of the collection.
Definition: trace_listener_collection.h:30
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Represents a collection of xtd::diagnostics::trace_listener.
Definition: trace_listener_collection.h:24
Contains xtd::diagnostics::trace_listener listener.