Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.SparsePermutationProto Class Referencesealed

A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length]. More...

Inheritance diagram for Google.OrTools.Sat.SparsePermutationProto:

Public Member Functions

 SparsePermutationProto ()
 
 SparsePermutationProto (SparsePermutationProto other)
 
SparsePermutationProto Clone ()
 
override bool Equals (object other)
 
bool Equals (SparsePermutationProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (SparsePermutationProto other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int SupportFieldNumber = 1
 Field number for the "support" field.
 
const int CycleSizesFieldNumber = 2
 Field number for the "cycle_sizes" field.
 

Properties

static pb::MessageParser< SparsePermutationProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
pbc::RepeatedField< int > Support [get]
 Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.
 
pbc::RepeatedField< int > CycleSizes [get]
 

Detailed Description

A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length].

Definition at line 7745 of file CpModel.pb.cs.

Constructor & Destructor Documentation

◆ SparsePermutationProto() [1/2]

Google.OrTools.Sat.SparsePermutationProto.SparsePermutationProto ( )
inline

Definition at line 7770 of file CpModel.pb.cs.

◆ SparsePermutationProto() [2/2]

Google.OrTools.Sat.SparsePermutationProto.SparsePermutationProto ( SparsePermutationProto other)
inline

Definition at line 7778 of file CpModel.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.Sat.SparsePermutationProto.CalculateSize ( )
inline

Definition at line 7882 of file CpModel.pb.cs.

◆ Clone()

SparsePermutationProto Google.OrTools.Sat.SparsePermutationProto.Clone ( )
inline

Definition at line 7786 of file CpModel.pb.cs.

◆ Equals() [1/2]

override bool Google.OrTools.Sat.SparsePermutationProto.Equals ( object other)
inline

Definition at line 7818 of file CpModel.pb.cs.

◆ Equals() [2/2]

bool Google.OrTools.Sat.SparsePermutationProto.Equals ( SparsePermutationProto other)
inline

Definition at line 7824 of file CpModel.pb.cs.

◆ GetHashCode()

override int Google.OrTools.Sat.SparsePermutationProto.GetHashCode ( )
inline

Definition at line 7838 of file CpModel.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.Sat.SparsePermutationProto.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 7905 of file CpModel.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.Sat.SparsePermutationProto.MergeFrom ( SparsePermutationProto other)
inline

Definition at line 7894 of file CpModel.pb.cs.

◆ ToString()

override string Google.OrTools.Sat.SparsePermutationProto.ToString ( )
inline

Definition at line 7850 of file CpModel.pb.cs.

◆ WriteTo()

void Google.OrTools.Sat.SparsePermutationProto.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 7856 of file CpModel.pb.cs.

Member Data Documentation

◆ CycleSizesFieldNumber

const int Google.OrTools.Sat.SparsePermutationProto.CycleSizesFieldNumber = 2
static

Field number for the "cycle_sizes" field.

Definition at line 7806 of file CpModel.pb.cs.

◆ SupportFieldNumber

const int Google.OrTools.Sat.SparsePermutationProto.SupportFieldNumber = 1
static

Field number for the "support" field.

Definition at line 7791 of file CpModel.pb.cs.

Property Documentation

◆ CycleSizes

pbc.RepeatedField<int> Google.OrTools.Sat.SparsePermutationProto.CycleSizes
get

Definition at line 7812 of file CpModel.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.Sat.SparsePermutationProto.Descriptor
staticget

Definition at line 7758 of file CpModel.pb.cs.

◆ Parser

pb.MessageParser<SparsePermutationProto> Google.OrTools.Sat.SparsePermutationProto.Parser
staticget

Definition at line 7754 of file CpModel.pb.cs.

◆ Support

pbc.RepeatedField<int> Google.OrTools.Sat.SparsePermutationProto.Support
get

Each cycle is listed one after the other in the support field. The size of each cycle is given (in order) in the cycle_sizes field.

Definition at line 7801 of file CpModel.pb.cs.


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