Views
Prototypes Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvValueArray Class Reference

Array of IlvValue objects. More...

#include <ilviews/protos/value.h>

Public Member Functions

 IlvValueArray ()
 See below.
 
 IlvValueArray (const IlvValueArray &source)
 Creates an array of IlvValue objects. More...
 
void add (IlvValue &v, IlBoolean copy=IlTrue)
 Adds the new value of type IlvValue to the array. More...
 
IlUInt count () const
 Returns the array size. More...
 
IlvValueget (IlUInt i) const
 See below.
 
IlvValuegetValues () const
 Returns the array of values contained in this value array. This pointer must not be freed. More...
 
IlvValueoperator[] (IlUInt i) const
 Returns the value at position i in the array. More...
 

Detailed Description

Array of IlvValue objects.

Library: ilvproto

The IlvValueArray class is used in the prototypes library to hold sets of values. An IlvValueArray is a dynamically allocated array of IlvValue objects.

Constructor & Destructor Documentation

◆ IlvValueArray()

IlvValueArray::IlvValueArray ( const IlvValueArray source)

Creates an array of IlvValue objects.

Parameters
sourceCreates a copy of the source value array.

Member Function Documentation

◆ add()

void IlvValueArray::add ( IlvValue v,
IlBoolean  copy = IlTrue 
)

Adds the new value of type IlvValue to the array.

Parameters
vAdded value.
copyIndicates whether or not the value should be copied.

◆ count()

IlUInt IlvValueArray::count ( ) const

Returns the array size.

Returns
The array size.

◆ getValues()

IlvValue* IlvValueArray::getValues ( ) const

Returns the array of values contained in this value array. This pointer must not be freed.

Returns
A pointer to the internal array of values.

◆ operator[]()

IlvValue& IlvValueArray::operator[] ( IlUInt  i) const

Returns the value at position i in the array.

Returns
The value at position i in the array.
Parameters
iThe index in the array. No bound checking is performed.