DotNet Reference

.Net Reference

Detailed Description

The constraint target = vars[index].

This enforces that index takes one of the value in [0, vars_size()).

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

Public Member Functions

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

Static Public Attributes

const int IndexFieldNumber = 1
 Field number for the "index" field. More...
 
const int TargetFieldNumber = 2
 Field number for the "target" field. More...
 
const int VarsFieldNumber = 3
 Field number for the "vars" field. More...
 

Properties

static pb::MessageParser< ElementConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
int Index [get, set]
 
int Target [get, set]
 
pbc::RepeatedField< int > Vars [get]
 

Constructor & Destructor Documentation

◆ ElementConstraintProto() [1/2]

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

◆ ElementConstraintProto() [2/2]

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

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

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

◆ Clone()

ElementConstraintProto Clone ( )
inline

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

◆ Equals() [1/2]

bool Equals ( ElementConstraintProto  other)
inline

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

◆ Equals() [2/2]

override bool Equals ( object  other)
inline

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

◆ GetHashCode()

override int GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( ElementConstraintProto  other)
inline

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

◆ MergeFrom() [2/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

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

◆ ToString()

override string ToString ( )
inline

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

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

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

Member Data Documentation

◆ IndexFieldNumber

const int IndexFieldNumber = 1
static

Field number for the "index" field.

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

◆ TargetFieldNumber

const int TargetFieldNumber = 2
static

Field number for the "target" field.

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

◆ VarsFieldNumber

const int VarsFieldNumber = 3
static

Field number for the "vars" field.

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

Property Documentation

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

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

◆ Index

int Index
getset

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

◆ Parser

pb.MessageParser<ElementConstraintProto> Parser
staticget

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

◆ Target

int Target
getset

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

◆ Vars

pbc.RepeatedField<int> Vars
get

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


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