CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::Monte::OccCandidateList Class Reference

#include <OccCandidate.hh>

Detailed Description

List of asym / species_index pairs indicating allowed variable occupation dof.

Definition at line 116 of file OccCandidate.hh.

Public Types

typedef std::vector
< OccCandidate >
::const_iterator 
const_iterator
 

Public Member Functions

 OccCandidateList ()
 
 OccCandidateList (const Conversions &convert)
 
Index index (const OccCandidate &cand) const
 Return index into std::vector<OccCandidate>, or _candidate.size() if not allowed. More...
 
Index index (Index asym, Index species_index) const
 Return index into std::vector<OccCandidate>, or _candidate.size() if not allowed. More...
 
const OccCandidateoperator[] (Index candidate_index) const
 
const_iterator begin () const
 
const_iterator end () const
 
Index size () const
 
const std::vector< OccSwap > & canonical_swap () const
 
const std::vector< OccSwap > & grand_canonical_swap () const
 

Private Member Functions

void _make_possible_swaps (const Conversions &convert)
 Construct m_canonical_swaps, m_grand_canonical_swaps. More...
 

Private Attributes

std::vector< std::vector< Index > > m_species_to_cand_index
 m_converter[asym][species_index] -> candidate_index More...
 
std::vector< OccCandidatem_candidate
 
Index m_end
 Number of allowed candidates, what is returned if a candidate is not allowed. More...
 
std::vector< OccSwapm_canonical_swap
 vector of allowed canonical swaps More...
 
std::vector< OccSwapm_grand_canonical_swap
 vector of allowed grand canonical swaps More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

CASM::Monte::OccCandidateList::OccCandidateList ( )
inline

Definition at line 122 of file OccCandidate.hh.

CASM::Monte::OccCandidateList::OccCandidateList ( const Conversions convert)

Definition at line 57 of file OccCandidate.cc.

Member Function Documentation

void CASM::Monte::OccCandidateList::_make_possible_swaps ( const Conversions convert)
private

Construct m_canonical_swaps, m_grand_canonical_swaps.

  • Currently settings is not used, but we could add restrictions

Definition at line 95 of file OccCandidate.cc.

const_iterator CASM::Monte::OccCandidateList::begin ( ) const
inline

Definition at line 140 of file OccCandidate.hh.

const std::vector<OccSwap>& CASM::Monte::OccCandidateList::canonical_swap ( ) const
inline

Definition at line 152 of file OccCandidate.hh.

const_iterator CASM::Monte::OccCandidateList::end ( ) const
inline

Definition at line 144 of file OccCandidate.hh.

const std::vector<OccSwap>& CASM::Monte::OccCandidateList::grand_canonical_swap ( ) const
inline

Definition at line 156 of file OccCandidate.hh.

Index CASM::Monte::OccCandidateList::index ( const OccCandidate cand) const
inline

Return index into std::vector<OccCandidate>, or _candidate.size() if not allowed.

Definition at line 127 of file OccCandidate.hh.

Index CASM::Monte::OccCandidateList::index ( Index  asym,
Index  species_index 
) const
inline

Return index into std::vector<OccCandidate>, or _candidate.size() if not allowed.

Definition at line 132 of file OccCandidate.hh.

const OccCandidate& CASM::Monte::OccCandidateList::operator[] ( Index  candidate_index) const
inline

Definition at line 136 of file OccCandidate.hh.

Index CASM::Monte::OccCandidateList::size ( ) const
inline

Definition at line 148 of file OccCandidate.hh.

Member Data Documentation

std::vector<OccCandidate> CASM::Monte::OccCandidateList::m_candidate
private

Definition at line 168 of file OccCandidate.hh.

std::vector<OccSwap> CASM::Monte::OccCandidateList::m_canonical_swap
private

vector of allowed canonical swaps

Definition at line 174 of file OccCandidate.hh.

Index CASM::Monte::OccCandidateList::m_end
private

Number of allowed candidates, what is returned if a candidate is not allowed.

Definition at line 171 of file OccCandidate.hh.

std::vector<OccSwap> CASM::Monte::OccCandidateList::m_grand_canonical_swap
private

vector of allowed grand canonical swaps

Definition at line 177 of file OccCandidate.hh.

std::vector<std::vector<Index> > CASM::Monte::OccCandidateList::m_species_to_cand_index
private

m_converter[asym][species_index] -> candidate_index

Definition at line 166 of file OccCandidate.hh.


The documentation for this class was generated from the following files: