All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.pytorch.EnumNameValueArrayRef Maven / Gradle / Ivy

// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE

package org.bytedeco.pytorch;

import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;

import static org.bytedeco.pytorch.global.torch.*;

@Name("c10::ArrayRef") @NoOffset @Properties(inherit = org.bytedeco.pytorch.presets.torch.class)
public class EnumNameValueArrayRef extends Pointer {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public EnumNameValueArrayRef(Pointer p) { super(p); }
    /** Native array allocator. Access with {@link Pointer#position(long)}. */
    public EnumNameValueArrayRef(long size) { super((Pointer)null); allocateArray(size); }
    private native void allocateArray(long size);
    @Override public EnumNameValueArrayRef position(long position) {
        return (EnumNameValueArrayRef)super.position(position);
    }
    @Override public EnumNameValueArrayRef getPointer(long i) {
        return new EnumNameValueArrayRef((Pointer)this).offsetAddress(i);
    }

  /** \name Constructors
   *  \{
   

* Construct an empty ArrayRef. */ /* implicit */ public EnumNameValueArrayRef() { super((Pointer)null); allocate(); } private native void allocate(); /** Construct an ArrayRef from a single element. */ // TODO Make this explicit public EnumNameValueArrayRef(@Const @ByRef EnumNameValue OneElt) { super((Pointer)null); allocate(OneElt); } private native void allocate(@Const @ByRef EnumNameValue OneElt); /** Construct an ArrayRef from a pointer and length. */ public EnumNameValueArrayRef(@Const EnumNameValue data, @Cast("size_t") long length) { super((Pointer)null); allocate(data, length); } private native void allocate(@Const EnumNameValue data, @Cast("size_t") long length); /** Construct an ArrayRef from a range. */ public EnumNameValueArrayRef(@Const EnumNameValue begin, @Const EnumNameValue end) { super((Pointer)null); allocate(begin, end); } private native void allocate(@Const EnumNameValue begin, @Const EnumNameValue end); /** Construct an ArrayRef from a SmallVector. This is templated in order to * avoid instantiating SmallVectorTemplateCommon whenever we * copy-construct an ArrayRef. */ /** Construct an ArrayRef from a std::vector. */ // The enable_if stuff here makes sure that this isn't used for // std::vector, because ArrayRef can't work on a std::vector // bitfield. /** Construct an ArrayRef from a std::array */ /** Construct an ArrayRef from a C array. */ /** Construct an ArrayRef from a std::initializer_list. */ /* implicit */ /** \} * \name Simple Operations * \{ */ public native @ByVal @Cast("const c10::ArrayRef::iterator*") EnumNameValue begin(); public native @ByVal @Cast("const c10::ArrayRef::iterator*") EnumNameValue end(); // These are actually the same as iterator, since ArrayRef only // gives you const iterators. public native @ByVal @Cast("const c10::ArrayRef::const_iterator*") EnumNameValue cbegin(); public native @ByVal @Cast("const c10::ArrayRef::const_iterator*") EnumNameValue cend(); /** empty - Check if the array is empty. */ public native @Cast("const bool") boolean empty(); public native @Const EnumNameValue data(); /** size - Get the array size. */ public native @Cast("const size_t") long size(); /** front - Get the first element. */ public native @Const @ByRef EnumNameValue front(); /** back - Get the last element. */ public native @Const @ByRef EnumNameValue back(); /** equals - Check for element-wise equality. */ public native @Cast("const bool") boolean equals(@ByVal EnumNameValueArrayRef RHS); /** slice(n, m) - Take M elements of the array starting at element N */ public native @Const @ByVal EnumNameValueArrayRef slice(@Cast("size_t") long N, @Cast("size_t") long M); /** slice(n) - Chop off the first N elements of the array. */ public native @Const @ByVal EnumNameValueArrayRef slice(@Cast("size_t") long N); /** \} * \name Operator Overloads * \{ */ public native @Const @ByRef @Name("operator []") EnumNameValue get(@Cast("size_t") long Index); /** Vector compatibility */ /// public native @Const @ByRef EnumNameValue at(@Cast("size_t") long Index); /** Disallow accidental assignment from a temporary. * * The declaration here is extra complicated so that "arrayRef = {}" * continues to select the move assignment operator. */ /** Disallow accidental assignment from a temporary. * * The declaration here is extra complicated so that "arrayRef = {}" * continues to select the move assignment operator. */ /** \} * \name Expensive Operations * \{ */ public native @StdVector EnumNameValue vec(); /** \} */ }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy