Space Engineers
Classes | Public Member Functions | Properties | List of all members
VRage.Collections.MyIntervalList Class Reference

More...

Classes

struct  Enumerator
 

Public Member Functions

 MyIntervalList ()
 
override string ToString ()
 
int IndexOf (int value)
 
void Add (int value)
 Add a value to the list More...
 
void Clear ()
 
MyIntervalList GetCopy ()
 
bool Contains (int value)
 
Enumerator GetEnumerator ()
 

Properties

int Count [get]
 
int IntervalCount [get]
 
int this[int index] [get]
 

Detailed Description

A set of integer numbers optimized for sets with long consecutive runs. Each interval is stored as two values in m_list: the lower and the upper bound.

For example, the set of numbers 2, 3, 4, 5, 7, 9, 10, 11, 12, 13 (or alternatively in the interval notation <2, 5> U <7, 7> U <9, 13>) is saved as a list { 2, 5, 7, 7, 9, 13 }

Definition at line 14 of file MyIntervalList.cs.

Constructor & Destructor Documentation

VRage.Collections.MyIntervalList.MyIntervalList ( )
inline

Definition at line 79 of file MyIntervalList.cs.

Member Function Documentation

void VRage.Collections.MyIntervalList.Add ( int  value)
inline

Add a value to the list

Definition at line 151 of file MyIntervalList.cs.

void VRage.Collections.MyIntervalList.Clear ( )
inline

Definition at line 218 of file MyIntervalList.cs.

bool VRage.Collections.MyIntervalList.Contains ( int  value)
inline

Definition at line 237 of file MyIntervalList.cs.

MyIntervalList VRage.Collections.MyIntervalList.GetCopy ( )
inline

Definition at line 224 of file MyIntervalList.cs.

Enumerator VRage.Collections.MyIntervalList.GetEnumerator ( )
inline

Definition at line 248 of file MyIntervalList.cs.

int VRage.Collections.MyIntervalList.IndexOf ( int  value)
inline

Definition at line 100 of file MyIntervalList.cs.

override string VRage.Collections.MyIntervalList.ToString ( )
inline

Definition at line 89 of file MyIntervalList.cs.

Property Documentation

int VRage.Collections.MyIntervalList.Count
get

Definition at line 63 of file MyIntervalList.cs.

int VRage.Collections.MyIntervalList.IntervalCount
get

Definition at line 71 of file MyIntervalList.cs.

int VRage.Collections.MyIntervalList.this[int index]
get

Definition at line 122 of file MyIntervalList.cs.


The documentation for this class was generated from the following file: