Set the value for this slot.
Set the value of this slot using an option.
Set the value of this slot using an option. If parameter is Some(value) the value is set, if None nothing is changed.
the option to use.
Set a value for this slot but inform the provided hook before this happens.
Set a value for this slot but inform the provided hook before this happens.
the value to set.
the hook to call before setting the value.
Set the value and return the containing Cubbie.
Set the value and return the containing Cubbie.
the value to set.
the cubbie this slot belongs to.
Convenience method for more concise access to slot value.
Convenience method for more concise access to slot value.
value of the slot.
the cubbie constructor for cubbies the slot contains.
The cubbie this slot is contained in.
The value of a RefSlot is the id of the referenced cubbie.
The value of a RefSlot is the id of the referenced cubbie. To get an actual cubbie, clients need to call this method. It takes as implicit parameter a mapping from ids to cubbies. This is a deliberate choice: the slot itself is not supposed to store any internal state/mapping to cubbies, it only stores the id.
mapping from ids to cubbies.
the object associated with the given id in the given mapping.
The slot of the cubbies that needs to have a particular target value for the cubbie to be in this slot.
The slot of the cubbies that needs to have a particular target value for the cubbie to be in this slot.
the foreign slot.
Does the cubbie have this slot.
Does the cubbie have this slot.
true iff the underyling map has this slot.
the name of the slot.
the name of the slot.
Returns Some(value) if the cubbie has the given slot, or None otherwise.
Returns Some(value) if the cubbie has the given slot, or None otherwise.
Some(value) if the cubbie has the given slot, or None otherwise.
Set a raw value into the underlying map.
Set a raw value into the underlying map. Should generally only be used in other library code.
the value to be set.
Set the value of this slot using an option.
Set the value of this slot using an option. If parameter is Some(value) the value is set, if None nothing is changed. Returns this cubbie.
the option to use.
the encompassing cubbie.
Set value of slot and return this Cubbie.
Set value of slot and return this Cubbie.
value to set.
this cubbie.
What value does the foreign slot should have.
What value does the foreign slot should have.
Some(target-value) or None if this cubbie has no values in this slot.
Can there be several cubbies with the target value?
Can there be several cubbies with the target value?
true iff there can be several cubbies with the given target value.
The current value of the slot.
The current value of the slot.
the value of slot. May throw an exception if the underlying map has no field corresponding to this slot.
A RefSlot is a simple type of AbstractInverseSlot which "contains" all cubbies of a given type with the given ID. Assuming uniqueness of IDs, it's a unique inverse slot.
The RefSlot field only stores the actual ID of the referenced cubbie. This means that calling value or apply() on this slot returns (untyped) ids. Likewise, the setter methods only take ids. Convenience methods exist to pass in cubbies instead.
the type of cubbies this slot contains.
the name of the slot.
the cubbie constructor for cubbies the slot contains.