Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
#include <Vector.hpp>
Public Member Functions | |
Vector () | |
Basic Constructors. More... | |
Vector (size_t n) | |
Vector (size_t n, const bool &val) | |
template<class InputIterator > | |
Vector (InputIterator first, InputIterator last) | |
Vector (const Vector< bool > &x) | |
Vector (Vector< bool > &&x) | |
Vector (const std::vector< bool > &x) | |
Vector (std::vector< bool > &&x) | |
Vector (std::initializer_list< bool > il) | |
Vector< bool > & | operator= (const Vector< bool > &x) |
Assign operator. More... | |
Vector< bool > & | operator= (Vector< bool > &&x) |
Vector< bool > & | operator= (std::initializer_list< bool > il) |
std::vector< bool >::iterator | begin () noexcept |
Iterators. More... | |
std::vector< bool >::const_iterator | begin () const noexcept |
std::vector< bool >::iterator | end () noexcept |
std::vector< bool >::const_iterator | end () const noexcept |
std::vector< bool >::reverse_iterator | rbegin () noexcept |
std::vector< bool >::const_reverse_iterator | rbegin () const noexcept |
std::vector< bool >::reverse_iterator | rend () noexcept |
std::vector< bool >::const_reverse_iterator | rend () const noexcept |
std::vector< bool >::const_iterator | cbegin () const noexcept |
std::vector< bool >::const_iterator | cend () const noexcept |
std::vector< bool >::const_reverse_iterator | crbegin () const noexcept |
std::vector< bool >::const_reverse_iterator | crend () const noexcept |
size_t | size () const noexcept |
Returns vector size. More... | |
size_t | Size () const noexcept |
size_t | Dims () const noexcept |
Returns 1. For compatibility with Matrix and Image. More... | |
size_t | max_size () const noexcept |
Returns maximum vector size. More... | |
void | resize (size_t n) |
Resizes vector. More... | |
void | resize (size_t n, const bool &val) |
Resizes vector. More... | |
size_t | capacity () const noexcept |
Returns vector capacity. More... | |
bool | empty () const noexcept |
Tests if vector is empty. More... | |
void | reserve (size_t n) |
Changes vector capacity. More... | |
void | shrink_to_fit () |
Reduces vector capacity to size. More... | |
void | Write (const std::string &filename) const |
Writes vector into file. More... | |
std::vector< bool >::reference | operator[] (size_t n) |
Returns reference to data at position n. More... | |
bool | operator[] (size_t n) const |
std::vector< bool >::reference | operator() (size_t n) |
Returns reference to data at position n. More... | |
bool | operator() (size_t n) const |
std::vector< bool >::reference | at (size_t n) |
Returns reference to data at position n, checking if it exists. More... | |
bool | at (size_t n) const |
std::vector< bool >::reference | front () |
Returns vector's first element. More... | |
bool | front () const |
std::vector< bool >::reference | back () |
Returns vector's last element. More... | |
bool | back () const |
template<class InputIterator > | |
void | assign (InputIterator first, InputIterator last) |
Assigns data to all elements. More... | |
void | assign (size_t n, const bool &val) |
void | assign (std::initializer_list< bool > il) |
void | Set (bool val) |
Assigns data to all elements. More... | |
void | push_back (const bool &val) |
Inserts element in the end of the vector. More... | |
void | push_back (bool &&val) |
Inserts element in the end of the vector. More... | |
void | pop_back () |
Removes last element from vector. More... | |
std::vector< bool >::iterator | insert (typename std::vector< bool >::iterator position, const bool &val) |
Inserts elements into the vector. More... | |
std::vector< bool >::iterator | insert (typename std::vector< bool >::iterator position, size_t n, const bool &val) |
template<class InputIterator > | |
std::vector< bool >::iterator | insert (typename std::vector< bool >::iterator position, InputIterator first, InputIterator last) |
std::vector< bool >::iterator | insert (typename std::vector< bool >::iterator position, bool &&val) |
std::vector< bool >::iterator | insert (typename std::vector< bool >::iterator position, std::initializer_list< bool > il) |
std::vector< bool >::iterator | erase (typename std::vector< bool >::iterator position) |
Removes elements from the vector. More... | |
std::vector< bool >::iterator | erase (typename std::vector< bool >::iterator first, typename std::vector< bool >::iterator last) |
void | swap (Vector &x) |
Exchanges content of this vector by x. More... | |
void | clear () noexcept |
Removes all elements from vector. More... | |
template<class O > | |
O & | Print (O &os) const |
Prints vector containts to output stream os. More... | |
template<class O > | |
O & | PrintDimensions (O &os) const |
Prints vector dimensions to output stream os. More... | |
Static Public Member Functions | |
static Vector< bool > | Read (const std::string &filename) |
Reads vector from file. More... | |
Protected Attributes | |
std::vector< bool > | _data |
bool | qk_data |
size_t | _size |
Definition at line 506 of file Vector.hpp.
|
inlineexplicit |
Basic Constructors.
many. |
Definition at line 2932 of file Vector.hpp.
|
inlineexplicit |
Definition at line 2951 of file Vector.hpp.
|
inline |
Definition at line 2970 of file Vector.hpp.
|
inline |
Definition at line 2990 of file Vector.hpp.
|
inline |
Definition at line 3011 of file Vector.hpp.
|
inline |
Definition at line 3031 of file Vector.hpp.
|
inline |
Definition at line 3052 of file Vector.hpp.
|
inline |
Definition at line 3072 of file Vector.hpp.
|
inline |
Definition at line 3093 of file Vector.hpp.
|
inline |
Assigns data to all elements.
none. |
Definition at line 3583 of file Vector.hpp.
|
inline |
Definition at line 3606 of file Vector.hpp.
|
inline |
Definition at line 3629 of file Vector.hpp.
|
inline |
Returns reference to data at position n, checking if it exists.
n | a vector reference. |
Definition at line 3502 of file Vector.hpp.
|
inline |
Definition at line 3506 of file Vector.hpp.
|
inline |
Returns vector's last element.
none. |
Definition at line 3546 of file Vector.hpp.
|
inline |
Definition at line 3564 of file Vector.hpp.
|
inlinenoexcept |
Iterators.
many. |
Definition at line 3189 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3193 of file Vector.hpp.
|
inlinenoexcept |
Returns vector capacity.
none. |
Definition at line 3263 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3221 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3225 of file Vector.hpp.
|
inlinenoexcept |
Removes all elements from vector.
none. |
Definition at line 3938 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3229 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3233 of file Vector.hpp.
|
inlinenoexcept |
Returns 1. For compatibility with Matrix and Image.
none. |
Definition at line 3245 of file Vector.hpp.
|
inlinenoexcept |
Tests if vector is empty.
none. |
Definition at line 3267 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3197 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3201 of file Vector.hpp.
|
inline |
Removes elements from the vector.
many. |
Definition at line 3869 of file Vector.hpp.
|
inline |
Definition at line 3894 of file Vector.hpp.
|
inline |
Returns vector's first element.
none. |
Definition at line 3510 of file Vector.hpp.
|
inline |
Definition at line 3528 of file Vector.hpp.
|
inline |
Inserts elements into the vector.
many. |
Definition at line 3744 of file Vector.hpp.
|
inline |
Definition at line 3768 of file Vector.hpp.
|
inline |
Definition at line 3794 of file Vector.hpp.
|
inline |
Definition at line 3819 of file Vector.hpp.
|
inline |
Definition at line 3844 of file Vector.hpp.
|
inlinenoexcept |
Returns maximum vector size.
none. |
Definition at line 3249 of file Vector.hpp.
|
inline |
Returns reference to data at position n.
n | a vector index. |
Definition at line 3486 of file Vector.hpp.
|
inline |
Definition at line 3494 of file Vector.hpp.
|
inline |
Assign operator.
many. |
Definition at line 3115 of file Vector.hpp.
|
inline |
Definition at line 3140 of file Vector.hpp.
|
inline |
Definition at line 3165 of file Vector.hpp.
|
inline |
Returns reference to data at position n.
n | a vector index. |
Definition at line 3470 of file Vector.hpp.
|
inline |
Definition at line 3478 of file Vector.hpp.
|
inline |
Removes last element from vector.
none. |
Definition at line 3721 of file Vector.hpp.
|
inline |
Prints vector containts to output stream os.
os | an output stream. |
Definition at line 3944 of file Vector.hpp.
|
inline |
Prints vector dimensions to output stream os.
none. |
Definition at line 3962 of file Vector.hpp.
|
inline |
Inserts element in the end of the vector.
val | The element to be inserted. |
Definition at line 3675 of file Vector.hpp.
|
inline |
Inserts element in the end of the vector.
val | The element to be inserted. |
Definition at line 3698 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3205 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3209 of file Vector.hpp.
|
inlinestatic |
Reads vector from file.
filename | Name of the file conatining vector. |
Definition at line 3316 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3213 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3217 of file Vector.hpp.
|
inline |
Changes vector capacity.
n | new vector capacity. |
Definition at line 3271 of file Vector.hpp.
|
inline |
Resizes vector.
n | new size. |
Definition at line 3253 of file Vector.hpp.
|
inline |
Resizes vector.
n | new size. |
val | value assigned to new elements. |
Definition at line 3258 of file Vector.hpp.
|
inline |
Assigns data to all elements.
none. |
Definition at line 3652 of file Vector.hpp.
|
inline |
Reduces vector capacity to size.
none. |
Definition at line 3293 of file Vector.hpp.
|
inlinenoexcept |
Returns vector size.
none. |
Definition at line 3237 of file Vector.hpp.
|
inlinenoexcept |
Definition at line 3241 of file Vector.hpp.
|
inline |
Exchanges content of this vector by x.
x | a vector. |
Definition at line 3919 of file Vector.hpp.
|
inline |
Writes vector into file.
filename | Name of the file conatining vector. |
Definition at line 3427 of file Vector.hpp.
|
protected |
Definition at line 509 of file Vector.hpp.
|
protected |
Definition at line 511 of file Vector.hpp.
|
protected |
Definition at line 510 of file Vector.hpp.