Wildmeshing Toolkit
wmtk::multimesh::MappableContainer Class Referenceabstract

#include <MappableContainer.hpp>

Inheritance diagram for wmtk::multimesh::MappableContainer:
[legend]
Collaboration diagram for wmtk::multimesh::MappableContainer:
[legend]

Public Member Functions

 MappableContainer (const Mesh &m)
 
 MappableContainer (const MappableContainer &)=default
 
 MappableContainer (MappableContainer &&)=default
 
MappableContaineroperator= (const MappableContainer &)
 
MappableContaineroperator= (MappableContainer &&)
 
 ~MappableContainer ()=default
 
virtual std::vector< std::shared_ptr< Mappable > > mappables ()=0
 
void add (std::shared_ptr< Mappable > mappable)
 
const std::shared_ptr< Mappable > & get (int64_t index) const
 
int64_t size () const
 
bool empty () const
 
std::map< Mesh const *, std::vector< std::shared_ptr< Mappable > > > get_map_mesh_to_invariants ()
 
- Public Member Functions inherited from wmtk::multimesh::Mappable
virtual const Meshmesh () const =0
 

Private Attributes

std::vector< std::shared_ptr< Mappable > > m_mappables
 

Detailed Description

Definition at line 5 of file MappableContainer.hpp.

Constructor & Destructor Documentation

◆ MappableContainer() [1/3]

wmtk::MappableContainer::MappableContainer ( const Mesh m)

Definition at line 8 of file MappableContainer.cpp.

◆ MappableContainer() [2/3]

wmtk::multimesh::MappableContainer::MappableContainer ( const MappableContainer )
default

◆ MappableContainer() [3/3]

wmtk::multimesh::MappableContainer::MappableContainer ( MappableContainer &&  )
default

◆ ~MappableContainer()

wmtk::multimesh::MappableContainer::~MappableContainer ( )
default

Member Function Documentation

◆ add()

void wmtk::MappableContainer::add ( std::shared_ptr< Mappable mappable)

Definition at line 24 of file MappableContainer.cpp.

References m_mappables.

◆ empty()

bool wmtk::MappableContainer::empty ( ) const

Definition at line 108 of file MappableContainer.cpp.

References m_mappables.

◆ get()

const std::shared_ptr< Mappable > & wmtk::MappableContainer::get ( int64_t  index) const

Definition at line 100 of file MappableContainer.cpp.

References m_mappables.

◆ get_map_mesh_to_invariants()

std::map< Mesh const *, std::vector< std::shared_ptr< Mappable > > > wmtk::MappableContainer::get_map_mesh_to_invariants ( )

Definition at line 118 of file MappableContainer.cpp.

References get_map_mesh_to_invariants(), and m_mappables.

Referenced by get_map_mesh_to_invariants().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mappables()

virtual std::vector<std::shared_ptr<Mappable> > wmtk::multimesh::MappableContainer::mappables ( )
pure virtual

◆ operator=() [1/2]

MappableContainer& wmtk::multimesh::MappableContainer::operator= ( const MappableContainer )

◆ operator=() [2/2]

MappableContainer& wmtk::multimesh::MappableContainer::operator= ( MappableContainer &&  )

◆ size()

int64_t wmtk::MappableContainer::size ( ) const

Definition at line 104 of file MappableContainer.cpp.

References m_mappables.

Member Data Documentation

◆ m_mappables

std::vector<std::shared_ptr<Mappable> > wmtk::multimesh::MappableContainer::m_mappables
private

Definition at line 27 of file MappableContainer.hpp.

Referenced by add(), empty(), get(), get_map_mesh_to_invariants(), and size().


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