Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
Dali::VectorBase Class Reference

Base class to handle the memory of simple vector. More...

#include <dali-vector.h>

Inherited by Dali::VectorAlgorithms< IsTrivial >, Dali::VectorAlgorithms< false >, Dali::VectorAlgorithms< IsTrivialType >, Dali::VectorAlgorithms< TypeTraits< Animation * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< AnimationDataElement * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< AnimatorBase * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< AnimatorConnectorBase * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< AtlasRenderer::Impl::TextCacheEntry >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< BaseObject * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< char >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Character >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< CharacterDirection >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< CharacterIndex >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< const CachedRenderer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< const UniformPropertyMapping * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< ConstraintBase * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::BaseObject * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::Adaptor::NetworkPerformanceClient * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::Animation * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::Atlas::Tile * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::ContextRecoveryInterface * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::Object::Observer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::PropertyNotification * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::Render::UniformNameCache::UniformEntry * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::RenderTaskList::Exclusive >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::SceneGraph::Geometry * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::SceneGraph::Material * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::SceneGraph::Node * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::SceneGraph::PropertyOwner * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Internal::SceneGraph::Renderer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::SignalConnection * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::SlotConnection * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::Vertex2D >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Internal::AtlasGlyphManager::GlyphRecordEntry >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Internal::AtlasManager::AtlasSlotDescriptor >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Internal::Gradient::GradientStop >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Internal::LoadingTask * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Internal::ObjLoader::TriIndex >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::Attribute >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::BidirectionalLineInfoRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::BidirectionalParagraphInfoRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::ColorGlyphRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::ColorRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::FontDescriptionRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::FontRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::GlyphRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::Internal::ValidateFontsPerScript * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::LineRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::ModifyEvent >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::Text::ScriptRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Vector2 >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Dali::Vector3 >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< EGLint >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< EglSyncObject * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< FACE >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< float >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< FontId >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< FrameBufferState >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Geometry * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< GLint >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< GlyphIndex >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< GlyphInfo >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Internal::Dali::Internal::ShaderData * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Length >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< LineBreakInfo >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Material * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< MessageBase * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Node * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Object * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Observer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PanGesture * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< ProgramPair * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PropertyBase * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PropertyMetadata * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PropertyNotification * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PropertyOwner * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< PropertyOwner::Observer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RelayoutInfo * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::Dali::Internal::PropertyBuffer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::Dali::Internal::Sampler * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::PropertyBuffer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::Renderer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::RenderTracker * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Render::Sampler * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Renderable >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Renderer * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RenderGeometry * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RenderInstruction * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RenderItem * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RenderList * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RenderTask * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< ResourceId >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RowColumnData >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< RunIndex >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< ScriptRun >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Shader * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< SizeType >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< StatContext * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< std::size_t >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< T >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< TextureMetadata >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Type * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< Uint16Pair >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< UniformIndexMap >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< UniformMeta * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< UniformPropertyMapping * >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< unsigned char >::IS_TRIVIAL_TYPE==true >, Dali::VectorAlgorithms< TypeTraits< unsigned int >::IS_TRIVIAL_TYPE==true >, and Dali::VectorAlgorithms< TypeTraits< WordBreakInfo >::IS_TRIVIAL_TYPE==true >.

Public Types

typedef std::size_t SizeType
 

Public Member Functions

SizeType Count () const
 This method is inlined as its needed frequently for Vector::End() iterator. More...
 
SizeType Size () const
 Gets the count of elements in this vector. More...
 
bool Empty () const
 @ return If the vector is empty .0 More...
 
SizeType Capacity () const
 Gets the capacity of this vector. More...
 
void Release ()
 Release the data. More...
 

Protected Member Functions

 VectorBase ()
 Default constructor. More...
 
 ~VectorBase ()
 Destructor. More...
 
void SetCount (SizeType count)
 Helper to set the count. More...
 
void Reserve (SizeType count, SizeType elementSize)
 Reserve space in the vector. More...
 
void Copy (const VectorBase &vector, SizeType elementSize)
 Copy a vector. More...
 
void Swap (VectorBase &vector)
 Swap the contents of two vectors. More...
 
void Erase (char *address, SizeType elementSize)
 Erase an element. More...
 
char * Erase (char *first, char *last, SizeType elementSize)
 Erase a range of elements. More...
 
void CopyMemory (char *destination, const char *source, size_t numberOfBytes)
 Copies a number of bytes from source to destination. More...
 

Protected Attributes

void * mData
 Pointer to the data. More...
 

Private Member Functions

 VectorBase (const VectorBase &)
 Undefined .0. More...
 
VectorBaseoperator= (const VectorBase &)
 Undefined .0. More...
 

Detailed Description

Base class to handle the memory of simple vector.

Memory layout is such that it has two std::size_t to hold the count and capacity of the vector. VectorBase::mData is adjusted so that it points to the beginning of the first real item so that iterating the items is quick. .0

Definition at line 61 of file dali-vector.h.

Member Typedef Documentation

typedef std::size_t Dali::VectorBase::SizeType

Definition at line 65 of file dali-vector.h.

Constructor & Destructor Documentation

Dali::VectorBase::VectorBase ( )
protected

Default constructor.

Does not allocate space. .0

Definition at line 27 of file dali-vector.cpp.

Dali::VectorBase::~VectorBase ( )
protected

Destructor.

Does not release the space. Derived class needs to call Release. Not virtual as should not be called directly and we do not want a vtable for this class as it would unnecessarily increase size. .0

Definition at line 32 of file dali-vector.cpp.

Dali::VectorBase::VectorBase ( const VectorBase )
private

Undefined .0.

Member Function Documentation

VectorBase::SizeType Dali::VectorBase::Capacity ( ) const

Gets the capacity of this vector.

.0

Returns
The capacity of this vector.

Definition at line 36 of file dali-vector.cpp.

References mData.

Referenced by Dali::Internal::SceneGraph::RenderList::Capacity(), Copy(), Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Copy(), Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Insert(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::MatchScanlinesRGBA8888(), Dali::Vector< Material * >::PushBack(), Reserve(), Dali::Internal::SceneGraph::RenderInstructionContainer::ResetAndReserve(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::SetupScanlineForHalvingTests1Byte(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::SetupScanlineForHalvingTests2Bytes(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::SetupScanlineForHalvingTestsRGB565(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::SetupScanlineForHalvingTestsRGBA8888(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::SetupScanlinesRGBA8888(), UtcDaliEmptyVectorInt(), UtcDaliImageOperationsAverageScanlines1(), UtcDaliImageOperationsAverageScanlines2(), UtcDaliImageOperationsAverageScanlines3(), UtcDaliImageOperationsAverageScanlinesRGBA8888(), UtcDaliImageOperationsHalveScanlineInPlaceRGB565(), UtcDaliImageOperationsHalveScanlineInPlaceRGBA8888(), UtcDaliVectorAcidTest(), UtcDaliVectorInsert02(), UtcDaliVectorInt(), UtcDaliVectorIntCopy(), UtcDaliVectorIntErase(), UtcDaliVectorIntEraseRange(), UtcDaliVectorIntEraseRangeAssert(), UtcDaliVectorIntInsertAssert(), UtcDaliVectorIntResize(), UtcDaliVectorIntSwap(), UtcDaliVectorIterate(), UtcDaliVectorMatrixP(), UtcDaliVectorPair(), UtcDaliVectorPushBack(), UtcDaliVectorVector2P(), and UtcDaliVectorVector3P().

Here is the caller graph for this function:

void Dali::VectorBase::Copy ( const VectorBase vector,
SizeType  elementSize 
)
protected

Copy a vector.

.0

Parameters
[in]vectorVector to copy from.
[in]elementSizeSize of a single element.

Definition at line 99 of file dali-vector.cpp.

References Capacity(), mData, Release(), and Reserve().

Referenced by Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Copy().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::VectorBase::CopyMemory ( char *  destination,
const char *  source,
size_t  numberOfBytes 
)
protected

Copies a number of bytes from source to destination.

source and destination must not overlap.

.0

Parameters
[in]destinationPointer to the destination address.
[in]sourcePointer to the source address.
[in]numberOfBytesThe number of bytes to be copied.

Definition at line 152 of file dali-vector.cpp.

Referenced by Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Insert().

Here is the caller graph for this function:

SizeType Dali::VectorBase::Count ( ) const
inline

This method is inlined as its needed frequently for Vector::End() iterator.

.0

Returns
The count of elements in this vector.

Definition at line 93 of file dali-vector.h.

Referenced by anonymous_namespace{scene-graph-renderer.cpp}::AddMappings(), Dali::Internal::Object::AddPropertyNotification(), Dali::Internal::SceneGraph::UpdateManager::AddShader(), Dali::Internal::SceneGraph::UniformMap::Count(), Dali::Toolkit::Text::VisualModel::CreateCharacterToGlyphTable(), Dali::Toolkit::Text::VisualModel::CreateGlyphsPerCharacterTable(), Dali::Toolkit::Text::Controller::DoRelayout(), Dali::Vector< Material * >::End(), Erase(), Dali::Vector< Material * >::Erase(), Dali::Internal::Object::FindAnimatableProperty(), Dali::Internal::Object::FindCustomProperty(), Dali::Internal::SceneGraph::RenderList::GetCachedItemCount(), Dali::Toolkit::Text::LogicalModel::GetCharacterDirection(), Dali::Toolkit::Text::GetCharactersDirection(), Dali::Toolkit::Text::Controller::Impl::GetClosestLine(), Dali::Toolkit::Internal::KeyInputFocusManager::GetCurrentFocusControl(), Dali::Internal::FrameBufferStateCache::GetFrameBufferState(), Dali::Toolkit::Text::LogicalModel::GetLogicalCharacterIndex(), Dali::Internal::SceneGraph::RenderList::GetNextFreeItem(), Dali::Internal::SceneGraph::RenderInstruction::GetNextFreeRenderList(), Dali::Toolkit::Text::View::GetNumberOfGlyphs(), Dali::Internal::Object::GetProperty(), Dali::Internal::Object::GetPropertyCount(), Dali::Internal::Object::GetPropertyIndex(), Dali::Internal::Object::GetPropertyIndices(), Dali::Toolkit::Text::LogicalModel::GetScript(), Dali::Toolkit::Text::Controller::GetText(), Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Insert(), Dali::Toolkit::Text::Controller::InsertText(), Dali::OwnerContainer< Material * >::IsEmpty(), Dali::Internal::SceneGraph::PropertyOwner::IsObserved(), Dali::Toolkit::Text::LayoutEngine::Impl::LayoutText(), Dali::Toolkit::Text::Internal::MergeFontDescriptions(), Dali::Internal::anonymous_namespace{notification-manager.cpp}::MoveElements(), Dali::OwnerContainer< Material * >::MoveFrom(), Dali::Toolkit::Internal::GradientRenderer::NewGradient(), Dali::Toolkit::Internal::KeyInputFocusManager::OnKeyEvent(), Dali::Vector< Material * >::operator[](), Dali::Internal::SceneGraph::Material::Prepare(), Dali::Internal::SceneGraph::Renderer::PrepareRender(), Dali::Internal::SceneGraph::Node::PrepareRender(), Dali::Toolkit::Text::Controller::ProcessModifyEvents(), Dali::Internal::PropertyNotification::PropertyNotification(), Dali::Vector< Material * >::PushBack(), Dali::Internal::Object::RegisterProperty(), Dali::Internal::SceneGraph::RenderList::ReleaseUnusedItems(), Dali::Vector< Material * >::Remove(), Dali::Toolkit::Text::Controller::RemoveText(), Reserve(), Dali::OwnerContainer< Material * >::Resize(), Dali::Vector< Material * >::Resize(), Dali::Toolkit::Internal::TextSelectionToolbar::ResizeDividers(), Dali::Internal::SceneGraph::RenderList::ReuseCachedItems(), anonymous_namespace{utc-Dali-Text-MultiLanguage.cpp}::ScriptsTest(), Dali::Toolkit::Text::SetBidirectionalInfo(), Dali::Toolkit::Text::SetColorSegmentationInfo(), Dali::Internal::SceneGraph::Shader::SetCoordinateTypeInRender(), Dali::Toolkit::Internal::KeyInputFocusManager::SetFocus(), Dali::Toolkit::Text::SetLineBreakInfo(), Dali::Toolkit::Internal::ScrollBar::SetProperty(), Dali::Toolkit::Text::Internal::MultilanguageSupport::SetScripts(), Dali::Internal::Render::Renderer::SetUniforms(), Dali::Internal::SceneGraph::Shader::SetUniforms(), Dali::Toolkit::Text::LogicalModel::SetVisualToLogicalMap(), Dali::Toolkit::Text::SetWordBreakInfo(), Dali::Toolkit::Text::ShapeText(), Dali::Internal::SceneGraph::UpdateManager::Update(), Dali::Toolkit::Text::UpdateCharacterRuns(), Dali::Internal::SceneGraph::RenderInstruction::UpdateCompleted(), Dali::Toolkit::Text::Controller::Impl::UpdateModel(), Dali::Toolkit::Text::LogicalModel::UpdateTextStyleRuns(), Dali::Internal::SceneGraph::RenderGeometry::UploadAndDraw(), UtcDaliEmptyVectorInt(), UtcDaliPropertyNotificationVariableStep(), UtcDaliToolkitScrollBarGetScrollPositionIntervalsP(), UtcDaliToolkitScrollBarSetScrollPositionIntervalsP(), UtcDaliVectorAcidTest(), UtcDaliVectorDoubleRemove(), UtcDaliVectorInsert01(), UtcDaliVectorInsert02(), UtcDaliVectorInt(), UtcDaliVectorIntCopy(), UtcDaliVectorIntErase(), UtcDaliVectorIntEraseRange(), UtcDaliVectorIntEraseRangeAssert(), UtcDaliVectorIntInsertAssert(), UtcDaliVectorIntResize(), UtcDaliVectorIntSwap(), UtcDaliVectorIterate(), UtcDaliVectorMatrixP(), UtcDaliVectorPair(), UtcDaliVectorPushBack(), UtcDaliVectorVector2P(), UtcDaliVectorVector3P(), Dali::Toolkit::Text::Internal::MultilanguageSupport::ValidateFonts(), Dali::VariableStepCondition(), and Dali::TizenPlatform::anonymous_namespace{loader-png.cpp}::WriteData().

bool Dali::VectorBase::Empty ( ) const
inline

@ return If the vector is empty .0

Definition at line 118 of file dali-vector.h.

Referenced by Dali::Internal::SceneGraph::PrepareRenderInstruction().

Here is the caller graph for this function:

void Dali::VectorBase::Erase ( char *  address,
SizeType  elementSize 
)
protected

Erase an element.

Does not change capacity. .0

Parameters
[in]addressAdress to erase from.
[in]elementSizeSize to erase.
Precondition
Last element cannot be erased as there is nothing to move.

Definition at line 119 of file dali-vector.cpp.

References Count(), mData, and SetCount().

Referenced by Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Erase().

Here is the call graph for this function:

Here is the caller graph for this function:

char * Dali::VectorBase::Erase ( char *  first,
char *  last,
SizeType  elementSize 
)
protected

Erase a range of elements.

Does not change capacity. .0

Parameters
[in]firstAddress to the first element to be erased.
[in]lastAddress to the last element to be erased.
[in]elementSizeSize of one of the elements to be erased.
Returns
Address pointing to the next element of the last one.

Definition at line 133 of file dali-vector.cpp.

References Count(), mData, and SetCount().

Here is the call graph for this function:

VectorBase& Dali::VectorBase::operator= ( const VectorBase )
private

Undefined .0.

void Dali::VectorBase::Release ( )
void Dali::VectorBase::Reserve ( SizeType  count,
SizeType  elementSize 
)
protected

Reserve space in the vector.

.0

Parameters
[in]countCount of elements to reserve.
[in]elementSizeSize of a single element.

Definition at line 71 of file dali-vector.cpp.

References Capacity(), Count(), DALI_ASSERT_ALWAYS, mData, and Release().

Referenced by Copy(), and Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Reserve().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::VectorBase::SetCount ( SizeType  count)
protected
SizeType Dali::VectorBase::Size ( ) const
inline

Gets the count of elements in this vector.

.0

Returns
The count of elements in this vector.

Definition at line 109 of file dali-vector.h.

Referenced by Dali::Internal::SceneGraph::AddColorRenderers(), Dali::Toolkit::Text::AtlasRenderer::Impl::AddGlyphs(), Dali::Internal::SceneGraph::AddOverlayRenderers(), Dali::Internal::SceneGraph::Node::AddRenderer(), Dali::Internal::SceneGraph::AddRenderersToRenderList(), Dali::Internal::RelayoutController::AddRequest(), Dali::Internal::SceneGraph::AddStencilRenderers(), Dali::Toolkit::Internal::AtlasMeshFactory::AppendMesh(), Dali::Toolkit::Internal::NPatchRenderer::ApplyImageToSampler(), Dali::Toolkit::Internal::TableView::CalculateFillSizes(), Dali::Toolkit::Internal::TableView::CalculateFitSizes(), Dali::Internal::Adaptor::FrameTimeStats::CalculateMean(), Dali::Toolkit::Internal::ObjLoader::CalculateTangentArray(), Dali::Toolkit::Internal::TableView::CalculateTotalFixedSize(), Dali::Toolkit::Internal::ObjLoader::CenterAndScale(), Dali::Toolkit::Internal::NPatchRenderer::ChangeRenderer(), Dali::AnimationData::CreateAnimation(), Dali::Internal::anonymous_namespace{image-actor-impl.cpp}::CreateGeometry(), Dali::Toolkit::Internal::ObjLoader::CreateGeometry(), Dali::Toolkit::Internal::NPatchRenderer::CreateGeometry(), Dali::Toolkit::Text::AtlasRenderer::Impl::CreateMeshActor(), Dali::Toolkit::Internal::NPatchRenderer::CreateShader(), Dali::Toolkit::Internal::TableView::FindFit(), UtcDaliConstraintAddSource::Function(), Dali::Toolkit::Internal::anonymous_namespace{image-renderer.cpp}::GenerateGeometry(), Dali::Toolkit::Internal::anonymous_namespace{npatch-renderer.cpp}::GenerateGeometry(), Dali::Internal::SceneGraph::RenderGeometry::GetAttributeLocationFromProgram(), Dali::Internal::ShaderData::GetBufferData(), Dali::Internal::ShaderData::GetBufferSize(), Dali::Internal::PathConstrainer::GetDefaultProperty(), Dali::Internal::LinearConstrainer::GetDefaultProperty(), Dali::Internal::CameraActor::GetDefaultPropertyIndices(), Dali::Internal::ShaderEffect::GetDefaultPropertyIndices(), Dali::Internal::Layer::GetDefaultPropertyIndices(), Dali::Internal::ImageActor::GetDefaultPropertyIndices(), Dali::Toolkit::Internal::TableView::GetMapPropertyValue(), Dali::Internal::TypeInfo::GetPropertyIndices(), Dali::Internal::Object::GetPropertyIndices(), Dali::Internal::SceneGraph::Node::GetRendererCount(), Dali::Internal::SceneGraph::Geometry::GetRenderGeometry(), Dali::Internal::SceneGraph::RenderInstruction::GetRenderList(), Dali::Internal::Program::GetSamplerUniformLocation(), Dali::NinePatchImage::GetStretchBorders(), Dali::Internal::SceneGraph::Material::GetTextureCount(), Dali::Internal::ShaderData::HasBinary(), Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::IsActorExclusiveToAnotherRenderTask(), Dali::TizenPlatform::ResourceLoader::LoadFile(), Dali::Internal::LinearConstraintFunctor::operator()(), Dali::Internal::NinePatchImage::ParseBorders(), Dali::Internal::anonymous_namespace{path-impl.cpp}::PathIsComplete(), Dali::Internal::MemoryPoolRelayoutContainer::PopBack(), Dali::Internal::Object::RegisterAnimatableProperty(), Dali::Internal::SceneGraph::RenderGeometry::RemovePropertyBuffer(), Dali::Internal::SceneGraph::Node::RemoveRenderer(), Dali::Internal::SceneGraph::Geometry::RemoveVertexBuffer(), Dali::Internal::Program::ResetAttribsUniformCache(), Dali::Internal::PropertyBuffer::SetData(), Dali::Toolkit::Internal::NPatchRenderer::SetImage(), Dali::Internal::MemoryPoolRelayoutContainer::Size(), Dali::Internal::SceneGraph::TryReuseCachedRenderers(), Dali::Internal::Render::PropertyBuffer::Update(), Dali::Toolkit::Text::Decorator::Impl::UpdateHighlight(), UtcDaliCameraActorPropertyIndices(), UtcDaliHandleGetPropertyIndices(), UtcDaliImageActorPropertyIndices(), UtcDaliImageOperationsHalveScanlineInPlace1Byte(), UtcDaliImageOperationsHalveScanlineInPlace2Bytes(), UtcDaliImageOperationsHalveScanlineInPlaceRGB565(), UtcDaliImageOperationsHalveScanlineInPlaceRGBA8888(), UtcDaliLayerPropertyIndices(), UtcDaliNinePatchImageGetStrechBorders(), UtcDaliPanGesturePropertyIndices(), UtcDaliReadFileNew1(), UtcDaliReadFileNew2(), UtcDaliRenderTaskProperties(), and UtcDaliShaderEffectPropertyIndices().

void Dali::VectorBase::Swap ( VectorBase vector)
protected

Swap the contents of two vectors.

.0

Parameters
[in]vectorVector to swap with.

Definition at line 113 of file dali-vector.cpp.

References mData.

Referenced by Dali::OwnerContainer< Material * >::MoveFrom(), and Dali::Vector< Material * >::Swap().

Here is the caller graph for this function:

Member Data Documentation

void* Dali::VectorBase::mData
protected

The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali