votca 2024.2-dev
Loading...
Searching...
No Matches
votca::csg::TripleList< element_type, triple_type > Class Template Reference

#include <triplelist.h>

Collaboration diagram for votca::csg::TripleList< element_type, triple_type >:

Public Types

using iterator = typename std::vector<triple_type *>::iterator
 
using element_t = element_type
 
using triple_t = triple_type
 

Public Member Functions

 TripleList ()=default
 
virtual ~TripleList ()
 
void AddTriple (triple_type *t)
 
iterator begin ()
 
iterator end ()
 
std::vector< triple_type * >::size_type size ()
 
triple_type * front ()
 
triple_type * back ()
 
bool empty ()
 
void Cleanup ()
 
triple_type * FindTriple (element_type e1, element_type e2, element_type e3)
 

Private Attributes

std::vector< triple_type * > triples_
 
std::map< element_type, std::map< element_type, std::map< element_type, triple_type * > > > triple_map_
 

Detailed Description

template<typename element_type, typename triple_type>
class votca::csg::TripleList< element_type, triple_type >

Definition at line 29 of file triplelist.h.

Member Typedef Documentation

◆ element_t

template<typename element_type , typename triple_type >
using votca::csg::TripleList< element_type, triple_type >::element_t = element_type

Definition at line 51 of file triplelist.h.

◆ iterator

template<typename element_type , typename triple_type >
using votca::csg::TripleList< element_type, triple_type >::iterator = typename std::vector<triple_type *>::iterator

Definition at line 36 of file triplelist.h.

◆ triple_t

template<typename element_type , typename triple_type >
using votca::csg::TripleList< element_type, triple_type >::triple_t = triple_type

Definition at line 52 of file triplelist.h.

Constructor & Destructor Documentation

◆ TripleList()

template<typename element_type , typename triple_type >
votca::csg::TripleList< element_type, triple_type >::TripleList ( )
default

◆ ~TripleList()

template<typename element_type , typename triple_type >
virtual votca::csg::TripleList< element_type, triple_type >::~TripleList ( )
inlinevirtual

Definition at line 32 of file triplelist.h.

Member Function Documentation

◆ AddTriple()

template<typename element_type , typename triple_type >
void votca::csg::TripleList< element_type, triple_type >::AddTriple ( triple_type * t)
inline
Todo
check if unique

Definition at line 63 of file triplelist.h.

◆ back()

template<typename element_type , typename triple_type >
triple_type * votca::csg::TripleList< element_type, triple_type >::back ( )
inline

Definition at line 44 of file triplelist.h.

◆ begin()

template<typename element_type , typename triple_type >
iterator votca::csg::TripleList< element_type, triple_type >::begin ( )
inline

Definition at line 38 of file triplelist.h.

◆ Cleanup()

template<typename element_type , typename triple_type >
void votca::csg::TripleList< element_type, triple_type >::Cleanup ( )
inline

Definition at line 74 of file triplelist.h.

◆ empty()

template<typename element_type , typename triple_type >
bool votca::csg::TripleList< element_type, triple_type >::empty ( )
inline

Definition at line 45 of file triplelist.h.

◆ end()

template<typename element_type , typename triple_type >
iterator votca::csg::TripleList< element_type, triple_type >::end ( )
inline

Definition at line 39 of file triplelist.h.

◆ FindTriple()

template<typename element_type , typename triple_type >
triple_type * votca::csg::TripleList< element_type, triple_type >::FindTriple ( element_type e1,
element_type e2,
element_type e3 )
inline

Definition at line 83 of file triplelist.h.

◆ front()

template<typename element_type , typename triple_type >
triple_type * votca::csg::TripleList< element_type, triple_type >::front ( )
inline

Definition at line 43 of file triplelist.h.

◆ size()

template<typename element_type , typename triple_type >
std::vector< triple_type * >::size_type votca::csg::TripleList< element_type, triple_type >::size ( )
inline

Definition at line 40 of file triplelist.h.

Member Data Documentation

◆ triple_map_

template<typename element_type , typename triple_type >
std::map<element_type, std::map<element_type, std::map<element_type, triple_type *> > > votca::csg::TripleList< element_type, triple_type >::triple_map_
private

Definition at line 59 of file triplelist.h.

◆ triples_

template<typename element_type , typename triple_type >
std::vector<triple_type *> votca::csg::TripleList< element_type, triple_type >::triples_
private

Definition at line 55 of file triplelist.h.


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