DNA Calib 1.1
Project brief
Public Member Functions | List of all members
dnac::RawSurjectiveMapping< TFrom, TTo > Struct Template Reference

#include <DNA.h>

Inheritance diagram for dnac::RawSurjectiveMapping< TFrom, TTo >:
Inheritance graph
Collaboration diagram for dnac::RawSurjectiveMapping< TFrom, TTo >:
Collaboration graph

Public Member Functions

template<class Archive >
void serialize (Archive &archive)
 
- Public Member Functions inherited from dnac::SurjectiveMapping< TFrom, TTo >
 SurjectiveMapping (MemoryResource *memRes)
 
Pair get (std::size_t index) const
 
void add (TFrom from_, TTo to_)
 
void set (std::size_t index, TFrom from_, TTo to_)
 
void removeIf (std::function< bool(const TFrom &, const TTo &)> predicate)
 
void updateFrom (const UnorderedMap< TFrom, TFrom > &mapping)
 
void updateTo (const UnorderedMap< TTo, TTo > &mapping)
 
std::size_t size () const
 
void clear ()
 

Additional Inherited Members

- Protected Attributes inherited from dnac::SurjectiveMapping< TFrom, TTo >
Vector< TFrom > from
 
Vector< TTo > to
 

Member Function Documentation

◆ serialize()

template<typename TFrom , typename TTo = TFrom>
template<class Archive >
void dnac::RawSurjectiveMapping< TFrom, TTo >::serialize ( Archive &  archive)
inline
34 {
35 archive.label("from");
36 archive(this->from);
37 archive.label("to");
38 archive(this->to);
39 }
Vector< TFrom > from
Definition: dnacalib/dna/SurjectiveMapping.h:96
Vector< TTo > to
Definition: dnacalib/dna/SurjectiveMapping.h:97

References dnac::SurjectiveMapping< TFrom, TTo >::from, and dnac::SurjectiveMapping< TFrom, TTo >::to.


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