Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost::common::ReallocVector< T > Class Template Reference
Inheritance diagram for xgboost::common::ReallocVector< T >:
xgboost::common::RefResourceView< T >

Public Member Functions

 ReallocVector (size_type n, value_type const &init)
 
 ReallocVector (ReallocVector const &that)=delete
 
 ReallocVector (ReallocVector &&that)=delete
 
ReallocVectoroperator= (ReallocVector const &that)=delete
 
ReallocVectoroperator= (ReallocVector &&that)=delete
 
void Resize (typename Upper::size_type new_size)
 
- Public Member Functions inherited from xgboost::common::RefResourceView< T >
 RefResourceView (value_type *ptr, size_type n, std::shared_ptr< common::ResourceHandler > mem)
 
 RefResourceView (value_type *ptr, size_type n, std::shared_ptr< common::ResourceHandler > mem, T const &init)
 Construct a view on ptr with length n.
 
 RefResourceView (RefResourceView const &that)=delete
 
RefResourceViewoperator= (RefResourceView const &that)=delete
 
 RefResourceView (RefResourceView &&that)=default
 We allow move assignment for lazy initialization.
 
RefResourceViewoperator= (RefResourceView &&that)=default
 
size_type size () const
 
size_type size_bytes () const
 
value_type * data ()
 
value_type const * data () const
 
bool empty () const
 
auto cbegin () const
 
auto begin ()
 
auto begin () const
 
auto cend () const
 
auto end ()
 
auto end () const
 
auto const & front () const
 
auto & front ()
 
auto const & back () const
 
auto & back ()
 
value_type & operator[] (size_type i)
 
value_type const & operator[] (size_type i) const
 
auto Resource () const
 Get the underlying resource.
 

Additional Inherited Members

- Public Types inherited from xgboost::common::RefResourceView< T >
using value_type = T
 
using size_type = std::uint64_t
 
- Protected Member Functions inherited from xgboost::common::RefResourceView< T >
void Init (value_type *ptr, size_type size, std::shared_ptr< common::ResourceHandler > mem)
 

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