|
| 1 | +package org.bytedeco.javacpp.chrono; |
| 2 | + |
| 3 | +import org.bytedeco.javacpp.Pointer; |
| 4 | +import org.bytedeco.javacpp.annotation.*; |
| 5 | + |
| 6 | +@Name("std::chrono::nanoseconds") @Properties(inherit = org.bytedeco.javacpp.presets.chrono.class) |
| 7 | +public class Nanoseconds extends Pointer { |
| 8 | + public Nanoseconds() { allocate(); } |
| 9 | + private native void allocate(); |
| 10 | + public Nanoseconds(long r) { allocate(r); } |
| 11 | + private native void allocate(long r); |
| 12 | + public Nanoseconds(Microseconds d) { allocate(d); } |
| 13 | + private native void allocate(@Const @ByRef Microseconds d); |
| 14 | + public Nanoseconds(Milliseconds d) { allocate(d); } |
| 15 | + private native void allocate(@Const @ByRef Milliseconds d); |
| 16 | + public Nanoseconds(Seconds d) { allocate(d); } |
| 17 | + private native void allocate(@Const @ByRef Seconds d); |
| 18 | + public Nanoseconds(Minutes d) { allocate(d); } |
| 19 | + private native void allocate(@Const @ByRef Minutes d); |
| 20 | + public Nanoseconds(Hours d) { allocate(d); } |
| 21 | + private native void allocate(@Const @ByRef Hours d); |
| 22 | + public Nanoseconds(SystemDuration d) { super((Pointer)null); allocate(d); }; |
| 23 | + private native void allocate(@Const @ByRef SystemDuration d); |
| 24 | + public Nanoseconds(HighResolutionDuration d) { super((Pointer)null); allocate(d); }; |
| 25 | + private native void allocate(@Const @ByRef HighResolutionDuration d); |
| 26 | + public Nanoseconds(SteadyDuration d) { super((Pointer)null); allocate(d); }; |
| 27 | + private native void allocate(@Const @ByRef SteadyDuration d); |
| 28 | + |
| 29 | + public native @Name("operator=") @ByRef Nanoseconds put(@Const @ByRef Nanoseconds other); |
| 30 | + public native @Name("operator-") @ByVal Nanoseconds negate(); |
| 31 | + public native @Name("operator++") @ByRef Nanoseconds increment(); |
| 32 | + public native @Name("operator--") @ByRef Nanoseconds decrement(); |
| 33 | + public native @Name("operator+=") @ByRef Nanoseconds addPut(@Const @ByRef Nanoseconds d); |
| 34 | + public native @Name("operator-=") @ByRef Nanoseconds subtractPut(@Const @ByRef Nanoseconds d); |
| 35 | + public native @Name("operator*=") @ByRef Nanoseconds multiplyPut(@Const @ByRef long rhs); |
| 36 | + public native @Name("operator%=") @ByRef Nanoseconds modPut(@Const @ByRef long rhs); |
| 37 | + public native @Name("operator%=") @ByRef Nanoseconds modPut(@Const @ByRef Nanoseconds rhs); |
| 38 | + |
| 39 | + public native long count(); |
| 40 | + static public native @ByVal @Name("zero") Nanoseconds zero_(); |
| 41 | + static public native @ByVal Nanoseconds min(); |
| 42 | + static public native @ByVal Nanoseconds max(); |
| 43 | +} |
0 commit comments