813
813
class VFO_DeclList : public parsenode
816
std::vector<rchandle<parsenode> > vfo_hv;
816
std::vector<rchandle<parsenode> > theDecls;
817
std::vector<bool> theIndexDeclFlags;
819
820
VFO_DeclList(const QueryLoc&);
821
ulong size () const { return (ulong)vfo_hv.size (); }
823
void push_front(rchandle<parsenode> vfo_h) { vfo_hv.insert(vfo_hv.begin(), vfo_h); }
825
void push_back(rchandle<parsenode> vfo_h) { vfo_hv.push_back(vfo_h); }
827
void push_back (const VFO_DeclList &other) { vfo_hv.insert(vfo_hv.end(), other.vfo_hv.begin(), other.vfo_hv.end()); }
829
rchandle<parsenode> operator[](int k) const { return vfo_hv[k]; }
831
std::vector<rchandle<parsenode> >::iterator begin() { return vfo_hv.begin(); }
833
std::vector<rchandle<parsenode> >::iterator end() { return vfo_hv.end(); }
835
std::vector<rchandle<parsenode> >::const_iterator begin() const { return vfo_hv.begin(); }
837
std::vector<rchandle<parsenode> >::const_iterator end() const { return vfo_hv.end(); }
839
const VarDecl* findVarDecl(const QName& varname);
822
csize size() const { return theDecls.size(); }
824
void push_back(const rchandle<parsenode>& vfo);
826
rchandle<parsenode> operator[](int k) const { return theDecls[k]; }
828
std::vector<rchandle<parsenode> >::const_iterator begin() const
830
return theDecls.begin();
833
std::vector<rchandle<parsenode> >::const_iterator end() const
835
return theDecls.end();
841
838
void accept(parsenode_visitor&) const;