seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
cage::Signature Struct Reference

Ring-size census of a polyhedral cage: size -> number of faces. More...

#include <src/include/internal/cage.hpp>

Public Types

enum class  Kind { Census , HexC , DoubleDiaC }

Public Member Functions

std::string str () const
int faceCount () const
int maxRingSize () const
bool containsSize (int size) const
bool operator== (const Signature &other) const
bool operator!= (const Signature &other) const

Static Public Member Functions

static Signature parse (std::string_view spec)

Public Attributes

std::map< int, int > counts
Kind kind = Kind::Census

Detailed Description

Ring-size census of a polyhedral cage: size -> number of faces.

Parse a comma list (4:6,6:8) or a named table entry (sodalite, alpha, 512, 51262, 51264, 51268, sh, sH, hc, ddc). Counts of a repeated size add. Every size and count must be positive. The names hc and ddc keep the TUM ice finders (five hexagons and seven hexagons); a raw list 4:6,6:2 is the hexagonal prism.

Definition at line 71 of file cage.hpp.

Member Enumeration Documentation

◆ Kind

enum class cage::Signature::Kind
strong
Enumerator
Census 
HexC 
DoubleDiaC 

Definition at line 72 of file cage.hpp.

72{ Census, HexC, DoubleDiaC };
@ HexC
The type for a hexagonal cage.
Definition cage.hpp:60
@ DoubleDiaC
The type for a double-diamond cage.
Definition cage.hpp:60

Member Function Documentation

◆ containsSize()

bool cage::Signature::containsSize ( int size) const

◆ faceCount()

int cage::Signature::faceCount ( ) const

◆ maxRingSize()

int cage::Signature::maxRingSize ( ) const

◆ operator!=()

bool cage::Signature::operator!= ( const Signature & other) const
inline

Definition at line 85 of file cage.hpp.

85{ return !(*this == other); }

◆ operator==()

bool cage::Signature::operator== ( const Signature & other) const
inline

Definition at line 82 of file cage.hpp.

82 {
83 return kind == other.kind && counts == other.counts;
84 }
std::map< int, int > counts
Definition cage.hpp:74

◆ parse()

Signature cage::Signature::parse ( std::string_view spec)
static

◆ str()

std::string cage::Signature::str ( ) const

Member Data Documentation

◆ counts

std::map<int, int> cage::Signature::counts

Definition at line 74 of file cage.hpp.

◆ kind

Kind cage::Signature::kind = Kind::Census

Definition at line 75 of file cage.hpp.


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