HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
apex::ApexArray< T > Class Template Reference

#include <APEX_COW.h>

+ Inheritance diagram for apex::ApexArray< T >:

Public Types

using value_type = T
 
using iterator = typename UT_Array< T >::iterator
 
using const_iterator = typename UT_Array< T >::const_iterator
 
using reverse_iterator = typename UT_Array< T >::reverse_iterator
 
using const_reverse_iterator = typename UT_Array< T >::const_reverse_iterator
 
- Public Types inherited from apex::APEX_COWHandle< UT_Array< T > >
using Parent = UT_COWValue< UT_Array< T > >
 

Public Member Functions

void operator= (const UT_Array< T > &other)
 
exint append (const T &v)
 
exint append (const T &v, bool check_dup)
 
void append (const T *v, exint num_entries)
 
template<typename... S>
exint emplace_back (S &&...s)
 
void setCapacity (exint capacity)
 
void setSize (exint newsize)
 
exint size () const
 
exint capacity () const
 
T * data ()
 
const T * data () const
 
T & operator[] (exint index)
 
const T & operator[] (exint index) const
 
void clear ()
 
bool isEmpty () const
 
exint find (const T &val, exint start=0) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator rbegin ()
 
iterator rend ()
 
const_iterator rbegin () const
 
const_iterator rend () const
 
- Public Member Functions inherited from UT_COWValue< UT_Array< T > >
 UT_COWValue ()
 
 UT_COWValue (UT_Array< T > &&data)
 
 UT_COWValue (std::in_place_t, Args &&...args)
 
 UT_COWValue (const UT_COWValue &other)
 
 UT_COWValue (UT_COWValue &&other) noexcept
 
UT_COWValueoperator= (const UT_COWValue &other)
 
UT_COWValueoperator= (UT_COWValue &&other) noexcept
 
 ~UT_COWValue ()
 
bool isUnique () const
 
bool isImmortal () const
 
exint refCount () const
 
void makeUnique ()
 
UT_Array< T > & operator* ()
 
const UT_Array< T > & operator* () const
 
UT_Array< T > * operator-> ()
 
const UT_Array< T > * operator-> () const
 
const UT_Array< T > & peek () const
 
void swap (UT_COWValue< UT_Array< T > > &other)
 

Additional Inherited Members

- Static Public Member Functions inherited from apex::APEX_COWHandle< UT_Array< T > >
static const APEX_COWHandle
< UT_Array< T > > & 
getAPEXStaticEmpty ()
 
- Static Public Member Functions inherited from UT_COWValue< UT_Array< T > >
static const UT_COWValue
< UT_Array< T > > & 
getStaticEmpty ()
 
- Public Attributes inherited from UT_COWValue< UT_Array< T > >
const Rep * myConstRep
 
Rep * myRep
 
- Protected Member Functions inherited from UT_COWValue< UT_Array< T > >
void safeIncRef () const
 
void safeDecRef ()
 
- Protected Attributes inherited from UT_COWValue< UT_Array< T > >
union {
   const Rep *   myConstRep
 
   Rep *   myRep
 
}; 
 

Detailed Description

template<typename T>
class apex::ApexArray< T >

Definition at line 47 of file APEX_COW.h.

Member Typedef Documentation

template<typename T>
using apex::ApexArray< T >::const_iterator = typename UT_Array<T>::const_iterator

Definition at line 111 of file APEX_COW.h.

template<typename T>
using apex::ApexArray< T >::const_reverse_iterator = typename UT_Array<T>::const_reverse_iterator

Definition at line 113 of file APEX_COW.h.

template<typename T>
using apex::ApexArray< T >::iterator = typename UT_Array<T>::iterator

Definition at line 110 of file APEX_COW.h.

template<typename T>
using apex::ApexArray< T >::reverse_iterator = typename UT_Array<T>::reverse_iterator

Definition at line 112 of file APEX_COW.h.

template<typename T>
using apex::ApexArray< T >::value_type = T

Definition at line 50 of file APEX_COW.h.

Member Function Documentation

template<typename T>
exint apex::ApexArray< T >::append ( const T &  v)
inline

Definition at line 58 of file APEX_COW.h.

template<typename T>
exint apex::ApexArray< T >::append ( const T &  v,
bool  check_dup 
)
inline

Definition at line 63 of file APEX_COW.h.

template<typename T>
void apex::ApexArray< T >::append ( const T *  v,
exint  num_entries 
)
inline

Definition at line 68 of file APEX_COW.h.

template<typename T>
iterator apex::ApexArray< T >::begin ( )
inline

Definition at line 115 of file APEX_COW.h.

template<typename T>
const_iterator apex::ApexArray< T >::begin ( ) const
inline

Definition at line 117 of file APEX_COW.h.

template<typename T>
exint apex::ApexArray< T >::capacity ( ) const
inline

Definition at line 92 of file APEX_COW.h.

template<typename T>
void apex::ApexArray< T >::clear ( )
inline

Definition at line 100 of file APEX_COW.h.

template<typename T>
T* apex::ApexArray< T >::data ( )
inline

Definition at line 94 of file APEX_COW.h.

template<typename T>
const T* apex::ApexArray< T >::data ( ) const
inline

Definition at line 95 of file APEX_COW.h.

template<typename T>
template<typename... S>
exint apex::ApexArray< T >::emplace_back ( S &&...  s)
inline

Definition at line 78 of file APEX_COW.h.

template<typename T>
iterator apex::ApexArray< T >::end ( )
inline

Definition at line 116 of file APEX_COW.h.

template<typename T>
const_iterator apex::ApexArray< T >::end ( ) const
inline

Definition at line 118 of file APEX_COW.h.

template<typename T>
exint apex::ApexArray< T >::find ( const T &  val,
exint  start = 0 
) const
inline

Definition at line 108 of file APEX_COW.h.

template<typename T>
bool apex::ApexArray< T >::isEmpty ( ) const
inline

Definition at line 106 of file APEX_COW.h.

template<typename T>
void apex::ApexArray< T >::operator= ( const UT_Array< T > &  other)
inline

Definition at line 52 of file APEX_COW.h.

template<typename T>
T& apex::ApexArray< T >::operator[] ( exint  index)
inline

Definition at line 97 of file APEX_COW.h.

template<typename T>
const T& apex::ApexArray< T >::operator[] ( exint  index) const
inline

Definition at line 98 of file APEX_COW.h.

template<typename T>
iterator apex::ApexArray< T >::rbegin ( )
inline

Definition at line 119 of file APEX_COW.h.

template<typename T>
const_iterator apex::ApexArray< T >::rbegin ( ) const
inline

Definition at line 121 of file APEX_COW.h.

template<typename T>
iterator apex::ApexArray< T >::rend ( )
inline

Definition at line 120 of file APEX_COW.h.

template<typename T>
const_iterator apex::ApexArray< T >::rend ( ) const
inline

Definition at line 122 of file APEX_COW.h.

template<typename T>
void apex::ApexArray< T >::setCapacity ( exint  capacity)
inline

Definition at line 83 of file APEX_COW.h.

template<typename T>
void apex::ApexArray< T >::setSize ( exint  newsize)
inline

Definition at line 90 of file APEX_COW.h.

template<typename T>
exint apex::ApexArray< T >::size ( ) const
inline

Definition at line 91 of file APEX_COW.h.


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