35 const label
id = data_.size();
36 Type& obj = data_.emplace_back(
name);
101 if (i != data_.size() - 1)
os <<
"," <<
nl;
114 Foam::Ostream& Foam::operator<<(Ostream& os, const glTF::List<Type>& lst)
const DynamicList< Type > & data() const noexcept
Return const access to the underlying list.
Ostream & indent(Ostream &os)
Indent stream.
constexpr char nl
The newline '\n' character (0x0a)
Type & operator[](const label i)
void write(Ostream &os, const word &keyword, bool firstEntry=false)
Write.
bool empty() const noexcept
List contains no data.
#define forAll(list, i)
Loop across all elements in list.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
label size() const noexcept
Return the list size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Type & create(const word &name)
Helper to create a new Type on the list and set the ID.
Ostream & incrIndent(Ostream &os)
Increment the indent level.