V8 Project
v8::internal::EmbeddedContainer< ElementType, NumElements > Class Template Reference

#include <utils.h>

+ Inheritance diagram for v8::internal::EmbeddedContainer< ElementType, NumElements >:
+ Collaboration diagram for v8::internal::EmbeddedContainer< ElementType, NumElements >:

Public Member Functions

 EmbeddedContainer ()
 
int length () const
 
const ElementType & operator[] (int i) const
 
ElementType & operator[] (int i)
 

Private Attributes

ElementType elems_ [NumElements]
 

Detailed Description

template<typename ElementType, int NumElements>
class v8::internal::EmbeddedContainer< ElementType, NumElements >

Definition at line 743 of file utils.h.

Constructor & Destructor Documentation

◆ EmbeddedContainer()

template<typename ElementType , int NumElements>
v8::internal::EmbeddedContainer< ElementType, NumElements >::EmbeddedContainer ( )
inline

Definition at line 745 of file utils.h.

745 : elems_() { }
ElementType elems_[NumElements]
Definition: utils.h:758

Member Function Documentation

◆ length()

template<typename ElementType , int NumElements>
int v8::internal::EmbeddedContainer< ElementType, NumElements >::length ( ) const
inline

Definition at line 747 of file utils.h.

747 { return NumElements; }

Referenced by v8::internal::EmbeddedContainer< ElementType, NumElements >::operator[]().

+ Here is the caller graph for this function:

◆ operator[]() [1/2]

template<typename ElementType , int NumElements>
ElementType& v8::internal::EmbeddedContainer< ElementType, NumElements >::operator[] ( int  i)
inline

Definition at line 752 of file utils.h.

752  {
753  DCHECK(i < length());
754  return elems_[i];
755  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, v8::internal::EmbeddedContainer< ElementType, NumElements >::elems_, and v8::internal::EmbeddedContainer< ElementType, NumElements >::length().

+ Here is the call graph for this function:

◆ operator[]() [2/2]

template<typename ElementType , int NumElements>
const ElementType& v8::internal::EmbeddedContainer< ElementType, NumElements >::operator[] ( int  i) const
inline

Definition at line 748 of file utils.h.

748  {
749  DCHECK(i < length());
750  return elems_[i];
751  }

References DCHECK, v8::internal::EmbeddedContainer< ElementType, NumElements >::elems_, and v8::internal::EmbeddedContainer< ElementType, NumElements >::length().

+ Here is the call graph for this function:

Member Data Documentation

◆ elems_

template<typename ElementType , int NumElements>
ElementType v8::internal::EmbeddedContainer< ElementType, NumElements >::elems_[NumElements]
private

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