35 const label
id = data_.size();
36 Type& obj = data_.emplace_back(
name);
82 os << indent <<
"\"" << keyword <<
"\" : [" << nl << incrIndent;
101 if (i != data_.size() - 1)
os <<
"," <<
nl;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Container for glTF entities.
Type & operator[](const label i)
bool empty() const noexcept
List contains no data.
label size() const noexcept
Return the list size.
const DynamicList< Type > & data() const noexcept
Return const access to the underlying list.
void write(Ostream &os, const word &keyword, bool firstEntry=false)
Write.
Type & create(const word &name)
Helper to create a new Type on the list and set the ID.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.