FieldType getType()
Gets the type under the FieldType enum.
bool isIntersecting(const Segment &other)
Determines if two Segments are intersecting. Two segments are said to be intersecting if they contain...
bool operator==(const Segment &other)
Checks if two segment objects are identical, which is if their start and end segments are identical...
int length()
Gets the length of the Segment, which is the number of segment units it represents. For example, the length of the Segment 16 is 6.
Segment(int, int)
Constructs the Segment object.
std::string getTypeName()
Gets the type name, which is "Segment".
FieldType
Enum that represents all the field types.
std::string getName()
Gets the name of the Segment. The name is a string that concatenates the start and end segment values...