tket
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tket::Cycle Class Reference

#include <Cycles.hpp>

Collaboration diagram for tket::Cycle:
Collaboration graph
[legend]

Public Member Functions

 Cycle ()
 
 Cycle (const std::vector< edge_pair_t > &_boundary_edges, const std::vector< CycleCom > &_coms)
 
unsigned size () const
 
void update_boundary (const Edge &source_edge, const Edge &replacement_edge)
 
void merge (Cycle &new_cycle)
 
void update_coms_indices (const std::map< unsigned, unsigned > &new_indices)
 
void add_vertex_pair (const std::pair< Vertex, Vertex > &verts)
 
std::vector< std::pair< Vertex, Vertex > > get_frame () const
 
bool operator== (const Cycle &other) const
 

Public Attributes

std::vector< edge_pair_tboundary_edges_
 
std::vector< CycleComcoms_
 

Detailed Description

Definition at line 35 of file Cycles.hpp.

Constructor & Destructor Documentation

◆ Cycle() [1/2]

tket::Cycle::Cycle ( )
inline

Definition at line 37 of file Cycles.hpp.

◆ Cycle() [2/2]

tket::Cycle::Cycle ( const std::vector< edge_pair_t > &  _boundary_edges,
const std::vector< CycleCom > &  _coms 
)
inline

Definition at line 38 of file Cycles.hpp.

Member Function Documentation

◆ add_vertex_pair()

void tket::Cycle::add_vertex_pair ( const std::pair< Vertex, Vertex > &  verts)

Definition at line 30 of file Cycles.cpp.

◆ get_frame()

std::vector< std::pair< Vertex, Vertex > > tket::Cycle::get_frame ( ) const

Definition at line 34 of file Cycles.cpp.

◆ merge()

void tket::Cycle::merge ( Cycle new_cycle)

Definition at line 244 of file Cycles.cpp.

◆ operator==()

bool tket::Cycle::operator== ( const Cycle other) const
inline

Definition at line 65 of file Cycles.hpp.

◆ size()

unsigned tket::Cycle::size ( ) const

Definition at line 28 of file Cycles.cpp.

◆ update_boundary()

void tket::Cycle::update_boundary ( const Edge source_edge,
const Edge replacement_edge 
)

Definition at line 62 of file Cycles.cpp.

◆ update_coms_indices()

void tket::Cycle::update_coms_indices ( const std::map< unsigned, unsigned > &  new_indices)

Definition at line 229 of file Cycles.cpp.

Member Data Documentation

◆ boundary_edges_

std::vector<edge_pair_t> tket::Cycle::boundary_edges_

Definition at line 69 of file Cycles.hpp.

◆ coms_

std::vector<CycleCom> tket::Cycle::coms_

Definition at line 70 of file Cycles.hpp.


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