Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
ConnectorCollection.h
1// trax track library
2// AD 2014
3//
4// "the resolution of all the fruitless searches"
5//
6// Peter Gabriel
7//
8// Copyright (c) 2025 Trend Redaktions- und Verlagsgesellschaft mbH
9// Copyright (c) 2019 Marc-Michael Horstmann
10//
11// Permission is hereby granted to any person obtaining a copy of this software
12// and associated source code (the "Software"), to use, view, and study the
13// Software for personal or internal business purposes, subject to the following
14// conditions:
15//
16// 1. Redistribution, modification, sublicensing, or commercial use of the
17// Software is NOT permitted without prior written consent from the copyright
18// holder.
19//
20// 2. The Software is provided "AS IS", without warranty of any kind, express
21// or implied.
22//
23// 3. All copies of the Software must retain this license notice.
24//
25// For further information, please contact: horstmann.marc@trendverlag.de
26
27#pragma once
28
29#include "trax/Connector.h"
30#include "Collection.h"
31#include "CollectionDecorator.h"
32
33namespace trax{
34
36 struct ConnectorCollection : Collection<ConnectorCollection,Connector>{
37
39 static std::unique_ptr<ConnectorCollection> Make() noexcept;
40 };
41
42
50 public:
53
54
57 ConnectorCollectionDecorator( std::unique_ptr<ConnectorCollection> pConnectorCollection )
58 : CollectionDecorator<Decorator<ConnectorCollection>>(std::move(pConnectorCollection))
59 {}
60 };
61}
CollectionDecorator(std::shared_ptr< InterfaceType > pComponent)
Definition CollectionDecorator.h:58
ConnectorCollectionDecorator(std::unique_ptr< ConnectorCollection > pConnectorCollection)
Constructs the decorator.
Definition ConnectorCollection.h:57
ConnectorCollection ComponentType
Type of the decoree.
Definition ConnectorCollection.h:52
The base for decorator implementations. Needed as BaseDecorator to combine other decorator implemente...
Definition ObjectIDDecorator.h:27
STL namespace.
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
Collection to hold a set of Connector objects.
Definition ConnectorCollection.h:36
static std::unique_ptr< ConnectorCollection > Make() noexcept
Makes a standard ConnectorCollection object.