#include <Array_decl.h>
Inheritance diagram for PLearn::Array< T >:
Public Types | |
typedef T * | iterator |
Public Member Functions | |
Array (int the_size=0, int extra_space=10) | |
Array (const T &elem1) | |
Array (const T &elem1, const T &elem2) | |
Array (const Array< T > &other) | |
Array (const TVec< T > &other) | |
Array (const vector< T > &other) | |
operator bool () const | |
To allow if(v) statements. | |
bool | operator! () const |
To allow if(!v) statements. | |
Array< T > | subArray (int start, int len) |
void | clear () |
void | operator= (const Array< T > &other) |
void | operator= (const TVec< T > &other) |
NOTE: operator= COPIES THE TVec STRUCTURE BUT NOT THE DATA (use operator<< to copy data). | |
void | view (const TVec< T > &other) |
Makes this array a shared view of the given TVec. | |
bool | operator== (const Array< T > &other) const |
bool | operator< (const Array< T > &other) const |
bool | operator<= (const Array< T > &other) const |
bool | operator> (const Array< T > &other) const |
bool | operator>= (const Array< T > &other) const |
void | operator= (const vector< T > &other) |
void | print (ostream &out) const |
the data is printed on a single row, no newline | |
int | findFirstOccurence (const T &elem) |
void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
Deep copy of an array is not the same as for a TVec, because the shallow copy automatically creates a new storage. | |
void | write (ostream &out_) const |
void | read (istream &in_) |
operator char * () const | |
used by Hash (VERY DIRTY: TO BE REMOVED [Pascal]) | |
size_t | byteLength () const |
|
Reimplemented from PLearn::TVec< T >. Reimplemented in PLearn::VarArray. Definition at line 79 of file Array_decl.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from PLearn::TVec< T >. Definition at line 293 of file Array_decl.h. |
|
Definition at line 138 of file Array_decl.h. Referenced by PLearn::rebalanceNClasses(). |
|
Definition at line 251 of file Array_decl.h. |
|
Deep copy of an array is not the same as for a TVec, because the shallow copy automatically creates a new storage.
Reimplemented from PLearn::TVec< T >. Reimplemented in PLearn::VarArray. Definition at line 222 of file Array_impl.h. References PLearn::deepCopyField(), and PLearn::PP< Storage< T > >::isNotNull(). Referenced by PLearn::deepCopyField(). |
|
To allow if(v) statements.
Definition at line 119 of file Array_decl.h. |
|
used by Hash (VERY DIRTY: TO BE REMOVED [Pascal])
Reimplemented from PLearn::TVec< T >. Definition at line 288 of file Array_decl.h. |
|
To allow if(!v) statements.
Reimplemented from PLearn::TVec< T >. Definition at line 123 of file Array_decl.h. |
|
Definition at line 175 of file Array_decl.h. |
|
Definition at line 190 of file Array_decl.h. |
|
Definition at line 236 of file Array_decl.h. |
|
NOTE: operator= COPIES THE TVec STRUCTURE BUT NOT THE DATA (use operator<< to copy data).
Reimplemented from PLearn::TVec< T >. Definition at line 149 of file Array_decl.h. |
|
Definition at line 141 of file Array_decl.h. |
|
Definition at line 163 of file Array_decl.h. |
|
Definition at line 206 of file Array_decl.h. |
|
Definition at line 221 of file Array_decl.h. |
|
the data is printed on a single row, no newline
Reimplemented from PLearn::TVec< T >. Definition at line 244 of file Array_decl.h. |
|
Reimplemented in PLearn::VarArray. Definition at line 281 of file Array_decl.h. |
|
Definition at line 126 of file Array_decl.h. |
|
Makes this array a shared view of the given TVec.
Definition at line 158 of file Array_decl.h. |
|
Reimplemented in PLearn::VarArray. Definition at line 265 of file Array_decl.h. |