
template<class T, size_t d> | |
std::ostream & | operator<< (std::ostream &out, const std::array< T, d > &x) |
template<class T, size_t d> | |
std::ofstream & | operator<< (std::ofstream &out, const std::array< T, d > &x) |
template<class T, size_t d> | |
std::istream & | operator>> (std::istream &in, std::array< T, d > &x) |
template<class T, size_t d> | |
std::ifstream & | operator>> (std::ifstream &in, std::array< T, d > &x) |
template<class T, size_t d> | |
std::ostream & | display (std::ostream &out, const std::array< T, d > &x, unsigned int padding) |
template<class T, size_t d> | |
std::ofstream & | display (std::ofstream &out, const std::array< T, d > &x, unsigned int padding) |
template<class T> | |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &x) |
template<class T> | |
std::ofstream & | operator<< (std::ofstream &out, const std::vector< T > &x) |
template<class T> | |
std::istream & | operator>> (std::istream &in, std::vector< T > &x) |
template<class T> | |
std::ifstream & | operator>> (std::ifstream &in, std::vector< T > &x) |
Detailed Description
Function Documentation
◆ display() [1/2]
std::ofstream & display | ( | std::ofstream & | out, |
const std::array< T, d > & | x, | ||
unsigned int | padding ) |
Display array in a nicely formatted to a std::ofstream
- Parameters
-
[in,out] out output file stream [in] x array to be displayed [in] padding (default = 0) number of trailing spaces
- Returns
- reference to output stream
Definition at line 1568 of file Operators_array.tpp.
◆ display() [2/2]
std::ostream & display | ( | std::ostream & | out, |
const std::array< T, d > & | x, | ||
unsigned int | padding ) |
Display array in a nicely formatted to a std::ostream
- Parameters
-
[in,out] out output stream [in] x array to be displayed [in] padding (default = 0) number of trailing spaces
- Returns
- reference to output stream
Definition at line 1528 of file Operators_array.tpp.
◆ operator<<() [1/4]
std::ofstream & operator<< | ( | std::ofstream & | out, |
const std::array< T, d > & | x ) |
Insertion operator for std::array.
Flush the content of std::array to std::ofstream. The content of the input array is flushed with the following format: x[0] x[1] x[2] ... x[d-1] where d = x.size(); (i.e. array elements are separated by blank spaces). Template parameter T can be any type such that operator<< is defined.
- Parameters
-
[in,out] out output file stream [in] x argument of insertion operator
- Returns
- reference to the stream (allows concatenation)
Definition at line 1367 of file Operators_array.tpp.
◆ operator<<() [2/4]
std::ofstream & operator<< | ( | std::ofstream & | out, |
const std::vector< T > & | x ) |
Insertion operator for std::vector.
Flush the content of std::vector to std::ofstream. The content of the input vector is flushed with the following format: x[0] x[1] x[2] ... x[n-1] where n = x.size(); (i.e. vector elements are separated by blank spaces). Template parameter T can be any type such that operator<< is defined.
- Parameters
-
[in,out] out output file stream [in] x argument of insertion operator
- Returns
- reference to the stream (allows concatenation)
Definition at line 1395 of file Operators_vector.tpp.
◆ operator<<() [3/4]
std::ostream & operator<< | ( | std::ostream & | out, |
const std::array< T, d > & | x ) |
Insertion operator for std::array.
Flush the content of std::array to std::ostream. The content of the input array is flushed with the following format: x[0] x[1] x[2] ... x[d-1] where d = x.size(); (i.e. array elements are separated by blank spaces). Template parameter T can be any type such that operator<< is defined.
- Parameters
-
[in,out] out output stream [in] x argument of insertion operator
- Returns
- reference to the stream (allows concatenation)
Definition at line 1328 of file Operators_array.tpp.
◆ operator<<() [4/4]
std::ostream & operator<< | ( | std::ostream & | out, |
const std::vector< T > & | x ) |
Insertion operator for std::vector.
Flush the content of std::vector to std::ostream. The content of the input vector is flushed with the following format: x[0] x[1] x[2] ... x[n-1] where n = x.size(); (i.e. vector elements are separated by blank spaces). Template parameter T can be any type such that operator<< is defined.
- Parameters
-
[in,out] out output stream [in] x argument of insertion operator
- Returns
- reference to the stream (allows concatenation)
Definition at line 1353 of file Operators_vector.tpp.
◆ operator>>() [1/4]
std::ifstream & operator>> | ( | std::ifstream & | in, |
std::array< T, d > & | x ) |
Extraction operator for std::array.
Extract the content of std::array from std::ifstream. The content of the input array is extracted until end-of-stream condition is met or all available position in the array are filled.
- Parameters
-
[in,out] in input file stream [in,out] x argument of extraction operator
- Returns
- reference to input file stream (allows concatenation)
Definition at line 1489 of file Operators_array.tpp.
◆ operator>>() [2/4]
std::ifstream & operator>> | ( | std::ifstream & | in, |
std::vector< T > & | x ) |
Extraction operator for std::vector.
Extract the content of std::vector from std::ifstream. The content of the input vector is extracted until end-of-file condition is met. Element extracted from the stream are copyied into vector starting from position
- When all the availble position within the vector have been overwritten, further elements will be added to the container using push_back, therefore increasing container's size.
- Parameters
-
[in,out] in input file stream [in,out] x argument of extraction operator
- Returns
- reference to input file stream (allows concatenation)
Definition at line 1536 of file Operators_vector.tpp.
◆ operator>>() [3/4]
std::istream & operator>> | ( | std::istream & | in, |
std::array< T, d > & | x ) |
Extraction operator for std::array.
Extract the content of std::array from std::istream. The content of the input array is extracted until end-of-stream condition is met or all available position in the array are filled.
- Parameters
-
[in,out] in input stream [in,out] x argument of extraction operator
- Returns
- reference to input stream (allows concatenation)
Definition at line 1449 of file Operators_array.tpp.
◆ operator>>() [4/4]
std::istream & operator>> | ( | std::istream & | in, |
std::vector< T > & | x ) |
Extraction operator for std::vector.
Extract the content of std::vector from std::istream. The content of the input vector is extracted until end-of-stream condition is met. Element extracted from the stream are copyied into vector starting from position
- When all the availble position within the vector have been overwritten, further elements will be added to the container using push_back, therefore increasing container's size.
- Parameters
-
[in,out] in input stream [in,out] x argument of extraction operator
- Returns
- reference to input stream (allows concatenation)
Definition at line 1490 of file Operators_vector.tpp.
