40 #ifndef foam_gltf_list_H 41 #define foam_gltf_list_H 52 template<
class Type>
class List;
56 Ostream& operator<<(Ostream& os, const glTF::List<Type>& lst);
const DynamicList< Type > & data() const noexcept
Return const access to the underlying list.
Type & operator[](const label i)
void write(Ostream &os, const word &keyword, bool firstEntry=false)
Write.
bool empty() const noexcept
List contains no data.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
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)
~List()=default
Destructor.
List()=default
Default construct.
Type & create(const word &name)
Helper to create a new Type on the list and set the ID.
Container for glTF entities.