UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
AnyValueAr Class Reference

#include <AnyValueAr.hpp>

Public Member Functions

 AnyValueAr ()
 
 AnyValueAr (const AnyValueAr &avar)
 
virtual ~AnyValueAr ()
 
void clean ()
 
unsigned count () const
 
AnyValue get (unsigned i) const
 
AnyValuefetch (unsigned i)
 
void insert (unsigned i, const AnyValue &av)
 
void addh (const AnyValue &av)
 
void addl (const AnyValue &av)
 
void addh (const AnyValueAr &avar)
 
void addl (const AnyValueAr &avar)
 
void remove (unsigned i)
 
void removen (unsigned i, unsigned n)
 
AnyValueArassign (const AnyValueAr &avar)
 
AnyValueArassign (unsigned n, const AnyValue *av_list)
 
AnyValuevector () const
 
AnyValueoperator[] (unsigned i)
 
AnyValue operator() (unsigned i) const
 
AnyValueAroperator= (const AnyValueAr &avar)
 
virtual void print_item (unsigned i) const
 
virtual void print_contents () const
 

Protected Attributes

AnyValuePtrAr avptrar
 

Detailed Description

Array of AnyValue objects. Interface looks like DynAr but the implementation is completely different and is not compatible with DynAr subclasses.

Constructor & Destructor Documentation

AnyValueAr::AnyValueAr ( )

Create empty array for storing any values.

AnyValueAr::AnyValueAr ( const AnyValueAr avar)

Create copy of given array.

virtual AnyValueAr::~AnyValueAr ( )
virtual

Destroy the array.

Member Function Documentation

void AnyValueAr::addh ( const AnyValue av)

Add a value at the end of the array.

void AnyValueAr::addh ( const AnyValueAr avar)

Add the whole array at the end of this array.

void AnyValueAr::addl ( const AnyValue av)

Insert a value at the beginning of the array.

void AnyValueAr::addl ( const AnyValueAr avar)

Insert the whole array at the beginning of this array.

AnyValueAr& AnyValueAr::assign ( const AnyValueAr avar)

Assign given array to this one.

AnyValueAr& AnyValueAr::assign ( unsigned  n,
const AnyValue av_list 
)

Assign given array to this one.

void AnyValueAr::clean ( )

Release memory under the array.

unsigned AnyValueAr::count ( ) const

Return number of items in the array.

AnyValue& AnyValueAr::fetch ( unsigned  i)

Read-write access to any value in the array.

AnyValue AnyValueAr::get ( unsigned  i) const

Read-only access to any value in the array.

void AnyValueAr::insert ( unsigned  i,
const AnyValue av 
)

Insert a value into the array at given position.

virtual void AnyValueAr::print_contents ( ) const
virtual

Print method for the whole array.

virtual void AnyValueAr::print_item ( unsigned  i) const
virtual

Print method for given item.

void AnyValueAr::remove ( unsigned  i)

Delete i-th item from the array.

void AnyValueAr::removen ( unsigned  i,
unsigned  n 
)

Delete n items from array starting from i-th item.

AnyValue* AnyValueAr::vector ( ) const

Allocate vector by new AnyValue[] with contents of this array.

Member Data Documentation

AnyValuePtrAr AnyValueAr::avptrar
protected

Array of pointers to any value.


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