Lattice Tester Online Documentation 0.1.0-861
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
|
A subclass of the NTL::Vec<T>
class.
More...
#include <latticetester/NTLWrap.h>
Public Types | |
typedef std::int64_t | size_type |
Public Member Functions | |
vector () | |
Empty constructor. | |
vector (size_type size) | |
Allocation constructor. | |
vector (const Vec< T > &v) | |
Copy constructor. | |
~vector () | |
Destructor. | |
void | resize (size_type size) |
Set the vector lenght to size. | |
void | clear () |
Releases space and sets length to 0. | |
size_type | size () const |
Returns the current lenght of the vector. | |
size_type | max_size () const |
Returns the number of allocated and initialized elements in the vector. | |
void | push_back (const T &element) |
a copy from NTL::Vec<T>::append | |
T | back () |
return the last element, this one is for STL compatibility. | |
bool | empty () const |
Returns true if the vector has length 0 and false otherwise. | |
A subclass of the NTL::Vec<T>
class.
It extends its parent with a some additional methods and overloads (changes) a few other methods for compatibility with boost. !!!!! BAD! ** WARNING **: Avoid using these redefined methods, because this can be very confusing and dangerous. We should probably remove them! *********
std::int64_t NTL::vector< T >::size_type |
|
inline |
Empty constructor.
Creates a vector of size 0.
|
inline |
Allocation constructor.
Allocates the space needed by a vector of size size
.
size | The size of the vector |
|
inline |
Copy constructor.
Makes a copy of v
.
v | Vector to be copied. |
|
inline |
Destructor.
Frees memory of all T and destroys the vector.
|
inline |
return the last element, this one is for STL compatibility.
?????
|
inline |
Releases space and sets length to 0.
This uses NTL::Vec<T>::kill()
. BAD RENAMING! REMOVE !!! clear() should not be the same as kill(). **********
|
inline |
Returns true
if the vector has length 0 and false
otherwise.
|
inline |
Returns the number of allocated and initialized elements in the vector.
It is possible for the vector length to differ from this one if the max length has been preemptively expanded or if the vector has been shrinked because NTL does not free components until explicitly asked. This uses NTL::Vec<T>::MaxLength()
.
|
inline |
a copy from NTL::Vec<T>::append
|
inline |
Set the vector lenght to size.
New objects are initialized using the default contructor for T This uses NTL::Vec<T>::SetLength(size)
size | The new size wanted |
|
inline |
Returns the current lenght of the vector.
This uses NTL::Vec<T>::length()
.