DotNet Reference

.Net Reference

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 7296 of file CpModel.pb.cs.

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. More...
 
const int CycleSizesFieldNumber = 2
 Field number for the "cycle_sizes" field. More...
 

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. More...
 
pbc::RepeatedField< int > CycleSizes [get]
 

Constructor & Destructor Documentation

◆ SparsePermutationProto() [1/2]

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

◆ SparsePermutationProto() [2/2]

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

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

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

◆ Clone()

SparsePermutationProto Clone ( )
inline

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

◆ Equals() [1/2]

override bool Equals ( object  other)
inline

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

◆ Equals() [2/2]

bool Equals ( SparsePermutationProto  other)
inline

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

◆ GetHashCode()

override int GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

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

◆ MergeFrom() [2/2]

void MergeFrom ( SparsePermutationProto  other)
inline

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

◆ ToString()

override string ToString ( )
inline

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

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

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

Member Data Documentation

◆ CycleSizesFieldNumber

const int CycleSizesFieldNumber = 2
static

Field number for the "cycle_sizes" field.

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

◆ SupportFieldNumber

const int SupportFieldNumber = 1
static

Field number for the "support" field.

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

Property Documentation

◆ CycleSizes

pbc.RepeatedField<int> CycleSizes
get

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

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

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

◆ Parser

pb.MessageParser<SparsePermutationProto> Parser
staticget

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

◆ Support

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.

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


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