Treelite
Public Member Functions | List of all members
ContiguousArray< T > Class Template Reference

Public Member Functions

 ContiguousArray (const ContiguousArray &)=delete
 
ContiguousArrayoperator= (const ContiguousArray &)=delete
 
 ContiguousArray (ContiguousArray &&other) noexcept
 
ContiguousArrayoperator= (ContiguousArray &&other) noexcept
 
ContiguousArray Clone () const
 
void UseForeignBuffer (void *prealloc_buf, std::size_t size)
 
T * Data ()
 
const T * Data () const
 
T * End ()
 
const T * End () const
 
T & Back ()
 
const T & Back () const
 
std::size_t Size () const
 
void Reserve (std::size_t newsize)
 
void Resize (std::size_t newsize)
 
void Resize (std::size_t newsize, T t)
 
void Clear ()
 
void PushBack (T t)
 
void Extend (const std::vector< T > &other)
 
T & operator[] (std::size_t idx)
 
const T & operator[] (std::size_t idx) const
 
T & at (std::size_t idx)
 
const T & at (std::size_t idx) const
 
T & at (int idx)
 
const T & at (int idx) const
 

Detailed Description

template<typename T>
class treelite::ContiguousArray< T >

Definition at line 52 of file tree.h.


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