dejavu
Fast probabilistic symmetry detection.
Loading...
Searching...
No Matches
dejavu::ds::markset Class Reference

Set specialized for quick resets. More...

#include <ds.h>

Public Member Functions

 markset ()=default
 
 markset (const markset &other)
 
 markset (markset &&other)
 
marksetoperator= (const markset &other)
 
 markset (int size)
 
void initialize (int size)
 
bool get (int pos)
 
void set (int pos)
 
void unset (int pos)
 
void reset ()
 
void swap (markset &other)
 
void copy (const markset *other)
 
 ~markset ()
 

Detailed Description

Set specialized for quick resets.

Set on a statically specified domain of elements 1, ..., size, with O(1) set and get.

Definition at line 546 of file ds.h.

Constructor & Destructor Documentation

◆ markset() [1/4]

dejavu::ds::markset::markset ( )
default

Initializes a set of size 0

◆ markset() [2/4]

dejavu::ds::markset::markset ( const markset other)
inline

Definition at line 561 of file ds.h.

◆ markset() [3/4]

dejavu::ds::markset::markset ( markset &&  other)
inline

Definition at line 565 of file ds.h.

◆ markset() [4/4]

dejavu::ds::markset::markset ( int  size)
inlineexplicit

Initialize this set with the given size.

Parameters
sizesize to initialize this set to

Definition at line 579 of file ds.h.

◆ ~markset()

dejavu::ds::markset::~markset ( )
inline

Definition at line 660 of file ds.h.

Member Function Documentation

◆ copy()

void dejavu::ds::markset::copy ( const markset other)
inline

Definition at line 651 of file ds.h.

◆ get()

bool dejavu::ds::markset::get ( int  pos)
inline
Parameters
poselement to check
Returns
Is element pos in set?

Definition at line 605 of file ds.h.

◆ initialize()

void dejavu::ds::markset::initialize ( int  size)
inline

Resizes this set to size size, resets the set

Parameters
sizenew size of this set

Definition at line 588 of file ds.h.

◆ operator=()

markset & dejavu::ds::markset::operator= ( const markset other)
inline

Definition at line 569 of file ds.h.

◆ reset()

void dejavu::ds::markset::reset ( )
inline

Resets this set to the empty set

Definition at line 634 of file ds.h.

◆ set()

void dejavu::ds::markset::set ( int  pos)
inline

Adds element pos to set

Parameters
poselement to set

Definition at line 616 of file ds.h.

◆ swap()

void dejavu::ds::markset::swap ( markset other)
inline

Definition at line 639 of file ds.h.

◆ unset()

void dejavu::ds::markset::unset ( int  pos)
inline

Removes element pos from set

Parameters
poselement to remove

Definition at line 626 of file ds.h.


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