CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <PolyTrie.hh>
Definition at line 41 of file PolyTrie.hh.
Public Member Functions | |
PTNode (PTNode< T > *_up, const T &_val=0) | |
const T & | val () const |
virtual | ~PTNode () |
virtual void | remove () |
Protected Types | |
typedef Array< PTNode< 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 PTNode< T > * | value_type |
typedef Index | size_type |
typedef PTNode< T > * * | iterator |
typedef const PTNode< T > * * | const_iterator |
Protected Member Functions | |
PTNode< T > * | valid_node_at (Index i) |
PTNode< T > * | valid_leaf_at (PolyTrie< T > &home_trie, const Array< Index > &ind) |
Index | size () const |
void | swap (Array< PTNode< T > * > &RHS) |
PTNode< T > * & | at (Index ind) |
const PTNode< T > * & | at (Index ind) const |
const PTNode< T > * & | operator[] (Index ind) const |
PTNode< T > * & | operator[] (Index ind) |
PTNode< T > * & | back () |
const PTNode< T > * & | back () const |
PTNode< T > * const * | begin () const |
PTNode< T > * * | begin () |
PTNode< T > * const * | cbegin () const |
PTNode< T > * const * | end () const |
PTNode< T > * * | end () |
PTNode< T > * const * | cend () const |
void | push_back (const PTNode< T > * &toPush) |
void | pop_back () |
void | remove (Index ind) |
void | clear () |
void | resize (Index new_N) |
void | resize (Index new_N, const PTNode< T > * &fill_val) |
void | reserve (Index new_max) |
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 PTNode< T > * & | max () const |
const PTNode< T > * & | min () const |
ReturnArray< PTNode< T > * > | sub_array (Index ind_begin, Index ind_end) const |
PTNode< 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< PTNode< T > * > &RHS) const |
bool | operator!= (const Array< PTNode< T > * > &RHS) const |
bool | operator< (const Array< PTNode< T > * > &RHS) const |
bool | operator> (const Array< PTNode< T > * > &RHS) const |
bool | operator<= (const Array< PTNode< T > * > &RHS) const |
bool | operator>= (const Array< PTNode< T > * > &RHS) const |
bool | all_in (const Array &superset) const |
Index | coincidence (const Array &superset) const |
Index | incidences (const PTNode< T > * &test_elem) const |
Index | find (const PTNode< T > * &test_elem) const |
Index | reverse_find (const PTNode< T > * &test_elem) const |
Same as find, but starts from the last element of the Array. More... | |
Index | almost_find (const PTNode< T > * &test_elem, double tol_val=TOL) const |
Index | almost_reverse_find (const PTNode< 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 PTNode< T > * &test_elem) const |
bool | almost_contains (const PTNode< T > * &test_elem, double tol_val=TOL) const |
void | print_column (std::ostream &stream, const std::string &indent="") const |
Static Protected Member Functions | |
static double | PT_TOL () |
static ReturnArray< PTNode< T > * > | sequence (const PTNode< T > * &initial, const PTNode< T > * &final) |
static ReturnArray< PTNode< T > * > | sequence (const PTNode< T > * &initial, const PTNode< T > * &increment, const PTNode< T > * &final) |
Protected Attributes | |
PTNode< T > * | up_node |
T | m_val |
Static Private Member Functions | |
static Index | ARRAY_MIN_EXTRA_SPACE () |
static double | ARRAY_EXTENSION_FACTOR () |
Private Attributes | |
Index | N |
Index | NMax |
PTNode< T > * * | Vals |
Friends | |
class | PolyTrie< T > |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 56 of file PolyTrie.hh.
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlinestaticprivateinherited |
|
inlinestaticprivateinherited |
|
inherited |
|
inherited |
Given N distinct objects labeled from 0 to N-1, a permutation 'P_permute' that physically permutes the objects (with labels) in terms of their labels, and a permutation 'L_permute' that permutes their labels only, rewrite 'P_permute' in terms of the relabeling induced by 'L_permute' Rearrange 'this' permutation to form an equivalent permutation for any list that has already been permuted by trans_perm. Does not (nearly certain of this) depend on permutation convention
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
Checks whether any values are equal to their index – only valid for Array<Index>
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlinestaticprotected |
Definition at line 43 of file PolyTrie.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Returns an array with the sequence (initial, ++initial, ..., final), inclusive requires that operator<() and operator++() are defined on type T
Returns an array with the sequence (initial, ++initial, ..., final), inclusive
|
staticinherited |
Returns an array with the sequence (initial, initial+increment, ..., final?), inclusive if final is in the sequence requires that operator<() and operator+=() are defined on type T
Returns an array with the sequence (initial, initial+increment, ..., final?), inclusive if final is in the sequence
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inline |
Definition at line 58 of file PolyTrie.hh.
|
friend |
Definition at line 43 of file PolyTrie.hh.
|
protected |
Definition at line 46 of file PolyTrie.hh.
|
privateinherited |
|
privateinherited |
|
protected |
Definition at line 45 of file PolyTrie.hh.
|
privateinherited |