Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Sequence< Elem, elem_ptrfree > Class Template Reference

#include <Sequence.H>

Inheritance diagram for Sequence< Elem, elem_ptrfree >:

FV2::T List of all members.

Public Member Functions

 Sequence (int sizeHint=5) throw ()
 Sequence (const Sequence< Elem, elem_ptrfree > &s) throw ()
 Sequence (const Elem a[], int n) throw ()
 ~Sequence () throw ()
Sequence< Elem, elem_ptrfree > & operator= (const Sequence< Elem, elem_ptrfree > &s) throw ()
int size () const throw ()
void addhi (const Elem &x) throw ()
void addlo (const Elem &x) throw ()
Elem remhi () throw ()
Elem remlo () throw ()
void put (int i, const Elem &x) throw ()
Elem get (int i) const throw ()
Elem & get_ref (int i) throw ()
const Elem & get_ref (int i) const throw ()
Elem gethi () const throw ()
Elem getlo () const throw ()
Sequence< Elem, elem_ptrfree > cat (const Sequence< Elem, elem_ptrfree > &s) const throw ()
Sequence< Elem, elem_ptrfree > sub (int start, int length=INT_MAX) const throw ()
Iterator begin () throw ()
Iterator end () throw ()

Private Member Functions

void expand () throw ()

Private Attributes

int numElem
Elem * elem
int sz
int st

Static Private Attributes

static Elem elemZero

Classes

class  Iterator

template<class Elem, bool elem_ptrfree = false>
class Sequence< Elem, elem_ptrfree >


Constructor & Destructor Documentation

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree >::Sequence int  sizeHint = 5  )  throw ()
 

Definition at line 257 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, NEW_ARRAY, NEW_PTRFREE_ARRAY, and Sequence< Elem, elem_ptrfree >::numElem.

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree >::Sequence const Sequence< Elem, elem_ptrfree > &  s  )  throw ()
 

Definition at line 266 of file Sequence.H.

References Elem(), Sequence< Elem, elem_ptrfree >::elem, NEW_ARRAY, NEW_PTRFREE_ARRAY, Sequence< Elem, elem_ptrfree >::numElem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree >::Sequence const Elem  a[],
int  n
throw ()
 

Definition at line 280 of file Sequence.H.

References Elem(), Sequence< Elem, elem_ptrfree >::elem, NEW_ARRAY, NEW_PTRFREE_ARRAY, and Sequence< Elem, elem_ptrfree >::numElem.

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree >::~Sequence  )  throw ()
 

Definition at line 291 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem.


Member Function Documentation

template<class Elem, bool elem_ptrfree>
void Sequence< Elem, elem_ptrfree >::addhi const Elem &  x  )  throw ()
 

Definition at line 332 of file Sequence.H.

Referenced by BindingEC::AddExpr(), ListEC::AddExpr(), StmtListEC::AddExpr(), ArgListEC::AddExpr(), ExprListEC::AddExpr(), StatCount::AddReportMask(), CacheS_DoFreeMPKFiles(), ReposUI::cleanup(), DepPath::DepPathC::DepPathC(), LookupIndexStep::execute(), LookupPathnameStep::execute(), DepPath::Extend(), AccessControl::UnixIdentityRep::fill_caches(), VDirSurrogate::getAttrib(), VDirSurrogate::getAttribHistory(), Iota(), VDirSurrogate::list(), VDirEvaluator::list(), VDirSurrogate::listAttribs(), main(), children::my_turn(), Pathname::New(), OS::getGrGid(), OS::getGrNam(), OS::GroupIter::Next(), Call_Data::read(), SplitDefaultMains(), Stat::Collection::getFanout(), and VestaConfig::sections().

template<class Elem, bool elem_ptrfree>
void Sequence< Elem, elem_ptrfree >::addlo const Elem &  x  )  throw ()
 

Definition at line 342 of file Sequence.H.

Referenced by CallCache(), FlushQueue::Enqueue(), DepPath::ExtendLow(), AccessControl::UnixIdentityRep::fill_caches(), AccessControl::GlobalIdentityRep::fill_caches(), PrefixTbl::Get(), Rev(), Rev_Iter(), and SortTest().

template<class Elem, bool elem_ptrfree = false>
Iterator Sequence< Elem, elem_ptrfree >::begin  )  throw () [inline]
 

Definition at line 218 of file Sequence.H.

Referenced by Rev_Iter(), Sort(), and SortTest().

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree > Sequence< Elem, elem_ptrfree >::cat const Sequence< Elem, elem_ptrfree > &  s  )  const throw ()
 

Definition at line 429 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Sequence< Elem, elem_ptrfree >::get(), VestaConfig::get(), and Sequence< Elem, elem_ptrfree >::sz.

Referenced by main().

template<class Elem, bool elem_ptrfree = false>
Iterator Sequence< Elem, elem_ptrfree >::end  )  throw () [inline]
 

Definition at line 220 of file Sequence.H.

Referenced by Rev_Iter(), Sort(), and SortTest().

template<class Elem, bool elem_ptrfree>
void Sequence< Elem, elem_ptrfree >::expand  )  throw () [private]
 

Definition at line 315 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Elem(), NEW_ARRAY, NEW_PTRFREE_ARRAY, Sequence< Elem, elem_ptrfree >::numElem, and Sequence< Elem, elem_ptrfree >::st.

template<class Elem, bool elem_ptrfree>
Elem Sequence< Elem, elem_ptrfree >::get int  i  )  const throw ()
 

Definition at line 386 of file Sequence.H.

Referenced by AddStmtAssocs(), BindApplicationArgs(), BindRunToolArgs(), Sequence< Elem, elem_ptrfree >::cat(), Call_Data::compute_interval_times(), dump_imports(), Eq(), BindingEC::Eval(), ListEC::Eval(), ExprListEC::Eval(), EvalArgs(), MergeAttribStep::execute(), TypeCheckStep::execute(), AccessCheckStep::execute(), WriteAttribStep::execute(), InAttribsStep::execute(), SetMasterStep::execute(), TestMasterStep::execute(), MakeFilesImmutableStep::execute(), LookupIndexStep::execute(), LookupPathnameStep::execute(), SetTimestampStep::execute(), ResyncStep::execute(), DepPath::ExtendLow(), FindExistingModel(), Formals(), FuncEC::FuncEC(), ModelEC::ImportLocalModel(), Call_Data::longid_interval(), LookupPath(), main(), Map(), Call_Data::operator==(), ParMap(), PickleC::PickleExpr(), Pathname::Print(), DepPath::Print(), BindingEC::PrintD(), ListEC::PrintD(), StmtListEC::PrintD(), ArgListEC::PrintD(), ExprListEC::PrintD(), PrintErrorStack(), ProcessModelHead(), SortTest(), and Stat::Collection::getFanout().

template<class Elem, bool elem_ptrfree>
const Elem & Sequence< Elem, elem_ptrfree >::get_ref int  i  )  const throw ()
 

Definition at line 404 of file Sequence.H.

template<class Elem, bool elem_ptrfree>
Elem & Sequence< Elem, elem_ptrfree >::get_ref int  i  )  throw ()
 

Definition at line 395 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::Iterator::operator *().

template<class Elem, bool elem_ptrfree>
Elem Sequence< Elem, elem_ptrfree >::gethi  )  const throw ()
 

Definition at line 413 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Sequence< Elem, elem_ptrfree >::numElem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

Referenced by FlushQueue::Dequeue().

template<class Elem, bool elem_ptrfree>
Elem Sequence< Elem, elem_ptrfree >::getlo  )  const throw ()
 

Definition at line 422 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

Referenced by ApplyModel(), CallCache(), ModelEC::ImportLocalModel(), Map(), ParMap(), and Search().

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree > & Sequence< Elem, elem_ptrfree >::operator= const Sequence< Elem, elem_ptrfree > &  s  )  throw ()
 

Definition at line 297 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Elem(), NEW_ARRAY, NEW_PTRFREE_ARRAY, Sequence< Elem, elem_ptrfree >::numElem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

template<class Elem, bool elem_ptrfree>
void Sequence< Elem, elem_ptrfree >::put int  i,
const Elem &  x
throw ()
 

Definition at line 377 of file Sequence.H.

Referenced by WriteAttribStep::execute(), and main().

template<class Elem, bool elem_ptrfree>
Elem Sequence< Elem, elem_ptrfree >::remhi  )  throw ()
 

Definition at line 354 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Elem(), Sequence< Elem, elem_ptrfree >::elemZero, Sequence< Elem, elem_ptrfree >::numElem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

Referenced by CacheS_DoFreeMPKFiles(), FlushQueue::Enqueue(), EvalWorker::EvalWorker(), main(), and OS::Group::clear().

template<class Elem, bool elem_ptrfree>
Elem Sequence< Elem, elem_ptrfree >::remlo  )  throw ()
 

Definition at line 366 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, Elem(), Sequence< Elem, elem_ptrfree >::elemZero, Sequence< Elem, elem_ptrfree >::numElem, Sequence< Elem, elem_ptrfree >::st, and Sequence< Elem, elem_ptrfree >::sz.

Referenced by CacheS_DoFreeMPKFiles(), children::call_failed(), CallCache(), VDirSurrogate::getAttrib(), VDirSurrogate::getAttribHistory(), VDirSurrogate::list(), VDirEvaluator::list(), VDirSurrogate::listAttribs(), main(), Search(), RecursiveStats::visitImports(), and children::wait_for().

template<class Elem, bool elem_ptrfree = false>
int Sequence< Elem, elem_ptrfree >::size  )  const throw () [inline]
 

Definition at line 82 of file Sequence.H.

Referenced by ArgListEC::AddExpr(), AddStmtAssocs(), ApplicationFromCache(), ApplyModel(), BindApplicationArgs(), CacheS_DoFreeMPKFiles(), children::call_failed(), CallCache(), Call_Data::compute_interval_times(), dump_imports(), StmtListEC::Empty(), ArgListEC::Empty(), ExprListEC::Empty(), Eq(), BindingEC::Eval(), ListEC::Eval(), ExprListEC::Eval(), EvalArgs(), EvalWorker::EvalWorker(), MergeAttribStep::execute(), TypeCheckStep::execute(), AccessCheckStep::execute(), WriteAttribStep::execute(), InAttribsStep::execute(), SetMasterStep::execute(), TestMasterStep::execute(), MakeFilesImmutableStep::execute(), LookupIndexStep::execute(), LookupPathnameStep::execute(), SetTimestampStep::execute(), ResyncStep::execute(), DepPath::ExtendLow(), FindExistingModel(), FuncEC::FuncEC(), VDirSurrogate::getAttrib(), VDirSurrogate::getAttribHistory(), ModelEC::ImportLocalModel(), StmtListEC::Length(), ArgListEC::Length(), ExprListEC::Length(), VDirSurrogate::list(), VDirEvaluator::list(), VDirSurrogate::listAttribs(), Call_Data::longid_interval(), LookupPath(), main(), Map(), children::my_turn(), Pathname::New(), Call_Data::operator==(), OS::Group::clear(), ParMap(), PickleC::PickleExpr(), BindingEC::PrintD(), ListEC::PrintD(), StmtListEC::PrintD(), ArgListEC::PrintD(), ExprListEC::PrintD(), PrintErrorStack(), ProcessModelHead(), Call_Data::read(), Rev_Iter(), Search(), DepPath::Size(), Stat::Collection::getFanout(), RecursiveStats::visitImports(), and children::wait_for().

template<class Elem, bool elem_ptrfree>
Sequence< Elem, elem_ptrfree > Sequence< Elem, elem_ptrfree >::sub int  start,
int  length = INT_MAX
const throw ()
 

Definition at line 441 of file Sequence.H.

References Sequence< Elem, elem_ptrfree >::elem, VestaConfig::get(), min(), and Sequence< Elem, elem_ptrfree >::sz.


Member Data Documentation

template<class Elem, bool elem_ptrfree = false>
Elem* Sequence< Elem, elem_ptrfree >::elem [private]
 

Definition at line 231 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::cat(), Sequence< Elem, elem_ptrfree >::expand(), Sequence< Elem, elem_ptrfree >::gethi(), Sequence< Elem, elem_ptrfree >::getlo(), Sequence< Elem, elem_ptrfree >::operator=(), Sequence< Elem, elem_ptrfree >::remhi(), Sequence< Elem, elem_ptrfree >::remlo(), Sequence< Elem, elem_ptrfree >::Sequence(), Sequence< Elem, elem_ptrfree >::sub(), and Sequence< Elem, elem_ptrfree >::~Sequence().

template<class Elem, bool elem_ptrfree = false>
Elem Sequence< Elem, elem_ptrfree >::elemZero [static, private]
 

Definition at line 254 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::remhi(), and Sequence< Elem, elem_ptrfree >::remlo().

template<class Elem, bool elem_ptrfree = false>
int Sequence< Elem, elem_ptrfree >::numElem [private]
 

Definition at line 230 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::expand(), Sequence< Elem, elem_ptrfree >::gethi(), Sequence< Elem, elem_ptrfree >::operator=(), Sequence< Elem, elem_ptrfree >::remhi(), Sequence< Elem, elem_ptrfree >::remlo(), and Sequence< Elem, elem_ptrfree >::Sequence().

template<class Elem, bool elem_ptrfree = false>
int Sequence< Elem, elem_ptrfree >::st [private]
 

Definition at line 233 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::expand(), Sequence< Elem, elem_ptrfree >::gethi(), Sequence< Elem, elem_ptrfree >::getlo(), Sequence< Elem, elem_ptrfree >::operator=(), Sequence< Elem, elem_ptrfree >::remhi(), Sequence< Elem, elem_ptrfree >::remlo(), and Sequence< Elem, elem_ptrfree >::Sequence().

template<class Elem, bool elem_ptrfree = false>
int Sequence< Elem, elem_ptrfree >::sz [private]
 

Definition at line 232 of file Sequence.H.

Referenced by Sequence< Elem, elem_ptrfree >::cat(), Sequence< Atom >::end(), Sequence< Elem, elem_ptrfree >::gethi(), Sequence< Elem, elem_ptrfree >::getlo(), Sequence< Elem, elem_ptrfree >::operator=(), Sequence< Elem, elem_ptrfree >::remhi(), Sequence< Elem, elem_ptrfree >::remlo(), Sequence< Elem, elem_ptrfree >::Sequence(), Sequence< Atom >::size(), and Sequence< Elem, elem_ptrfree >::sub().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:13 2006 for Vesta by  doxygen 1.4.2