|
Index
C++ Code Documentation
template <class A, int unsigned N> base::ArrayX
File: BASE/base/ArrayX.H
Fixed-length one-dimensional array template class that optionally
does bounds checking.
Space is allocated/deallocated with explicit calls to methods
allocate()/deallocate()
public:
- ArrayX();
 | void constructor | |
- ArrayX( ArrayX const &a );
 | copy constructor | |
- ArrayX( A const *a );
 | copy constructor | |
- virtual inline ~ArrayX();
 | destructor | |
- ArrayX &operator=( ArrayX const &a );
 | assignment operators | |
- ArrayX &operator=( A const *a );
 | assignment operators | |
- A &operator[]( int unsigned n );
 | return reference to nth entry | |
- A const &operator[]( int unsigned n ) const;
 | return reference to nth entry | |
- void clear();
 | set all entries of *this to 0 | |
- void set( A const &a );
 | set all entries of *this to a | |
- friend std::ostream &operator<< NULL_TMPL_ARGS ( std::ostream &o, ArrayX<A,N> const &a );
- int unsigned size() const;
- A *data();
- A const *data() const;
protected:
private:
|