KLayout Manual: Main Index » Class Index » API reference - Class LayerInfoAPI reference - Class LayerInfoNotation used in Ruby API documentation Description: A structure encapsulating the layer properties The layer properties describe how a layer is stored in a GDSII or OASIS file for example. Public constructors
Public methods
Detailed description[const] bool !=(const LayerInfo b)Description: Compare two layer info objects
This method was added in version 0.18. [const] bool ==(const LayerInfo b)Description: Compare two layer info objects
This method was added in version 0.18. [const] void assign(const LayerInfo other)Description: Assign the contents of another object to self This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content. void createDescription: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. [const] int datatypeDescription: Gets the datatype void datatype=(int datatype)Description: Set the datatype void destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing. [const] bool destroyed?Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. [const] LayerInfo dupDescription: Creates a copy of self [const] bool is_const_object?Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. [const] bool is_equivalent?(const LayerInfo b)Description: Equivalence of two layer info objects
First, layer and datatype are compared. The name is of second order and used only if no layer or datatype is given. This is basically a weak comparison that reflects the search preferences. This method was added in version 0.18. [const] bool is_named?Description: Returns true, if the layer is purely specified by name.
This method was added in version 0.18. [const] int layerDescription: Gets the layer number void layer=(int layer)Description: Sets the layer number [const] string nameDescription: Gets the layer name void name=(string name)Description: Set the layer name The name is set on OASIS input for example, if the layer has a name. [static] new LayerInfo newDescription: The default constructor. Creates a default LayerInfo object. This method was added in version 0.18. [static] new LayerInfo new(int layer,int datatype)Description: The constructor for a layer/datatype pair.
Creates a LayerInfo object representing a layer and datatype. This method was added in version 0.18. [static] new LayerInfo new(string name)Description: The constructor for a named layer.
Creates a LayerInfo object representing a named layer. This method was added in version 0.18. [static] new LayerInfo new(int layer,int datatype,string name)Description: The constructor for a named layer with layer and datatype.
Creates a LayerInfo object representing a named layer with layer and datatype. This method was added in version 0.18. [const] string to_sDescription: Convert the layer info object to a string
This method was added in version 0.18. |