35 std::initializer_list<const char* const>
input 49 for (
const char*
const s :
input)
52 nbytes_ += (
s ? strlen(
s) : 0) + 1;
56 argv_ =
new char*[
input.size()+1];
57 data_ =
new char[nbytes_+1];
61 for (
const char*
const s :
input)
63 char *next = stringCopy(argv_[argc_],
s);
64 argv_[++argc_] = next;
67 argv_[argc_] =
nullptr;
78 const int n = list.size();
80 bool separator =
false;
82 for (
int i = 0; i <
n; ++i)
84 const char*
p = list.
get(i);
88 if (separator)
os <<
' ';
void clear()
Clear contents and free memory.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type get(const label i) const
Return bool value at specified position, always false for out-of-range access.
int reset(std::initializer_list< const char *const > input)
Copy the input list of C-strings.
static Istream & input(Istream &is, IntRange< T > &range)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))