Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FixArray Class Reference

#include </home/casse/otawa/elm/src/genstruct.h>

Public Member Functions

 FixArray (void)
 
 FixArray (const FixArray &array)
 
int length (void)
 
const T & get (int i) const
 
const T & operator[] (int i) const
 
int indexOf (const T &v, int i=0) const
 
int lastIndexOf (const T &v, int i=S) const
 
void set (int i, const T &v)
 
void set (const Iterator &i, const T &v)
 
T & get (int i)
 
T & operator[] (int i)
 
void insert (int i, const T &v)
 
void insert (const Iterator &i, const T &v)
 
void removeAt (int i)
 
void removeAt (const Iterator &i)
 
int count (void) const
 
bool contains (const T &v) const
 
bool isEmpty (void) const
 
 operator bool (void) const
 
template<template< class _ > class C>
bool containsAll (const C< T > &collection)
 

Detailed Description

This class provides a safe wrapper around fixed-size array of C embedding it inside the class (no allocation for the array). It provides the following concepts:

Parameters
TType of array items.
SSize of the array.
E(optional) Equivalence implementation.

Constructor & Destructor Documentation

FixArray::FixArray ( void  )
FixArray::FixArray ( const FixArray array)

Member Function Documentation

bool FixArray::contains ( const T &  v) const

References indexOf().

Referenced by containsAll().

template<template< class _ > class C>
bool FixArray::containsAll ( const C< T > &  collection)

References contains().

int FixArray::count ( void  ) const
const T& FixArray::get ( int  i) const
T& FixArray::get ( int  i)
int FixArray::indexOf ( const T &  v,
int  i = 0 
) const

Referenced by contains().

void FixArray::insert ( int  i,
const T &  v 
)

References elm::array::copy().

void FixArray::insert ( const Iterator &  i,
const T &  v 
)

References insert().

Referenced by insert().

bool FixArray::isEmpty ( void  ) const
int FixArray::lastIndexOf ( const T &  v,
int  i = S 
) const
int FixArray::length ( void  )
FixArray::operator bool ( void  ) const
const T& FixArray::operator[] ( int  i) const
T& FixArray::operator[] ( int  i)
void FixArray::removeAt ( int  i)

References elm::array::copy().

void FixArray::removeAt ( const Iterator &  i)

References removeAt().

Referenced by removeAt().

void FixArray::set ( int  i,
const T &  v 
)
void FixArray::set ( const Iterator &  i,
const T &  v 
)

References set().

Referenced by set().


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