struct ORTools::Sat::CircuitConstraintProto

Included Modules

Defined in:

ortools-sat/connector/cp_model.pb.cr

Constant Summary

FIELDS = {3 => {name: :tails, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :heads, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :literals, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(tails : Array(Int32) | Nil = nil, heads : Array(Int32) | Nil = nil, literals : Array(Int32) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def heads : Array(Int32) | Nil #

def heads=(heads : Array(Int32) | Nil) #

def literals : Array(Int32) | Nil #

def literals=(literals : Array(Int32) | Nil) #

def tails : Array(Int32) | Nil #

def tails=(tails : Array(Int32) | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #