![]() |
Rosetta
2021.16
|
utility::vector1<utility::vector1>> vector of vectors to create the effect of a jagged array More...
#include <jagged_array.hh>

Classes | |
| struct | func_T2 |
Public Types | |
| typedef super::value_type | value_type |
| typedef super::reference | reference |
| typedef super::const_reference | const_reference |
| typedef super::pointer | pointer |
| typedef super::const_pointer | const_pointer |
| typedef super::iterator | iterator |
| typedef super::const_iterator | const_iterator |
| typedef super::reverse_iterator | reverse_iterator |
| typedef super::const_reverse_iterator | const_reverse_iterator |
| typedef super::size_type | size_type |
| typedef super::difference_type | difference_type |
| typedef super::allocator_type | allocator_type |
| typedef super::index_type | index_type |
| typedef super::ssize_type | ssize_type |
| typedef super::Value | Value |
| typedef super::Reference | Reference |
| typedef super::ConstReference | ConstReference |
| typedef super::Pointer | Pointer |
| typedef super::ConstPointer | ConstPointer |
| typedef super::Iterator | Iterator |
| typedef super::ConstIterator | ConstIterator |
| typedef super::ReverseIterator | ReverseIterator |
| typedef super::ConstReverseIterator | ConstReverseIterator |
| typedef super::Size | Size |
| typedef super::Difference | Difference |
| typedef super::Allocator | Allocator |
| typedef super::Index | Index |
| typedef super::SSize | SSize |
Public Member Functions | |
| jagged_array (allocator_type const &alloc=allocator_type()) | |
| Default constructor. More... | |
| jagged_array (jagged_array< T > const &v) | |
| Copy constructor. More... | |
| jagged_array (utility::vector1< utility::vector1< T, A > > const &v) | |
| Assignable copy constructor. More... | |
| jagged_array (size_type const num) | |
| Size constructor constructs an empty jagged_array of size num. More... | |
| jagged_array (size_type const num, utility::vector1< T > const &vals) | |
| Size and vals constructor constructs a jagged_array of size num filled with copies of vals. More... | |
| jagged_array (utility::vector1< size_type > const &dims) | |
| Uniform value constructor. More... | |
| jagged_array (utility::vector1< size_type > const &dims, utility::vector1< T > const &vals) | |
| Constructor that reserves size based on vector of size types, fills vectors with vals. More... | |
| template<typename InputIterator > | |
| jagged_array (InputIterator const beg, InputIterator const ending, allocator_type const &alloc=allocator_type()) | |
| Iterator range constructor. More... | |
| ~jagged_array () override | |
| Destructor. More... | |
| jagged_array & | operator= (jagged_array< T > const &v) |
| Copy assignment. More... | |
| template<ssize_type L_, typename T_ , typename A_ > | |
| jagged_array & | operator= (utility::vector1< utility::vector1< T, A > > const &v) |
| Assignable copy assignment. More... | |
| void | assign (utility::vector1< size_type > const &dims) |
| clears jagged_array and reserves size based on vector of size types More... | |
| void | assign (utility::vector1< size_type > const &dims, utility::vector1< T > const &vals) |
| clears jagged_array and reserves size based on vector of size types, fills vectors with vals More... | |
| int | index (T const &t) const |
| Find the index of an element. If not found then return 0;. More... | |
| bool | has_value (T const &t) const |
| Checks if element is present and returns bool depending whether present. More... | |
| void | show (std::ostream &output=std::cout) const |
| shows a string representation of the jagged_array More... | |
| template<typename T_2 > | |
| void | apply_func_to_all (typename func_T2< T_2 >::two_param_func func, T_2 operand) |
| applies param *func to all values in the jagged_array (1-param func) More... | |
| template<typename T_2 > | |
| void | apply_func_to_each_col (typename func_T2< T_2 >::two_param_func func, utility::vector1< T_2 > operands) |
| applies param *func to all values in the jagged_array (2-param func) using column_dependent operand More... | |
| template<typename T_2 > | |
| void | apply_func_to_each_elem (typename func_T2< T_2 >::two_param_func func, jagged_array< T_2 > operands) |
| applies param *func to all values in the jagged_array (2-param func) using 2D-index dependent operand (i.e. matrix arithmetic) More... | |
| template<typename T_2 > | |
| void | apply_func_to_each_elem (typename func_T2< T_2 >::three_param_func func, jagged_array< T > operands, T_2 third_oper) |
| applies param *func to all values in the jagged_array (3-param func) using 2D-index dependent operand and a third, general operand More... | |
| utility::vector1< T > | get_totals_columns () const |
| returns vector1 of totals of columns of jagged_array More... | |
| T | get_total () const |
| returns total of all elements in jagged array More... | |
| Size | size_col (Size col) const |
| returns size of specified column More... | |
| Size | max_size_col () const |
| returns the maximum size of any columns More... | |
| bool | equal_size (jagged_array< T > const &other) const |
| checks if a second jagged_array is of equal size for all columns More... | |
| template<typename T_2 > | |
| bool | equal_size (jagged_array< T_2 > const &other) const |
| checks if a second jagged_array (of different type) is of equal size for all columns More... | |
Private Types | |
| typedef utility::vector1 < utility::vector1< T, A > > | super |
| typedef T(* | one_param_func )(T const &) |
| typedef T(* | two_param_func )(T const &, T const &) |
| typedef T(* | three_param_func )(T const &, T const &, T const &) |
utility::vector1<utility::vector1>> vector of vectors to create the effect of a jagged array
| typedef super::Allocator protocols::mean_field::jagged_array< T, A >::Allocator |
| typedef super::allocator_type protocols::mean_field::jagged_array< T, A >::allocator_type |
| typedef super::const_iterator protocols::mean_field::jagged_array< T, A >::const_iterator |
| typedef super::const_pointer protocols::mean_field::jagged_array< T, A >::const_pointer |
| typedef super::const_reference protocols::mean_field::jagged_array< T, A >::const_reference |
| typedef super::const_reverse_iterator protocols::mean_field::jagged_array< T, A >::const_reverse_iterator |
| typedef super::ConstIterator protocols::mean_field::jagged_array< T, A >::ConstIterator |
| typedef super::ConstPointer protocols::mean_field::jagged_array< T, A >::ConstPointer |
| typedef super::ConstReference protocols::mean_field::jagged_array< T, A >::ConstReference |
| typedef super::ConstReverseIterator protocols::mean_field::jagged_array< T, A >::ConstReverseIterator |
| typedef super::Difference protocols::mean_field::jagged_array< T, A >::Difference |
| typedef super::difference_type protocols::mean_field::jagged_array< T, A >::difference_type |
| typedef super::Index protocols::mean_field::jagged_array< T, A >::Index |
| typedef super::index_type protocols::mean_field::jagged_array< T, A >::index_type |
| typedef super::iterator protocols::mean_field::jagged_array< T, A >::iterator |
| typedef super::Iterator protocols::mean_field::jagged_array< T, A >::Iterator |
|
private |
| typedef super::pointer protocols::mean_field::jagged_array< T, A >::pointer |
| typedef super::Pointer protocols::mean_field::jagged_array< T, A >::Pointer |
| typedef super::reference protocols::mean_field::jagged_array< T, A >::reference |
| typedef super::Reference protocols::mean_field::jagged_array< T, A >::Reference |
| typedef super::reverse_iterator protocols::mean_field::jagged_array< T, A >::reverse_iterator |
| typedef super::ReverseIterator protocols::mean_field::jagged_array< T, A >::ReverseIterator |
| typedef super::Size protocols::mean_field::jagged_array< T, A >::Size |
| typedef super::size_type protocols::mean_field::jagged_array< T, A >::size_type |
| typedef super::SSize protocols::mean_field::jagged_array< T, A >::SSize |
| typedef super::ssize_type protocols::mean_field::jagged_array< T, A >::ssize_type |
|
private |
|
private |
|
private |
| typedef super::Value protocols::mean_field::jagged_array< T, A >::Value |
| typedef super::value_type protocols::mean_field::jagged_array< T, A >::value_type |
|
inlineexplicit |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Assignable copy constructor.
|
inlineexplicit |
Size constructor constructs an empty jagged_array of size num.
| [in] | num | - determines size of jagged_array |
|
inlineexplicit |
Size and vals constructor constructs a jagged_array of size num filled with copies of vals.
| [in] | num | - determines size of jagged_array |
| [in] | vals | - used as initial value of vector1's in jagged_array |
|
inline |
Uniform value constructor.
constructs a vector1 of size dim that holds vector1s that each contain dim2 copies of value
| [in] | dim | - first dimension of jagged_array (determines size of jagged_array itself) |
| [in] | dim2 | - second dimension of jagged_array (determines size of each vector1 within jagged_array) |
| [in] | dims | - dimensions used to determine size of empty vectors within jagged_array |
|
inline |
Constructor that reserves size based on vector of size types, fills vectors with vals.
Constructs a vector of size dims.size(). Each vector within this vector has the size of the element
with its index within the vector dims and is filled with the element with its index within the vector vals
|
inline |
Iterator range constructor.
|
inlineoverride |
Destructor.
|
inline |
applies param *func to all values in the jagged_array (1-param func)
applies param *func to all values in the jagged_array (2-param func)
Referenced by protocols::mean_field::operator*=(), protocols::mean_field::operator+=(), protocols::mean_field::operator-=(), and protocols::mean_field::operator/=().
|
inline |
applies param *func to all values in the jagged_array (2-param func) using column_dependent operand
Referenced by protocols::mean_field::operator*=(), protocols::mean_field::operator+=(), protocols::mean_field::operator-=(), and protocols::mean_field::operator/=().
|
inline |
applies param *func to all values in the jagged_array (2-param func) using 2D-index dependent operand (i.e. matrix arithmetic)
Referenced by protocols::mean_field::operator*=(), protocols::mean_field::operator+=(), protocols::mean_field::operator-=(), and protocols::mean_field::operator/=().
|
inline |
applies param *func to all values in the jagged_array (3-param func) using 2D-index dependent operand and a third, general operand
|
inline |
clears jagged_array and reserves size based on vector of size types
Referenced by protocols::mean_field::AAMatrix::ave_abs_diff(), protocols::mean_field::FlexBBMeanField::delete_pose(), and protocols::mean_field::AAMatrix::frob_distance().
|
inline |
clears jagged_array and reserves size based on vector of size types, fills vectors with vals
|
inline |
checks if a second jagged_array is of equal size for all columns
| [in] | other | - second jagged_array with which to compare |
Referenced by protocols::mean_field::jagged_array< AAProb >::apply_func_to_each_elem().
|
inline |
checks if a second jagged_array (of different type) is of equal size for all columns
| [in] | other | - second jagged_array with which to compare |
|
inline |
returns total of all elements in jagged array
class T must provide operator += and -=
Error if size is 0
Referenced by protocols::mean_field::AAMatrix::cosine_distance().
|
inline |
returns vector1 of totals of columns of jagged_array
class T must provide operator +=
Error if size is 0
Referenced by protocols::mean_field::AAMatrix::cosine_distance().
|
inline |
Checks if element is present and returns bool depending whether present.
|
inline |
Find the index of an element. If not found then return 0;.
Referenced by protocols::mean_field::jagged_array< AAProb >::index().
|
inline |
returns the maximum size of any columns
Error if jagged_array is empty
Referenced by protocols::mean_field::GenMeanFieldMover::report_aa_matrix(), and protocols::mean_field::jagged_array< AAProb >::show().
|
inline |
Copy assignment.
|
inline |
Assignable copy assignment.
|
inline |
shows a string representation of the jagged_array
each column represents one of the utility::vector1's within the vector that comprises the jagged_array
therefore, the "jagged" edge of the array is the bottom edge of the matrix
Referenced by protocols::mean_field::RotMatrix::show(), protocols::mean_field::MeanField::show(), and protocols::mean_field::AAMatrix::show().
|
inline |
returns size of specified column
| [in] | col | - column for which to determine size |
Error if col > size
Referenced by protocols::mean_field::jagged_array< AAProb >::max_size_col().
1.8.7