#include <Segment.h>
◆ State
Enumerator |
---|
Planned | |
Crafting | |
Crafted | |
Failed | |
◆ Type
Enumerator |
---|
Pending | |
Initial | |
Continue | |
NextMain | |
NextMacro | |
◆ Segment()
◆ equals()
bool Segment::equals |
( |
const Segment & |
segment | ) |
const |
Assert equality with another Segment
- Parameters
-
- Returns
- true if equal
◆ hashCode()
unsigned long long Segment::hashCode |
( |
| ) |
const |
Determine a unique hash code for the Segment
- Returns
- hash code
◆ parseState()
Parse the Segment State enum value from a string
- Parameters
-
- Returns
- The Segment State enum value
◆ parseType()
Parse the Segment Type enum value from a string
- Parameters
-
- Returns
- The Segment Type enum value
◆ toString() [1/2]
std::string Segment::toString |
( |
const State & |
state | ) |
|
|
static |
Convert an Segment State enum value to a string
- Parameters
-
- Returns
- The string representation of the Segment State
◆ toString() [2/2]
std::string Segment::toString |
( |
const Type & |
type | ) |
|
|
static |
Convert an Segment Type enum value to a string
- Parameters
-
- Returns
- The string representation of the Segment Type
◆ operator<
Compare two Segments
- Parameters
-
- Returns
- true if lhs < rhs
◆ beginAtChainMicros
long XJ::Segment::beginAtChainMicros {} |
◆ chainId
UUID XJ::Segment::chainId {} |
◆ createdAt
◆ delta
int XJ::Segment::delta {} |
◆ durationMicros
std::optional<long> XJ::Segment::durationMicros {} |
◆ id
◆ intensity
float XJ::Segment::intensity {} |
◆ key
std::string XJ::Segment::key {} |
◆ state
State XJ::Segment::state {} |
◆ storageKey
std::string XJ::Segment::storageKey {} |
◆ tempo
float XJ::Segment::tempo {} |
◆ total
int XJ::Segment::total {} |
◆ type
Type XJ::Segment::type {} |
◆ updatedAt
◆ waveformPostroll
float XJ::Segment::waveformPostroll {} |
◆ waveformPreroll
float XJ::Segment::waveformPreroll {} |
The documentation for this class was generated from the following files:
- /home/runner/work/xjmusic/xjmusic/engine/include/xjmusic/segment/Segment.h
- /home/runner/work/xjmusic/xjmusic/engine/src/segment/Segment.cpp