Scaffolding  0.1
This program can assemble genome scaffolds using the pairing information in paired-end reads.
Public Member Functions | Public Attributes | List of all members
scaffold::predicates::ContainedPredicate< Element, Container > Struct Template Reference

a predicate that is true iff the given element is (not) contained in a given container More...

#include <predicates.hpp>

Inheritance diagram for scaffold::predicates::ContainedPredicate< Element, Container >:
scaffold::predicates::Predicate< Element >

Public Member Functions

 ContainedPredicate (const Container &_container, const bool _invert=false)
 constructor More...
 
bool operator() (const Element &e) const
 all predicates must implement operator()
 
- Public Member Functions inherited from scaffold::predicates::Predicate< Element >
 Predicate (const bool _invert=false)
 constructor
 

Public Attributes

const Container & container
 container reference
 
- Public Attributes inherited from scaffold::predicates::Predicate< Element >
const bool invert
 indicate whether the predicate should be inverted
 

Detailed Description

template<typename Element, typename Container = unordered_set<Element>>
struct scaffold::predicates::ContainedPredicate< Element, Container >

a predicate that is true iff the given element is (not) contained in a given container

changing the container will change the result of predicate checks

Constructor & Destructor Documentation

template<typename Element , typename Container = unordered_set<Element>>
scaffold::predicates::ContainedPredicate< Element, Container >::ContainedPredicate ( const Container &  _container,
const bool  _invert = false 
)
inline

constructor

If _invert is set, then the predicate is FALSE iff the given element is in the container. No copy of the container is performed. Instead we save a reference to it.


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