C++ Reference

C++ Reference: CP-SAT

Detailed Description

Represents a closed interval [start, end].

We must have start <= end.

Definition at line 33 of file sorted_interval_list.h.

Public Member Functions

 ClosedInterval ()
 
 ClosedInterval (int64 s, int64 e)
 
std::string DebugString () const
 
bool operator== (const ClosedInterval &other) const
 
bool operator< (const ClosedInterval &other) const
 

Public Attributes

int64 start = 0
 
int64 end = 0
 

Constructor & Destructor Documentation

◆ ClosedInterval() [1/2]

ClosedInterval ( )
inline

Definition at line 34 of file sorted_interval_list.h.

◆ ClosedInterval() [2/2]

ClosedInterval ( int64  s,
int64  e 
)
inline

Definition at line 35 of file sorted_interval_list.h.

Member Function Documentation

◆ DebugString()

std::string DebugString ( ) const

◆ operator<()

bool operator< ( const ClosedInterval other) const
inline

Definition at line 48 of file sorted_interval_list.h.

◆ operator==()

bool operator== ( const ClosedInterval other) const
inline

Definition at line 41 of file sorted_interval_list.h.

Member Data Documentation

◆ end

int64 end = 0

Definition at line 53 of file sorted_interval_list.h.

◆ start

int64 start = 0

Definition at line 52 of file sorted_interval_list.h.


The documentation for this struct was generated from the following file: