Index

C++ Code Documentation

template <class A> base::ArrayP

File: BASE/base/ArrayP.H

Variable-size one-dimensional ArrayP template class that does not store its own length. Space is allocated/deallocated with explicit calls to methods allocate()/deallocate().

public:
  • inline ArrayP();
    void constructor
  • inline ~ArrayP();
    destructor
  • inline void allocate(uint);
  • inline void deallocate();
  • inline A const &operator[](uint i) const;
  • inline A &operator[](uint i);
  • inline A *data();
  • inline A const *data() const;
protected:
private:
  • A *_data;
  • ArrayP(ArrayP<A> const &);
    disabled copy constructor and assigment operators these can't be implemented because an ArrayP<> doesn't know how long it is. Use ArrayPv<> if you need these.
  • ArrayP<A> &operator=( ArrayP<A> const & );


template <class A> base::ArrayP GANG