Go to the documentation of this file.
65 names.push_back( getNextShapeName() );
72 bool containNumberIneserted =
false;
76 for (
auto nm = shNames.begin(); nm != shNames.end(); )
78 if ( *nm ==
"numberInserted")
80 nm = shNames.erase(nm);
81 containNumberIneserted =
true;
87 for(
const auto& nm:shNames)
94 " number inserte in front of "<< nm <<
" is invalid: "<< num<<
endl<<
98 number_.push_back( num );
101 if(containNumberIneserted)
110 if(numberInserted_.size() != names_.size() )
113 " number of elements in numberInserted ("<<numberInserted_.size()<<
114 ") is not equal to the number of shape names: "<< names_<<
endl;
119 ForAll(i, numberInserted_)
121 current_.push_back(numberInserted_[i]%number_[i]);
135 if(!dict.
add(names_[i],number_[i]))
138 " error in writing "<< names_[i] <<
" to dictionary "<<dict.
globalName()<<
endl;
143 if(!dict.
add(
"numberInserted", numberInserted_))
146 " error in writing numberInserted to dictionary "<< dict.
globalName()<<
endl;
void fill(Vector< T, Allocator > &vec, const T &val)
virtual word globalName() const
bool add(const word &keyword, const float &v)
iOstream & endl(iOstream &os)
bool write(dictionary &dict) const
#define fatalErrorInFunction
#define ForAll(i, container)
T getVal(const word &keyword) const
void getNextShapeNameN(size_t n, wordVector &names)
bool read(const dictionary &dict)
uint32Vector numberInserted_
Vector< uint32 > uint32Vector
shapeMixture(const dictionary &dict)
wordList dataEntryKeywords() const