VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
DtUcString::CodeUnitArray Struct Reference

Internal structure used to store the code units. More...

+ Collaboration diagram for DtUcString::CodeUnitArray:

Public Member Functions

 CodeUnitArray ()
 CTOR. More...
 
 CodeUnitArray (const CodeUnitArray &)
 Copy CTOR. More...
 
 ~CodeUnitArray ()
 DTOR. More...
 
CodeUnitArrayoperator= (const CodeUnitArray &)
 Assignment operator. More...
 
void resize (size_t newSize)
 Resize the array. More...
 
void clear ()
 Resize the array to 0, does not change the memory allocation if the array is unique. More...
 
void reserve (size_t capacity)
 Ensure the array's capacity is at least capacity, do not change size. More...
 
size_t calculateCapacity (size_t necessarySize)
 Calculate the capacity. More...
 
size_t size () const
 Return size in bytes. More...
 
size_t capacity () const
 Return capacity in bytes. More...
 
void concat (const CodeUnitArray &other)
 Concat another array, supports concat operations on itself. More...
 
bool unique () const
 Am I unique. More...
 
bool empty () const
 Am I empty. More...
 
void add_ref ()
 Increment the reference count. More...
 
void dec_ref ()
 Decrement the reference count. More...
 

Public Attributes

volatile long * count
 
CodeUnitbegin
 
CodeUnitend
 
CodeUnitlast
 

Detailed Description

Internal structure used to store the code units.

Constructor & Destructor Documentation

DtUcString::CodeUnitArray::CodeUnitArray ( )
inline

CTOR.

DtUcString::CodeUnitArray::CodeUnitArray ( const CodeUnitArray )
inline

Copy CTOR.

DtUcString::CodeUnitArray::~CodeUnitArray ( )
inline

DTOR.

Member Function Documentation

void DtUcString::CodeUnitArray::add_ref ( )
inline

Increment the reference count.

size_t DtUcString::CodeUnitArray::calculateCapacity ( size_t  necessarySize)
inline

Calculate the capacity.

size_t DtUcString::CodeUnitArray::capacity ( ) const
inline

Return capacity in bytes.

void DtUcString::CodeUnitArray::clear ( )
inline

Resize the array to 0, does not change the memory allocation if the array is unique.

void DtUcString::CodeUnitArray::concat ( const CodeUnitArray other)
inline

Concat another array, supports concat operations on itself.

void DtUcString::CodeUnitArray::dec_ref ( )
inline

Decrement the reference count.

bool DtUcString::CodeUnitArray::empty ( ) const
inline

Am I empty.

CodeUnitArray& DtUcString::CodeUnitArray::operator= ( const CodeUnitArray )
inline

Assignment operator.

void DtUcString::CodeUnitArray::reserve ( size_t  capacity)
inline

Ensure the array's capacity is at least capacity, do not change size.

void DtUcString::CodeUnitArray::resize ( size_t  newSize)
inline

Resize the array.

size_t DtUcString::CodeUnitArray::size ( ) const
inline

Return size in bytes.

bool DtUcString::CodeUnitArray::unique ( ) const
inline

Am I unique.

Member Data Documentation

CodeUnit* DtUcString::CodeUnitArray::begin
volatile long* DtUcString::CodeUnitArray::count
CodeUnit* DtUcString::CodeUnitArray::end
CodeUnit* DtUcString::CodeUnitArray::last

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

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)