CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Array.hh>
Public Types | |
typedef Array< T > | X1 |
typedef Array< X1 > | X2 |
typedef Array< X2 > | X3 |
typedef Array< X3 > | X4 |
typedef Array< X4 > | X5 |
typedef Array< X5 > | X6 |
typedef Array< X6 > | X7 |
typedef Array< X7 > | X8 |
typedef Array< X8 > | X9 |
typedef T | value_type |
typedef Index | size_type |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Member Functions | |
ReturnArray (Array< T > &init_tens) | |
ReturnArray & | operator= (Array< T > &RHS) |
Index | size () const |
void | swap (Array< T > &RHS) |
T & | at (Index ind) |
const T & | at (Index ind) const |
const T & | operator[] (Index ind) const |
T & | operator[] (Index ind) |
T & | back () |
const T & | back () const |
T const * | begin () const |
T * | begin () |
T const * | cbegin () const |
T const * | end () const |
T * | end () |
T const * | cend () const |
void | push_back (const T &toPush) |
void | pop_back () |
void | remove (Index ind) |
void | clear () |
void | resize (Index new_N) |
void | resize (Index new_N, const T &fill_val) |
void | reserve (Index new_max) |
template<typename CompareType > | |
void | sort (const CompareType &comp) |
void | sort (Array< Index > &ind_order) |
void | sort () |
Array & | append (const Array &new_tail) |
Array & | append_unique (const Array &new_tail) |
void | swap_elem (Index i, Index j) |
Array & | permute (const Array< Index > &perm_array) |
Array & | ipermute (const Array< Index > &perm_array) |
bool | next_permute () |
ReturnArray< Index > | as_perm_inverse () const |
ReturnArray< Index > | as_perm_transform_by (const Array< Index > &trans_perm) const |
const T & | max () const |
const T & | min () const |
ReturnArray< T > | sub_array (Index ind_begin, Index ind_end) const |
T | sum () const |
bool | is_ascending () const |
bool | is_descending () const |
bool | is_constant () const |
bool | is_permute () const |
bool | has_fixed_points () const |
bool | operator== (const Array< T > &RHS) const |
bool | operator!= (const Array< T > &RHS) const |
bool | operator< (const Array< T > &RHS) const |
bool | operator> (const Array< T > &RHS) const |
bool | operator<= (const Array< T > &RHS) const |
bool | operator>= (const Array< T > &RHS) const |
bool | all_in (const Array &superset) const |
Index | coincidence (const Array &superset) const |
Index | incidences (const T &test_elem) const |
Index | find (const T &test_elem) const |
Index | reverse_find (const T &test_elem) const |
Same as find, but starts from the last element of the Array. More... | |
Index | almost_find (const T &test_elem, double tol_val=TOL) const |
Index | almost_reverse_find (const T &test_elem, double tol_val=TOL) const |
Same as almost_find, but start from the last element of the Array. More... | |
bool | contains (const T &test_elem) const |
bool | almost_contains (const T &test_elem, double tol_val=TOL) const |
void | print_column (std::ostream &stream, const std::string &indent="") const |
Static Public Member Functions | |
static ReturnArray< T > | sequence (const T &initial, const T &final) |
static ReturnArray< T > | sequence (const T &initial, const T &increment, const T &final) |
Static Private Member Functions | |
static Index | ARRAY_MIN_EXTRA_SPACE () |
static double | ARRAY_EXTENSION_FACTOR () |
Private Attributes | |
Index | N |
Index | NMax |
T * | Vals |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inlineinherited |
|
inlinestaticprivateinherited |
|
inlinestaticprivateinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |