OR-Tools  8.2
PiecewiseSegment

Detailed Description

Definition at line 38 of file piecewise_linear_function.h.

Public Member Functions

 PiecewiseSegment (int64 point_x, int64 point_y, int64 slope, int64 other_point_x)
 
int64 Value (int64 x) const
 
int64 start_x () const
 
int64 end_x () const
 
int64 start_y () const
 
int64 end_y () const
 
int64 slope () const
 
int64 intersection_y () const
 
void ExpandEnd (int64 end_x)
 
void AddConstantToX (int64 constant)
 
void AddConstantToY (int64 constant)
 
std::string DebugString () const
 

Static Public Member Functions

static bool SortComparator (const PiecewiseSegment &segment1, const PiecewiseSegment &segment2)
 
static bool FindComparator (int64 point, const PiecewiseSegment &segment)
 

Constructor & Destructor Documentation

◆ PiecewiseSegment()

PiecewiseSegment ( int64  point_x,
int64  point_y,
int64  slope,
int64  other_point_x 
)

Definition at line 76 of file piecewise_linear_function.cc.

Member Function Documentation

◆ AddConstantToX()

void AddConstantToX ( int64  constant)

Definition at line 240 of file piecewise_linear_function.cc.

◆ AddConstantToY()

void AddConstantToY ( int64  constant)

Definition at line 250 of file piecewise_linear_function.cc.

◆ DebugString()

std::string DebugString ( ) const

Definition at line 258 of file piecewise_linear_function.cc.

◆ end_x()

int64 end_x ( ) const
inline

Definition at line 48 of file piecewise_linear_function.h.

◆ end_y()

int64 end_y ( ) const
inline

Definition at line 52 of file piecewise_linear_function.h.

◆ ExpandEnd()

void ExpandEnd ( int64  end_x)

Definition at line 236 of file piecewise_linear_function.cc.

◆ FindComparator()

bool FindComparator ( int64  point,
const PiecewiseSegment segment 
)
static

Definition at line 231 of file piecewise_linear_function.cc.

◆ intersection_y()

int64 intersection_y ( ) const
inline

Definition at line 56 of file piecewise_linear_function.h.

◆ slope()

int64 slope ( ) const
inline

Definition at line 54 of file piecewise_linear_function.h.

◆ SortComparator()

bool SortComparator ( const PiecewiseSegment segment1,
const PiecewiseSegment segment2 
)
static

Definition at line 226 of file piecewise_linear_function.cc.

◆ start_x()

int64 start_x ( ) const
inline

Definition at line 46 of file piecewise_linear_function.h.

◆ start_y()

int64 start_y ( ) const
inline

Definition at line 50 of file piecewise_linear_function.h.

◆ Value()

int64 Value ( int64  x) const

Definition at line 85 of file piecewise_linear_function.cc.


The documentation for this class was generated from the following files: