InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PMUnknownRefList Class Reference

#include <PMCollection.h>

Inheritance diagram for PMUnknownRefList:
K2Vector< T, Allocator >K2Internals::K2VectorBase< T, Allocator >

Public Member Functions

 PMUnknownRefList ()
 
 PMUnknownRefList (int32 chunksize)
 
 PMUnknownRefList (const PMUnknownRefList &copy)
 
 ~PMUnknownRefList ()
 
- Public Member Functions inherited from K2Vector< T, Allocator >
 K2Vector ()
 
 K2Vector (typename Allocator::size_type count, const T &value)
 
 K2Vector (const K2Vector &rhs)=default
 
 K2Vector (K2Vector &&rhs) noexcept=default
 
K2Vectoroperator= (const K2Vector &rhs)=default
 
K2Vectoroperator= (K2Vector &&rhs) noexcept=default
 
template<class InputIterator >
 K2Vector (InputIterator first, InputIterator last, const Allocator &a)
 
template<class InputIterator >
 K2Vector (InputIterator first, InputIterator last)
 
void swap (K2Vector &other) noexcept
 
- Public Member Functions inherited from K2Internals::K2VectorBase< T, Allocator >
 K2VectorBase (const Allocator &a=Allocator())
 
 K2VectorBase (size_type count, const T &value, const Allocator &a=Allocator())
 
template<class InputIterator >
 K2VectorBase (InputIterator first, InputIterator last, const Allocator &a)
 
template<class InputIterator >
 K2VectorBase (InputIterator first, InputIterator last)
 
void initialize (size_type count, const T &value)
 
void fill_assign (size_type, const T &)
 
void fill_insert (iterator, size_type, const T &)
 
 K2VectorBase (const K2VectorBase &rhs)
 
 K2VectorBase (K2VectorBase &&rhs) noexcept
 
void CopyConstructHelper (const K2VectorBase &rhs)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type max_size () const
 
size_type capacity () const
 
bool16 empty () const
 
allocator_type get_allocator () const
 
K2VectorBaseoperator= (const K2VectorBase &rhs)
 
K2VectorBaseoperator= (K2VectorBase &&rhs) noexcept
 
void reserve (size_type capacity)
 
template<class InputIter >
void assign (InputIter first, InputIter last)
 
void assign (size_type count, const T &u)
 
reference operator[] (size_type i)
 
const_reference operator[] (size_type i) const
 
const_reference at (size_type i) const
 
reference at (size_type i)
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void push_back (const T &x)
 
void pop_back ()
 
iterator insert (iterator position, const T &x)
 
void insert (iterator position, size_type n, const T &x)
 
template<class InputIter >
void insert (iterator pos, InputIter first, InputIter last)
 
iterator erase (iterator position)
 
iterator erase (iterator first, iterator last)
 
void swap (K2VectorBase &) noexcept
 
void clear ()
 
void resize (size_type newsize, const T &value)
 
void DoCleanup ()
 
size_type DoGetCapacity (size_type newLength)
 
void DoReset (pointer newData, size_type newLength, size_type newCap)
 

Additional Inherited Members

- Public Types inherited from K2Internals::K2VectorBase< T, Allocator >
typedef object_type data_type
 
typedef T value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type * iterator
 
typedef const value_type * const_iterator
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef uint32 size_type
 
typedef std::ptrdiff_t difference_type
 
typedef Allocator allocator_type
 
typedef K2Reverse_iterator
< iterator, value_type,
difference_type, pointer,
reference > 
reverse_iterator
 
typedef K2Reverse_iterator
< const_iterator, value_type,
difference_type, const_pointer,
const_reference > 
const_reverse_iterator
 
- Static Public Member Functions inherited from K2Vector< T, Allocator >
static Method ForceInstantiation (int n)
 

Detailed Description

Used for storing lists of pointers to interfaces, where all the pointers are referenced, and this list will keep track of the AddRef & Release for you. Please consider using K2Vector<InterfacePtr<IFoo> > instead! This is really only still here for backwards compatibility.

See Also
IPMUnknownRefListData

Constructor & Destructor Documentation

PMUnknownRefList::PMUnknownRefList ()
inline

Construct an empty list

PMUnknownRefList::PMUnknownRefList (int32 chunksize)
inline

Construct an empty list, but set aside storage space.

Parameters
chunksizenumber of entries to allocate in storage space
PMUnknownRefList::PMUnknownRefList (const PMUnknownRefListcopy)
inline

Construct a new list, which will be a copy of the supplied list.

Parameters
copythe list to copy
PMUnknownRefList::~PMUnknownRefList ()

Desctruct the list. Releases all the objects on the list.