Lines Matching refs:Blk
16 /* A NumberlikeArray<Blk> object holds a heap-allocated array of Blk with a
27 template <class Blk>
41 Blk *blk;
45 blk = (cap > 0) ? (new Blk[cap]) : NULL;
50 * time can use this constructor and then overwrite blk without first
53 blk = NULL;
58 delete [] blk;
70 NumberlikeArray(const NumberlikeArray<Blk> &x);
73 void operator=(const NumberlikeArray<Blk> &x);
76 NumberlikeArray(const Blk *b, Index blen);
81 Blk getBlock(Index i) const { return blk[i]; }
87 bool operator ==(const NumberlikeArray<Blk> &x) const;
89 bool operator !=(const NumberlikeArray<Blk> &x) const {
97 template <class Blk>
98 const unsigned int NumberlikeArray<Blk>::N = 8 * sizeof(Blk);
100 template <class Blk>
101 void NumberlikeArray<Blk>::allocate(Index c) {
105 delete [] blk;
108 blk = new Blk[cap];
112 template <class Blk>
113 void NumberlikeArray<Blk>::allocateAndCopy(Index c) {
116 Blk *oldBlk = blk;
119 blk = new Blk[cap];
123 blk[i] = oldBlk[i];
129 template <class Blk>
130 NumberlikeArray<Blk>::NumberlikeArray(const NumberlikeArray<Blk> &x)
134 blk = new Blk[cap];
138 blk[i] = x.blk[i];
141 template <class Blk>
142 void NumberlikeArray<Blk>::operator=(const NumberlikeArray<Blk> &x) {
154 blk[i] = x.blk[i];
157 template <class Blk>
158 NumberlikeArray<Blk>::NumberlikeArray(const Blk *b, Index blen)
161 blk = new Blk[cap];
165 blk[i] = b[i];
168 template <class Blk>
169 bool NumberlikeArray<Blk>::operator ==(const NumberlikeArray<Blk> &x) const {
177 if (blk[i] != x.blk[i])