#include "KVNumberList.h"
#include "KVConfig.h"
using namespace std;
 
void test_kvnumberlist()
{
   
   cout << "TEST CONSTRUCTORS" << endl << endl;
 
 
 
 
#ifdef WITH_CPP11
   
#endif
 
   
   cout << endl << "TEST ITERATION" << endl << endl;
   cout << "Begin()/Next()/End():" << endl << endl;
      cout << 
"next e value = " << 
e.Next() << endl;
   }
 
   
#ifdef WITH_CPP11
   cout << "Range-based for loop:" << endl << endl;
      cout << "next e value = " << val << endl;
   }
#endif
 
   
   cout << endl << "TEST MODIFIERS" << endl;
   
   cout << "List setters" << endl << endl;
 
   
   cout << endl << "Add values to list" << endl << endl;
   for (
int i = 0; i < 15000; i++) 
d.Add(i);
 
 
   for (
int i = 1; i < 10; i += 2) 
c.Add(i);
 
 
 
 
   int val[] = {11, 8, 10, 21, 16};
 
   
   for (
int i = 1; i < 10; i += 2) 
c.Add(i);
 
 
   
   cout << endl << "Remove values from list" << endl << endl;
 
 
 
   
   cout << endl << "Intersection of lists" << endl << endl;
   A.Inter(B);
   A.Print();
 
   
   cout << endl << "LIST PROPERTIES" << endl;
   cout << A.AsString() << " contains 5 ? : " << A.Contains(5) << endl;
   cout << A.AsString() << " First = " << A.First() << endl;
   cout << A.AsString() << " Last = " << A.Last() << endl;
   cout << A.AsString() << " NValues = " << A.GetNValues() << endl;
   cout << A.AsString() << " IsEmpty ? : " << A.IsEmpty() << endl;
   A.Clear();
   cout << A.AsString() << " IsEmpty ? : " << A.IsEmpty() << endl;
 
   A = "123-127 129";
   cout << A.AsString() << " IsFull() ? : " << A.IsFull() << endl;
   cout << A.AsString() << " IsFull(123,127) ? : " << A.IsFull(123, 127) << endl;
 
   
   cout << endl << "MEMBER ACCESS" << endl;
   cout << 
"\"" << ls1.
AsString() << 
"\"" << 
".At(3) = " << ls1.
At(3) << endl;
   cout << 
"\"" << ls1.
AsString() << 
"\"" << 
".[5] = " << ls1[5] << endl;
   cout << 
"\"" << ls1.
AsString() << 
"\"" << 
".GetList() = " << ls1.
GetList() << endl;
   cout << 
"\"" << ls1.
AsString() << 
"\"" << 
".AsString(8) = ";
 
   
   cout << endl << "LIST ARITHMETIC" << endl;
 
   
   cout << endl << "MISCELLANEOUS" << endl;
   cout << ls1 << endl;
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
Strings used to represent a set of ranges of values.
const Char_t * GetList() const
const Char_t * AsString(Int_t maxchars=0) const
const Char_t * GetExpandedList() const
void Print(Option_t *="") const override
Int_t At(Int_t index) const
KVNumberList GetSubList(Int_t vinf, Int_t vsup) const
KVNumberList GetComplementaryList() const
TString GetLogical(const Char_t *observable) const
void Print(Option_t *option="") const override