List< Type > Class Template Reference

Container for glTF entities. More...

Inheritance diagram for List< Type >:
[legend]

Public Member Functions

 List ()=default
 Default construct. More...
 
 ~List ()=default
 Destructor. More...
 
Type & create (const word &name)
 Helper to create a new Type on the list and set the ID. More...
 
const DynamicList< Type > & data () const noexcept
 Return const access to the underlying list. More...
 
bool empty () const noexcept
 List contains no data. More...
 
label size () const noexcept
 Return the list size. More...
 
void write (Ostream &os, const word &keyword, bool firstEntry=false)
 Write. More...
 
void write (Ostream &os) const
 Write. More...
 
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 51 of file foamGltfList.H.

Constructor & Destructor Documentation

◆ List()

List ( )
default

Default construct.

◆ ~List()

~List ( )
default

Destructor.

Member Function Documentation

◆ create()

Type & create ( const word name)

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

Definition at line 33 of file foamGltfList.C.

◆ data()

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

Return const access to the underlying list.

Definition at line 44 of file foamGltfList.C.

◆ empty()

bool empty ( ) const
noexcept

List contains no data.

Definition at line 51 of file foamGltfList.C.

◆ size()

Foam::label size ( ) const
noexcept

Return the list size.

Definition at line 58 of file foamGltfList.C.

◆ write() [1/2]

void write ( Ostream os,
const word keyword,
bool  firstEntry = false 
)

Write.

Definition at line 66 of file foamGltfList.C.

◆ write() [2/2]

void write ( Ostream os) const

Write.

Definition at line 91 of file foamGltfList.C.

◆ operator[]()

Type & operator[] ( const label  i)

Definition at line 107 of file foamGltfList.C.


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