WebCFace 2.9.0
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
MutableNumVector Class Reference

shared_ptrで管理されているdoubleのvector More...

#include <webcface/common/num_vector.h>

Inheritance diagram for MutableNumVector:
[legend]
Collaboration diagram for MutableNumVector:
[legend]

Public Member Functions

 MutableNumVector (double v=0)
 
 MutableNumVector (std::vector< double > vec)
 
void assign (double v)
 
NumVectoroperator= (double v)
 
void assign (std::vector< double > vec)
 
 operator const std::vector & () const =delete
 
double & operator[] (std::size_t index)
 
double & at (std::size_t index)
 
double * data ()
 
double * begin ()
 
double * end ()
 
void resize (std::size_t new_size)
 
void push_back (double v)
 
const double & at (std::size_t index) const
 
const double * data () const
 
const double * begin () const
 
const double * end () const
 
const double & operator[] (std::size_t index) const
 
const double * cbegin () const
 
const double * cend () const
 
std::size_t size () const
 
bool operator== (const NumVector &other) const
 
bool operator!= (const NumVector &other) const
 

Protected Attributes

std::shared_ptr< std::vector< double > > data_
 
double first_
 

Detailed Description

shared_ptrで管理されているdoubleのvector

Since
ver2.10

Constructor & Destructor Documentation

◆ MutableNumVector() [1/2]

MutableNumVector ( double  v = 0)
inline

◆ MutableNumVector() [2/2]

MutableNumVector ( std::vector< double >  vec)
inline

Member Function Documentation

◆ assign() [1/2]

void assign ( double  v)

◆ assign() [2/2]

void assign ( std::vector< double >  vec)

◆ at() [1/2]

double & at ( std::size_t  index)

◆ at() [2/2]

const double & at ( std::size_t  index) const

◆ begin() [1/2]

double * begin ( )
inline

◆ begin() [2/2]

const double * begin ( ) const
inline

◆ cbegin()

const double * cbegin ( ) const
inlineinherited

◆ cend()

const double * cend ( ) const
inlineinherited

◆ data() [1/2]

double * data ( )
inline

◆ data() [2/2]

const double * data ( ) const
inline

◆ end() [1/2]

double * end ( )
inline

◆ end() [2/2]

const double * end ( ) const
inline

◆ operator const std::vector &()

operator const std::vector & ( ) const
delete

◆ operator!=()

bool operator!= ( const NumVector other) const
inlineinherited

◆ operator=()

NumVector & operator= ( double  v)
inline

◆ operator==()

bool operator== ( const NumVector other) const
inherited

◆ operator[]() [1/2]

double & operator[] ( std::size_t  index)
inline

◆ operator[]() [2/2]

const double & operator[] ( std::size_t  index) const
inlineinherited

◆ push_back()

void push_back ( double  v)

◆ resize()

void resize ( std::size_t  new_size)

◆ size()

std::size_t size ( ) const
inherited

Member Data Documentation

◆ data_

std::shared_ptr<std::vector<double> > data_
mutableprotectedinherited

◆ first_

double first_
protectedinherited

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