C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844

Set of simple names. More...

#include <name_item.h>

+ Inheritance diagram for SimpleNameArray:

Public Member Functions

 SimpleNameArray (size_t i_max=0, uint16 i_delta=1)
 Constructor.
 
 SimpleNameArray (const SimpleNameArray &other)
 Copy-constructor.
 
void Delta (uint16 newDelta)
 Set an increment by the number of elements while allocating additional memory (1 - autoincrement).
 
void SetMaxDelta (uint16 newDelta)
 Set maximum of increments.
 
size_t Count () const
 Count of elements in array.
 
ptrdiff_t MaxIndex () const
 The last element index.
 
void Reserve (size_t additionalSpace)
 Reserve memory for the specified number of elements.
 
void Flush ()
 Delete all elements from the array without freeing memory.
 
void Adjust ()
 Free unused memory.
 
const SimpleName * GetAddr () const
 Get address of the beginning of the array.
 
SimpleName & operator[] (size_t loc) const
 Get element by an index.
 
SimpleName * AddAt (const SimpleName &ent, size_t index)
 Insert element by an index.
 
SimpleName * AddAt (const MbName &ent, size_t index)
 Insert name hash by an index.
 
SimpleName * Add (const SimpleName &ent)
 Add an element to the end of the array.
 
SimpleName * Add (const MbName &ent)
 Add an element to the end of the array.
 
void RemoveInd (size_t delIndex)
 Delete element by an index.
 
void RemoveInd (size_t firstIdx, size_t lastIdx)
 Delete elements in range from firstIdx to lastIdx-1 inclusive.
 
SimpleName * InsertInd (size_t index, const SimpleName &ent)
 Insert element by an index.
 
SimpleName * InsertInd (size_t index, const MbName &ent)
 Insert name hash by an index.
 
size_t FindIt (const SimpleName &ent) const
 Find object among elements of the array.
 
SimpleNameArray & operator= (const SimpleNameArray &)=default
 Copy assignment operator.
 
SimpleNameArray & operator+= (const SimpleNameArray &other)
 Operator for adding.
 

Friends

SArray< SimpleName > & operator+= (SArray< SimpleName > &, const SimpleNameArray &)
 Operator for adding.
 
reader & operator>> (reader &, SimpleNameArray *&)
 Read operator.
 
reader & operator>> (reader &, SimpleNameArray &)
 Read operator.
 
writer & operator<< (writer &, const SimpleNameArray &)
 Write operator.
 

Detailed Description

Set of simple names.

The set contains the container of simple names.


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