Loading...
Searching...
No Matches
List< Type > Class Template Reference

Container for glTF entities. More...

#include <foamGltfList.H>

Inheritance diagram for List< Type >:

Public Member Functions

 List ()=default
 Default construct.
 ~List ()=default
 Destructor.
Type & create (const word &name)
 Helper to create a new Type on the list and set the ID.
const DynamicList< Type > & data () const noexcept
 Return const access to the underlying list.
bool empty () const noexcept
 List contains no data.
label size () const noexcept
 Return the list size.
void write (Ostream &os, const word &keyword, bool firstEntry=false)
 Write.
void write (Ostream &os) const
 Write.
Type & operator[] (const label i)

Detailed Description

template<class Type>
class Foam::glTF::List< Type >

Container for glTF entities.

Note
Implements the glTF v2 specification
Source files

Definition at line 61 of file foamGltfList.H.

Constructor & Destructor Documentation

◆ List()

template<class Type>
List ( )
default

Default construct.

◆ ~List()

template<class Type>
~List ( )
default

Destructor.

References empty(), Foam::name(), Foam::noexcept, os(), size(), and write().

Here is the call graph for this function:

Member Function Documentation

◆ create()

template<class Type>
Type & create ( const word & name)

Helper to create a new Type on the list and set the ID.

Definition at line 26 of file foamGltfList.C.

References Foam::name().

Here is the call graph for this function:

◆ data()

template<class Type>
const Foam::DynamicList< Type > & data ( ) const
noexcept

Return const access to the underlying list.

Definition at line 37 of file foamGltfList.C.

References Foam::noexcept.

◆ empty()

template<class Type>
bool empty ( ) const
noexcept

List contains no data.

Definition at line 44 of file foamGltfList.C.

References Foam::noexcept.

Referenced by write(), and ~List().

Here is the caller graph for this function:

◆ size()

template<class Type>
Foam::label size ( ) const
noexcept

Return the list size.

Definition at line 51 of file foamGltfList.C.

References Foam::noexcept.

Referenced by ~List().

Here is the caller graph for this function:

◆ write() [1/2]

template<class Type>
void write ( Ostream & os,
const word & keyword,
bool firstEntry = false )

Write.

Definition at line 58 of file foamGltfList.C.

References Foam::decrIndent(), empty(), Foam::incrIndent(), Foam::indent(), Foam::nl, os(), and write().

Referenced by List< Foam::glTF::object >::size(), and ~List().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/2]

template<class Type>
void write ( Ostream & os) const

Write.

Definition at line 84 of file foamGltfList.C.

References Foam::decrIndent(), forAll, Foam::incrIndent(), Foam::indent(), Foam::nl, and os().

Here is the call graph for this function:

◆ operator[]()

template<class Type>
Type & operator[] ( const label i)

Definition at line 100 of file foamGltfList.C.


The documentation for this class was generated from the following files: