Lines Matching defs:Result

267         static struct Result()  in Result()  function
518 static struct Result struct
520 private alias R = Unqual!Range;
521 public R source;
522 private size_t _n;
528 private void eliminateSlackElements() in eliminateSlackElements()
562 return Result(source.save, _n); in save() argument
568 enum bool empty = false;
572 @property bool empty() in empty()
578 @property auto ref front() in front()
599 void popFront() in popFront()
606 void popBack() in popBack()
611 @property auto ref back() in back()
638 auto ref opIndex(size_t n) in opIndex()
686 return Result(r, n); argument
905 static struct Result struct
909 alias RvalueElementType = CommonType!(staticMap!(.ElementType, R));
910 private template sameET(A) in sameET()
915 enum bool allSameType = allSatisfy!(sameET, R);
920 alias ElementType = ref RvalueElementType;
924 alias ElementType = RvalueElementType;
928 static ref RvalueElementType fixRef(ref RvalueElementType val) in fixRef()
935 static RvalueElementType fixRef(RvalueElementType val) in fixRef()
942 R source;
946 this(R input) in this()
959 enum bool empty = false;
963 @property bool empty() in empty()
974 @property auto save() in save()
984 void popFront() in popFront()
994 @property auto ref front() in front()
1009 @property void front(RvalueElementType v) in front()
1023 RvalueElementType moveFront() in moveFront()
1036 @property auto ref back() in back()
1046 void popBack() in popBack()
1058 RvalueElementType moveBack() in moveBack()
1071 @property void back(RvalueElementType v) in back()
1086 @property size_t length() in length()
1096 alias opDollar = length;
1101 auto ref opIndex(size_t index) in opIndex()
1121 RvalueElementType moveAt(size_t index) in moveAt()
1141 void opIndexAssign(ElementType v, size_t index) in opIndexAssign()
1165 auto opSlice(size_t begin, size_t end) in opSlice()
1375 static struct Result struct
1382 {
1386 private bool condition;
1387 private @property ref R1 r1() in r1()
1392 private @property ref R2 r2() in r2()
1398 this(bool condition, R1 r1, R2 r2) in this()
1409 this(this) in this()
1422 ~this() in ~this()
1430 enum bool empty = false;
1432 @property bool empty() in empty()
1437 @property auto ref front() in front()
1442 void popFront() in popFront()
1448 @property auto save() in save()
1463 auto moveFront() in moveFront()
1470 @property auto ref back() in back()
1475 void popBack() in popBack()
1481 auto moveBack() in moveBack()
1495 @property size_t length() in length()
1499 alias opDollar = length;
1504 auto ref opIndex(size_t index) in opIndex()
1533 return Result(condition, r1, r2); argument
1677 struct Result struct
1681 public Rs source;
1682 private size_t _current = size_t.max;
1684 @property bool empty() in empty()
1693 @property auto ref front() in front()
1710 void popFront() in popFront()
1746 Result result = this; in save() argument
1770 return Result(rs, 0); argument
2334 static struct Result struct
2342 assert(_n > 0, "front() on an empty " ~ Result.stringof); in front() argument
2354 alias _takeExactly_Result_asTake this; argument
2359 return Result(_input.save, _n); in save() argument
2385 return Result(range, n); argument
2525 static struct Result struct
2549 @property auto save() { return Result(_source.save, empty); } in save() argument
2566 return n > m ? this : Result(_source, false); in opSlice() argument
2572 return Result(source, source.empty); argument
5311 static struct Result struct
5313 private Value current, last;
5314 private StepType step; // by convention, 0 if range is empty
5316 this(Value current, Value pastLast, StepType step) in this()
5344 @property bool empty() const { return step == 0; } in empty()
5345 @property inout(Value) front() inout { assert(!empty); return current; } in inout()
5346 void popFront() in popFront()
5353 @property inout(Value) back() inout in inout()
5358 void popBack() in popBack()
5384 inout(Result) opSlice() inout { return this; } in opSlice() argument
5385 inout(Result) opSlice(ulong lower, ulong upper) inout in opSlice() argument
5406 return Result(begin, end, step); argument
5424 static struct Result struct
5426 private Value current, pastLast;
5428 this(Value current, Value pastLast) in this()
5467 inout(Result) opSlice() inout { return this; } in opSlice() argument
5468 inout(Result) opSlice(ulong lower, ulong upper) inout in opSlice() argument
5483 return Result(begin, end); argument
5506 static struct Result struct
5508 private Value start, step;
5509 private size_t index, count;
5511 this(Value start, Value end, Value step) in this()
5532 @property bool empty() const { return index == count; } in empty()
5533 @property Value front() const { assert(!empty); return start + step * index; } in front()
5557 inout(Result) opSlice() inout in opSlice() argument
5561 inout(Result) opSlice(size_t lower, size_t upper) inout in opSlice() argument
5578 return Result(begin, end, step); argument
5877 static struct Result struct
5898 return Result(begin, end); argument
9052 static struct Result struct
9058 Range range;
9059 Enumerator index;
9062 ElemType front() @property in front()
9087 Result save() @property in save() argument
9095 size_t length() @property in length()
9100 alias opDollar = length;
9104 ElemType back() @property in back()
9130 Result opSlice(size_t i, size_t j) in opSlice() argument
9140 Result opSlice(size_t i, DollarToken) in opSlice() argument
9153 return Result(range, start); argument
11457 static struct Result struct
11459 private R1 _input;
11460 private R2 _output;
11463 private bool _frontAccessed;
11468 @property auto length() in length()
11476 enum bool empty = false;
11480 @property bool empty() { return _input.empty; } in empty()
11483 void popFront() in popFront()
11512 return Result(inputRange, outputRange); argument
11835 static struct Result struct
11839 E element;
11840 size_t counter;
11841 static if (isBidirectionalRange!R && hasLength!R) size_t backPosition;
11842 size_t maxSize;
11845 bool empty() @property in empty()
11850 auto front() @property in front()
11856 void popFront() in popFront()
11869 size_t length() @property in length()
11878 auto save() @property in save()
11888 auto back() @property in back()
11894 void popBack() in popBack()
11931 return Result((b <= data.length) ? data[a .. b] : data[a .. data.length], in opSlice() argument
11950 return Result(r, e, n); argument