Go to the documentation of this file.
30 "our of range access to list element. \n";
33 auto iter = listType::begin();
34 std::advance(iter, i);
47 "our of range access to list element. \n";
50 auto iter = listType::cbegin();
51 std::advance(iter, i);
62 return std::count( listType::begin(), listType::end(), elm);
68 return listType::size();
96 return std::find(this->begin(),this->end(), val);
105 return std::find(this->begin(),this->end(), val);
111 auto pos =
find(val);
112 if( pos == this->end() )
return -1;
113 return static_cast<int32> (std::distance(this->begin(), pos));
122 if(
find(val) == this->end())
return false;
150 size_t stride = getListStride(len);
156 for(
auto elm = listType::begin(); elm!=listType::end(); )
160 for(
size_t j=0; j<stride && elm!=listType::end(); j++)
165 if( elm!=listType::end() )
187 token firstToken(is);
194 <<
"expected token "<< token::BEGIN_LIST
195 <<
" but found "<< firstToken ;
207 && lastToken == token::END_LIST
218 listType::push_back(val);
230 <<
" but found "<< firstToken ;
252 if( !lst.readList(is) )
auto count(const Vector< T, Allocator > &vec, const T &val)
void set(size_t i, const T &val)
int64 find(Vector< T, Allocator > &vec, const T &val)
bool isPunctuation() const
bool search(const T &val) const
constIterator find(const T &val) const
int32 countElement(const T &elm) const
virtual bool check(const char *operation) const
int32 findi(const T &val) const
#define fatalErrorInFunction
void putBack(const token &tok)
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
bool fatalCheck(const char *operation) const
typename listType::iterator iterator
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
virtual const word & name() const
bool writeList(iOstream &os) const
bool readList(iIstream &is)
#define ioErrorInFile(fileName, lineNumber)
typename listType::const_iterator constIterator