Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::AddressList< T > Class Template Reference

#include <socket_base.h>

Public Member Functions

 AddressList (intptr_t count)
 
 ~AddressList ()
 
intptr_t count () const
 
TGetAt (intptr_t i) const
 
void SetAt (intptr_t i, T *addr)
 

Detailed Description

template<typename T>
class dart::bin::AddressList< T >

Definition at line 128 of file socket_base.h.

Constructor & Destructor Documentation

◆ AddressList()

template<typename T >
dart::bin::AddressList< T >::AddressList ( intptr_t  count)
inlineexplicit

Definition at line 130 of file socket_base.h.

131 : count_(count), addresses_(new T*[count_]) {}
intptr_t count() const
Definition: socket_base.h:140
#define T
Definition: precompiler.cc:65

◆ ~AddressList()

template<typename T >
dart::bin::AddressList< T >::~AddressList ( )
inline

Definition at line 133 of file socket_base.h.

133 {
134 for (intptr_t i = 0; i < count_; i++) {
135 delete addresses_[i];
136 }
137 delete[] addresses_;
138 }

Member Function Documentation

◆ count()

template<typename T >
intptr_t dart::bin::AddressList< T >::count ( ) const
inline

Definition at line 140 of file socket_base.h.

140{ return count_; }

◆ GetAt()

template<typename T >
T * dart::bin::AddressList< T >::GetAt ( intptr_t  i) const
inline

Definition at line 141 of file socket_base.h.

141{ return addresses_[i]; }

◆ SetAt()

template<typename T >
void dart::bin::AddressList< T >::SetAt ( intptr_t  i,
T addr 
)
inline

Definition at line 142 of file socket_base.h.

142{ addresses_[i] = addr; }

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