Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::EmbeddedArray< T, N > Class Template Reference

#include <il.h>

Public Member Functions

 EmbeddedArray ()
 
intptr_t length () const
 
const Toperator[] (intptr_t i) const
 
Toperator[] (intptr_t i)
 
const TAt (intptr_t i) const
 
void SetAt (intptr_t i, const T &val)
 

Detailed Description

template<typename T, intptr_t N>
class dart::EmbeddedArray< T, N >

Definition at line 349 of file il.h.

Constructor & Destructor Documentation

◆ EmbeddedArray()

template<typename T , intptr_t N>
dart::EmbeddedArray< T, N >::EmbeddedArray ( )
inline

Definition at line 351 of file il.h.

351: elements_() {}

Member Function Documentation

◆ At()

template<typename T , intptr_t N>
const T & dart::EmbeddedArray< T, N >::At ( intptr_t  i) const
inline

Definition at line 365 of file il.h.

365{ return (*this)[i]; }

◆ length()

template<typename T , intptr_t N>
intptr_t dart::EmbeddedArray< T, N >::length ( ) const
inline

Definition at line 353 of file il.h.

353{ return N; }
#define N
Definition: beziers.cpp:19

◆ operator[]() [1/2]

template<typename T , intptr_t N>
T & dart::EmbeddedArray< T, N >::operator[] ( intptr_t  i)
inline

Definition at line 360 of file il.h.

360 {
361 ASSERT(i < length());
362 return elements_[i];
363 }
intptr_t length() const
Definition: il.h:353
#define ASSERT(E)

◆ operator[]() [2/2]

template<typename T , intptr_t N>
const T & dart::EmbeddedArray< T, N >::operator[] ( intptr_t  i) const
inline

Definition at line 355 of file il.h.

355 {
356 ASSERT(i < length());
357 return elements_[i];
358 }

◆ SetAt()

template<typename T , intptr_t N>
void dart::EmbeddedArray< T, N >::SetAt ( intptr_t  i,
const T val 
)
inline

Definition at line 367 of file il.h.

367{ (*this)[i] = val; }

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