SOFA API  8225a6f5
Open source framework for multi-physics simuation
sofa::core::collision::TDetectionOutputVector< CM1, CM2 > Class Template Reference

#include <DetectionOutput.h>

Generic description of a set of contact point between two specific collision models. More...

Inheritance diagram for sofa::core::collision::TDetectionOutputVector< CM1, CM2 >:

Detailed Description

template<class CM1, class CM2>
class sofa::core::collision::TDetectionOutputVector< CM1, CM2 >

Generic description of a set of contact point between two specific collision models.

Public Member Functions

 ~TDetectionOutputVector () override
 
void clear () override
 Clear the content of this vector. More...
 
unsigned int size () const override
 Current size (number of detected contacts) More...
 
- Public Member Functions inherited from sofa::core::collision::DetectionOutputVector
bool empty () const
 Test if the vector is empty. More...
 
virtual void release ()
 Delete this vector from memory once the contact pair is no longer active. More...
 
- Public Member Functions inherited from sofa::type::vector< DetectionOutput >
struct SOFA_ATTRIBUTE_DEPRECATED__REBIND () rebind
 
 vector ()
 Basic constructor. More...
 
 vector (Size n, const DetectionOutput &value)
 Constructor. More...
 
 vector (Size n)
 Constructor. More...
 
 vector (const std::vector< DetectionOutput, Alloc > &x)
 Constructor. More...
 
 vector (const std::initializer_list< DetectionOutput > &t)
 Brace initalizer constructor. More...
 
 vector (std::vector< DetectionOutput, Alloc > &&v)
 Move constructor. More...
 
 vector (typename vector< DetectionOutput >::const_iterator first, typename vector< DetectionOutput >::const_iterator last)
 Constructor. More...
 
vectoroperator= (const std::vector< DetectionOutput, Alloc > &x)
 Copy operator. More...
 
vectoroperator= (std::vector< DetectionOutput, Alloc > &&v)
 Move assignment operator. More...
 
reference operator[] (Size n)
 Read/write random access. More...
 
const_reference operator[] (Size n) const
 Read-only random access. More...
 
std::ostream & write (std::ostream &os) const
 
SOFA_TYPE_API std::ostream & write (std::ostream &os) const
 
SOFA_TYPE_API std::ostream & write (std::ostream &os) const
 Specialization for writing vectors of unsigned char. More...
 
SOFA_TYPE_API std::ostream & write (std::ostream &os) const
 
SOFA_TYPE_API std::ostream & write (std::ostream &os) const
 
std::istream & read (std::istream &in)
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 Specialization for reading vectors of int and unsigned int using "A-B" notation for all integers between A and B. More...
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 
SOFA_TYPE_API std::istream & read (std::istream &in)
 
void fill (const DetectionOutput &value)
 Sets every element to 'value'. More...
 
void fastResize (Size n)
 

Additional Inherited Members

- Protected Member Functions inherited from sofa::core::collision::DetectionOutputVector
virtual ~DetectionOutputVector ()
 

Constructor details

◆ ~TDetectionOutputVector()

template<class CM1 , class CM2 >
sofa::core::collision::TDetectionOutputVector< CM1, CM2 >::~TDetectionOutputVector ( )
inlineoverride

Function details

◆ clear()

template<class CM1 , class CM2 >
void sofa::core::collision::TDetectionOutputVector< CM1, CM2 >::clear ( )
inlineoverridevirtual

Clear the content of this vector.

Implements sofa::core::collision::DetectionOutputVector.

◆ size()

template<class CM1 , class CM2 >
unsigned int sofa::core::collision::TDetectionOutputVector< CM1, CM2 >::size ( ) const
inlineoverridevirtual

Current size (number of detected contacts)

Implements sofa::core::collision::DetectionOutputVector.