SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::core::topology::EdgesAdded Class Reference

#include <TopologyChange.h>

Inheritance diagram for sofa::core::topology::EdgesAdded:

Detailed Description

indicates that some edges were added

Public Attributes

size_t nEdges
 
sofa::type::vector< Topology::EdgeedgeArray
 
sofa::type::vector< Topology::EdgeIDedgeIndexArray
 
sofa::type::vector< sofa::type::vector< Topology::EdgeID > > ancestorsList
 
sofa::type::vector< sofa::type::vector< SReal > > coefs
 
sofa::type::vector< EdgeAncestorElemancestorElems
 

Public Member Functions

 EdgesAdded (const size_t nE)
 
 EdgesAdded (const size_t nE, const sofa::type::vector< Topology::Edge > &edgesList, const sofa::type::vector< Topology::EdgeID > &edgesIndex)
 
 EdgesAdded (const size_t nE, const sofa::type::vector< Topology::Edge > &edgesList, const sofa::type::vector< Topology::EdgeID > &edgesIndex, const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &ancestors)
 
 EdgesAdded (const size_t nE, const sofa::type::vector< Topology::Edge > &edgesList, const sofa::type::vector< Topology::EdgeID > &edgesIndex, const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 EdgesAdded (const size_t nE, const sofa::type::vector< Topology::Edge > &edgesList, const sofa::type::vector< Topology::EdgeID > &edgesIndex, const sofa::type::vector< EdgeAncestorElem > &srcElems, const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &ancestors, const sofa::type::vector< sofa::type::vector< SReal > > &baryCoefs)
 
 ~EdgesAdded () override
 
size_t getNbAddedEdges () const
 
const sofa::type::vector< Topology::Edge > & getArray () const
 
size_t getNbAddedElements () const
 
const sofa::type::vector< Topology::EdgeID > & getIndexArray () const
 
const sofa::type::vector< Topology::Edge > & getElementArray () const
 
- Public Member Functions inherited from sofa::core::topology::TopologyChange
virtual ~TopologyChange ()
 
TopologyChangeType getChangeType () const
 Returns the code of this TopologyChange. More...
 
virtual bool write (std::ostream &out) const
 
virtual bool read (std::istream &in)
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::topology::TopologyChange
TopologyChangeType m_changeType
 A code that tells the nature of the Topology modification event (could be an enum). More...
 
- Protected Member Functions inherited from sofa::core::topology::TopologyChange
 TopologyChange (TopologyChangeType changeType=BASE)
 

Attribute details

◆ ancestorElems

sofa::type::vector< EdgeAncestorElem > sofa::core::topology::EdgesAdded::ancestorElems

◆ ancestorsList

sofa::type::vector< sofa::type::vector< Topology::EdgeID > > sofa::core::topology::EdgesAdded::ancestorsList

◆ coefs

sofa::type::vector< sofa::type::vector< SReal > > sofa::core::topology::EdgesAdded::coefs

◆ edgeArray

sofa::type::vector< Topology::Edge > sofa::core::topology::EdgesAdded::edgeArray

◆ edgeIndexArray

sofa::type::vector< Topology::EdgeID > sofa::core::topology::EdgesAdded::edgeIndexArray

◆ nEdges

size_t sofa::core::topology::EdgesAdded::nEdges

Constructor details

◆ EdgesAdded() [1/5]

sofa::core::topology::EdgesAdded::EdgesAdded ( const size_t  nE)
inline

◆ EdgesAdded() [2/5]

sofa::core::topology::EdgesAdded::EdgesAdded ( const size_t  nE,
const sofa::type::vector< Topology::Edge > &  edgesList,
const sofa::type::vector< Topology::EdgeID > &  edgesIndex 
)
inline

◆ EdgesAdded() [3/5]

sofa::core::topology::EdgesAdded::EdgesAdded ( const size_t  nE,
const sofa::type::vector< Topology::Edge > &  edgesList,
const sofa::type::vector< Topology::EdgeID > &  edgesIndex,
const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &  ancestors 
)
inline

◆ EdgesAdded() [4/5]

sofa::core::topology::EdgesAdded::EdgesAdded ( const size_t  nE,
const sofa::type::vector< Topology::Edge > &  edgesList,
const sofa::type::vector< Topology::EdgeID > &  edgesIndex,
const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ EdgesAdded() [5/5]

sofa::core::topology::EdgesAdded::EdgesAdded ( const size_t  nE,
const sofa::type::vector< Topology::Edge > &  edgesList,
const sofa::type::vector< Topology::EdgeID > &  edgesIndex,
const sofa::type::vector< EdgeAncestorElem > &  srcElems,
const sofa::type::vector< sofa::type::vector< Topology::EdgeID > > &  ancestors,
const sofa::type::vector< sofa::type::vector< SReal > > &  baryCoefs 
)
inline

◆ ~EdgesAdded()

sofa::core::topology::EdgesAdded::~EdgesAdded ( )
override

Function details

◆ getArray()

const sofa::type::vector< Topology::Edge >& sofa::core::topology::EdgesAdded::getArray ( ) const
inline

◆ getElementArray()

const sofa::type::vector< Topology::Edge >& sofa::core::topology::EdgesAdded::getElementArray ( ) const
inline

◆ getIndexArray()

const sofa::type::vector< Topology::EdgeID >& sofa::core::topology::EdgesAdded::getIndexArray ( ) const
inline

◆ getNbAddedEdges()

size_t sofa::core::topology::EdgesAdded::getNbAddedEdges ( ) const
inline

◆ getNbAddedElements()

size_t sofa::core::topology::EdgesAdded::getNbAddedElements ( ) const
inline