Xped
Loading...
Searching...
No Matches
Xped::Pattern Struct Reference

#include <Pattern.hpp>

Collaboration diagram for Xped::Pattern:

Public Member Functions

 Pattern (const std::vector< std::vector< std::size_t > > &pat={{0ul}}, bool TRANSPOSE=false)
 
void init ()
 
Pattern row (int x) const
 
Pattern col (int y) const
 
std::size_t uniqueSize () const
 
std::size_t size () const
 
std::size_t index (const int x, const int y) const
 
std::size_t uniqueIndex (const int x, const int y) const
 
std::size_t uniqueIndex (const std::size_t index) const
 
std::pair< int, int > coords (const std::size_t index) const
 
bool isUnique (const int x, const int y) const
 
tabulate::Table print () const
 
template<typename Ar >
void serialize (Ar &ar) const
 
template<typename Ar >
void serialize (Ar &ar)
 
bool operator== (const Pattern &other) const
 

Public Attributes

std::map< std::size_t, std::size_t > label2index
 
std::map< std::size_t, std::size_t > index2unique
 
std::vector< std::vector< std::size_t > > data
 
std::map< std::size_t, std::vector< std::size_t > > sites_of_label
 
std::size_t Lx = 1
 
std::size_t Ly = 1
 

Friends

struct UnitCell
 

Constructor & Destructor Documentation

◆ Pattern()

Xped::Pattern::Pattern ( const std::vector< std::vector< std::size_t > > &  pat = {{0ul}},
bool  TRANSPOSE = false 
)
inlineexplicit

Member Function Documentation

◆ col()

Pattern Xped::Pattern::col ( int  y) const

◆ coords()

std::pair< int, int > Xped::Pattern::coords ( const std::size_t  index) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ index()

std::size_t Xped::Pattern::index ( const int  x,
const int  y 
) const
Here is the caller graph for this function:

◆ init()

void Xped::Pattern::init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isUnique()

bool Xped::Pattern::isUnique ( const int  x,
const int  y 
) const
Here is the call graph for this function:

◆ operator==()

bool Xped::Pattern::operator== ( const Pattern other) const
inline

◆ print()

tabulate::Table Xped::Pattern::print ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ row()

Pattern Xped::Pattern::row ( int  x) const
Here is the caller graph for this function:

◆ serialize() [1/2]

template<typename Ar >
void Xped::Pattern::serialize ( Ar &  ar)
inline
Here is the call graph for this function:

◆ serialize() [2/2]

template<typename Ar >
void Xped::Pattern::serialize ( Ar &  ar) const
inline

◆ size()

std::size_t Xped::Pattern::size ( ) const
inline
Here is the caller graph for this function:

◆ uniqueIndex() [1/2]

std::size_t Xped::Pattern::uniqueIndex ( const int  x,
const int  y 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ uniqueIndex() [2/2]

std::size_t Xped::Pattern::uniqueIndex ( const std::size_t  index) const
Here is the call graph for this function:

◆ uniqueSize()

std::size_t Xped::Pattern::uniqueSize ( ) const
inline
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ UnitCell

friend struct UnitCell
friend

Member Data Documentation

◆ data

std::vector<std::vector<std::size_t> > Xped::Pattern::data

◆ index2unique

std::map<std::size_t, std::size_t> Xped::Pattern::index2unique

◆ label2index

std::map<std::size_t, std::size_t> Xped::Pattern::label2index

◆ Lx

std::size_t Xped::Pattern::Lx = 1

◆ Ly

std::size_t Xped::Pattern::Ly = 1

◆ sites_of_label

std::map<std::size_t, std::vector<std::size_t> > Xped::Pattern::sites_of_label

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