XJ music engine  1.9.6
In-game runtime engine for XJ music.
SegmentChord.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef SEGMENT_CHORD_H
4 #define SEGMENT_CHORD_H
5 
6 #include <set>
7 #include <string>
8 
9 #include "SegmentEntity.h"
10 
11 namespace XJ {
12 
13  class SegmentChord : public SegmentEntity {
14  public:
15  SegmentChord() = default;
16 
17  float position{};
18  std::string name;
19 
25  [[nodiscard]] bool equals(const SegmentChord &segmentChord) const;
26 
31  [[nodiscard]] unsigned long long hashCode() const;
32 
38  static std::set<std::string> getNames(const std::set<const SegmentChord *> &segmentChords);
39  };
40 
41 }// namespace XJ
42 
43 #endif//SEGMENT_CHORD_H
Definition: SegmentChord.h:13
static std::set< std::string > getNames(const std::set< const SegmentChord * > &segmentChords)
Definition: SegmentChord.cpp:24
bool equals(const SegmentChord &segmentChord) const
Definition: SegmentChord.cpp:8
unsigned long long hashCode() const
Definition: SegmentChord.cpp:16
std::string name
Definition: SegmentChord.h:18
SegmentChord()=default
float position
Definition: SegmentChord.h:17
Definition: SegmentEntity.h:15
Definition: ActiveAudio.h:11