Public Types | Public Member Functions | List of all members
ElemHandleArray< T_ElemHandle > Class Template Reference

#include <ElementAgenda.h>

Inheritance diagram for ElemHandleArray< T_ElemHandle >:

Public Types

typedef T_Super::iterator iterator
 

Public Member Functions

bool IsEmpty () const
 Now just a wrapper around vector->empty(). Returns true if the ElemHandleArray contains no elements. More...
 
size_t GetCount () const
 Now just a wrapper around vector->size(). Returns the number of elements in the ElemHandleArray. More...
 
T_ElemHandle const * GetFirst () const
 Return the first elemement in the ElemHandleArray or NULL if it is empty. More...
 
T_ElemHandle const * GetLast () const
 Return the last elemement in the ElemHandleArray or NULL if it is empty. More...
 
T_ElemHandle const * GetEntry (size_t i) const
 Return the ith elemement in the ElemHandleArray or NULL if it is empty. More...
 
T_ElemHandle * GetFirstP ()
 Return an editable pointer the first elemement in the ElemHandleArray or NULL if it is empty. More...
 
T_ElemHandle * GetLastP ()
 Return an editable pointer the last elemement in the ElemHandleArray or NULL if it is empty. More...
 
T_ElemHandle * GetEntryP (size_t i)
 Return an editable pointer the ith elemement in the ElemHandleArray or NULL if it is empty. More...
 
void Empty (bool andFree=true)
 Remove all elements from the array. Call delete on the elements if andFree is specified. More...
 
void DropInvalidEntries ()
 Remove all elements from the array that are invalid elements. See ElementHandle::IsValid(). More...
 

Member Typedef Documentation

typedef T_Super::iterator iterator

Member Function Documentation

void DropInvalidEntries ( )

Remove all elements from the array that are invalid elements. See ElementHandle::IsValid().

References begin(), end(), and erase().

void Empty ( bool  andFree = true)

Remove all elements from the array. Call delete on the elements if andFree is specified.

References clear().

size_t GetCount ( ) const

Now just a wrapper around vector->size(). Returns the number of elements in the ElemHandleArray.

References size().

T_ElemHandle const* GetEntry ( size_t  i) const

Return the ith elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

T_ElemHandle* GetEntryP ( size_t  i)

Return an editable pointer the ith elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

T_ElemHandle const* GetFirst ( ) const

Return the first elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

T_ElemHandle* GetFirstP ( )

Return an editable pointer the first elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

T_ElemHandle const* GetLast ( ) const

Return the last elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

T_ElemHandle* GetLastP ( )

Return an editable pointer the last elemement in the ElemHandleArray or NULL if it is empty.

References NULL.

bool IsEmpty ( ) const

Now just a wrapper around vector->empty(). Returns true if the ElemHandleArray contains no elements.

References empty().


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

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.