Logo
中文版
详情联系: neusar-support@reachauto.com
ara::core::RangeVector< T, MAX, MIN, Allocator > 模板类 参考

RangeVector type 更多...

#include <vector.h>

继承自 vector< T, std::allocator< T > > .

ara::core::RangeVector< T, MAX, MIN, Allocator > 的协作图:
Collaboration graph

Public 类型

using Base = std::vector< T, Allocator >
 Alias for the type of typename std::vector<T, Allocator>. @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 
using value_type = typename Base::value_type
 Alias for the type of typename Base::value_type. @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 
using iterator = typename Base::iterator
 Alias for the type of typename Base::iterator. @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 
using const_iterator = typename Base::const_iterator
 Alias for the type of typename Base::const_iterator. @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 

Public 成员函数

 RangeVector ()
 Constructor from internal_type const& other 更多...
 
 RangeVector (const std::initializer_list< T > &v)
 Constructor from std::initializer_list<T> 更多...
 
int32_t GetMaxLen ()
 Get RangeVector Max Length function 更多...
 
int32_t GetMinLen ()
 Get RangeVector minimum Length function 更多...
 
size_t size () const
 Get RangeVector size function 更多...
 
void resize (size_t n)
 resize the RangeVector 更多...
 
T * data ()
 Return a pointer to the first element of RangeVector 更多...
 
const T * data () const
 Return a const_pointer to the first element of RangeVector 更多...
 
void push_back (const T &v=T())
 RangeVector push back 更多...
 
iterator begin (void)
 RangeVector begin 更多...
 
const_iterator begin (void) const
 RangeVector begin 更多...
 
iterator end (void)
 RangeVector end 更多...
 
const_iterator end (void) const
 RangeVector end 更多...
 

Private 属性

int32_t maxLen = 0
 max length @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 
int32_t minLen = 0
 minimum Length @uptrace{SWS_CORE_CUSTOM_00016} 更多...
 

详细描述

template<typename T, int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
class ara::core::RangeVector< T, MAX, MIN, Allocator >

RangeVector type

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
class
符号
ara::core::RangeVector
范围
namespace ara::core
基类
N/A
分类
ara
头文件
注解
N/A
模板参数
typenameT
intMAX
intMIN
typenameAllocator = std::allocator<T> @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

成员类型定义说明

◆ Base

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
using ara::core::RangeVector< T, MAX, MIN, Allocator >::Base = std::vector<T, Allocator>

Alias for the type of typename std::vector<T, Allocator>. @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
type alias
符号
ara::core::internal::RangeVector::Base
范围
class ara::core::RangeVector
派生来源
N/A
分类
ara
头文件
注解
N/A

在文件 第 行定义.

◆ const_iterator

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
using ara::core::RangeVector< T, MAX, MIN, Allocator >::const_iterator = typename Base::const_iterator

Alias for the type of typename Base::const_iterator. @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
type alias
符号
ara::core::internal::RangeVector::const_iterator
范围
class ara::core::RangeVector
派生来源
N/A
分类
ara
头文件
注解
N/A

在文件 第 行定义.

◆ iterator

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
using ara::core::RangeVector< T, MAX, MIN, Allocator >::iterator = typename Base::iterator

Alias for the type of typename Base::iterator. @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
type alias
符号
ara::core::internal::RangeVector::iterator
范围
class ara::core::RangeVector
派生来源
N/A
分类
ara
头文件
注解
N/A

在文件 第 行定义.

◆ value_type

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
using ara::core::RangeVector< T, MAX, MIN, Allocator >::value_type = typename Base::value_type

Alias for the type of typename Base::value_type. @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
type alias
符号
ara::core::internal::RangeVector::value_type
范围
class ara::core::RangeVector
派生来源
N/A
分类
ara
头文件
注解
N/A

在文件 第 行定义.

构造及析构函数说明

◆ RangeVector() [1/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
ara::core::RangeVector< T, MAX, MIN, Allocator >::RangeVector ( )
inline

Constructor from internal_type const& other

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ RangeVector() [2/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
ara::core::RangeVector< T, MAX, MIN, Allocator >::RangeVector ( const std::initializer_list< T > &  v)
inline

Constructor from std::initializer_list<T>

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

成员函数说明

◆ begin() [1/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
iterator ara::core::RangeVector< T, MAX, MIN, Allocator >::begin ( void  )
inline

RangeVector begin

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
iterator
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ begin() [2/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
const_iterator ara::core::RangeVector< T, MAX, MIN, Allocator >::begin ( void  ) const
inline

RangeVector begin

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
const_iterator
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ data() [1/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
T* ara::core::RangeVector< T, MAX, MIN, Allocator >::data ( )
inline

Return a pointer to the first element of RangeVector

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

引用了 .

函数调用图:

◆ data() [2/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
const T* ara::core::RangeVector< T, MAX, MIN, Allocator >::data ( ) const
inline

Return a const_pointer to the first element of RangeVector

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

引用了 .

函数调用图:

◆ end() [1/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
iterator ara::core::RangeVector< T, MAX, MIN, Allocator >::end ( void  )
inline

RangeVector end

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
iterator
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ end() [2/2]

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
const_iterator ara::core::RangeVector< T, MAX, MIN, Allocator >::end ( void  ) const
inline

RangeVector end

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
const_iterator
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ GetMaxLen()

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
int32_t ara::core::RangeVector< T, MAX, MIN, Allocator >::GetMaxLen ( )
inline

Get RangeVector Max Length function

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

引用了 .

◆ GetMinLen()

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
int32_t ara::core::RangeVector< T, MAX, MIN, Allocator >::GetMinLen ( )
inline

Get RangeVector minimum Length function

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

引用了 .

◆ push_back()

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
void ara::core::RangeVector< T, MAX, MIN, Allocator >::push_back ( const T &  v = T())
inline

RangeVector push back

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]constT& v
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ resize()

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
void ara::core::RangeVector< T, MAX, MIN, Allocator >::resize ( size_t  n)
inline

resize the RangeVector

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]size_tn:
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

◆ size()

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
size_t ara::core::RangeVector< T, MAX, MIN, Allocator >::size ( ) const
inline

Get RangeVector size function

模板参数
intMAX
intMIN
typenameAllocator = std::allocator<T>
参数
[in]N/A
[out]N/A
[in,out]N/A
返回
N/A
注解
N/A
错误码偏差项
N/A
异常
N/A
Swsid
N/A
符合标准
no
非标原因
Not memtioned in AutoSar
种类
function
可见
public
线程安全
N/A
Fireandforget
N/A
错误
N/A
头文件
异常安全
noexcept
分类
ara
范围
class ara::core::RangeVector @uptrace{SWS_CORE_CUSTOM_00016}

在文件 第 行定义.

引用了 .

函数调用图:

类成员变量说明

◆ maxLen

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
int32_t ara::core::RangeVector< T, MAX, MIN, Allocator >::maxLen = 0
private

max length @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
yes
非标原因
Not mentioned in AutoSar
种类
variable
可见
private
符号
ara::core::RangeVector::maxLen
范围
class ara::core::RangeVector
类型
int
分类
ara
头文件
注解
N/A

在文件 第 行定义.

被这些函数引用 .

◆ minLen

template<typename T , int32_t MAX = 0, int32_t MIN = 0, typename Allocator = std::allocator<T >>
int32_t ara::core::RangeVector< T, MAX, MIN, Allocator >::minLen = 0
private

minimum Length @uptrace{SWS_CORE_CUSTOM_00016}

Swsid
N/A
符合标准
no
非标原因
Not mentioned in AutoSar
种类
variable
可见
private
符号
ara::core::RangeVector::minLen
范围
class ara::core::RangeVector
类型
int
分类
ara
头文件
注解
N/A

在文件 第 行定义.

被这些函数引用 .