Apollo 11.0
自动驾驶开放平台
apollo::perception::algorithm::Voxel< T > 模板类 参考

#include <i_struct_s.h>

apollo::perception::algorithm::Voxel< T > 的协作图:

Public 成员函数

 Voxel ()
 
 ~Voxel ()
 
 Voxel (const Voxel< T > &voxel)
 
Voxel & operator= (const Voxel< T > &voxel)
 
void Init (const T *v, T dim_x, T dim_y, T dim_z, int ix, int iy, int iz)
 
void Init (T v_x, T v_y, T v_z, T dim_x, T dim_y, T dim_z, int ix, int iy, int iz)
 
void Reset ()
 
void Reserve (unsigned int size)
 
void PushBack (int id)
 
unsigned int Capacity () const
 
unsigned int NrPoints () const
 
bool Empty () const
 

Public 属性

T v_ [3]
 
T dim_x_
 
T dim_y_
 
T dim_z_
 
int ix_
 
int iy_
 
int iz_
 
std::vector< int > indices_
 

详细描述

template<typename T>
class apollo::perception::algorithm::Voxel< T >

在文件 i_struct_s.h 第 212 行定义.

构造及析构函数说明

◆ Voxel() [1/2]

template<typename T >
apollo::perception::algorithm::Voxel< T >::Voxel ( )
inline

在文件 i_struct_s.h 第 214 行定义.

214{}

◆ ~Voxel()

template<typename T >
apollo::perception::algorithm::Voxel< T >::~Voxel ( )
inline

在文件 i_struct_s.h 第 215 行定义.

215{}

◆ Voxel() [2/2]

template<typename T >
apollo::perception::algorithm::Voxel< T >::Voxel ( const Voxel< T > &  voxel)
inline

在文件 i_struct_s.h 第 216 行定义.

216 {
217 dim_x_ = voxel.dim_x_;
218 dim_y_ = voxel.dim_y_;
219 dim_z_ = voxel.dim_z_;
220 ix_ = voxel.ix_;
221 iy_ = voxel.iy_;
222 iz_ = voxel.iz_;
223 ICopy3(voxel.v_, v_);
224 indices_.assign(voxel.indices_.begin(), voxel.indices_.end());
225 }
void ICopy3(const T src[3], T dst[3])
Definition i_blas.h:40

成员函数说明

◆ Capacity()

template<typename T >
unsigned int apollo::perception::algorithm::Voxel< T >::Capacity ( ) const
inline

在文件 i_struct_s.h 第 277 行定义.

277{ return (unsigned int)indices_.capacity(); }

◆ Empty()

template<typename T >
bool apollo::perception::algorithm::Voxel< T >::Empty ( ) const
inline

在文件 i_struct_s.h 第 281 行定义.

281{ return indices_.empty(); }

◆ Init() [1/2]

template<typename T >
void apollo::perception::algorithm::Voxel< T >::Init ( const T *  v,
T  dim_x,
T  dim_y,
T  dim_z,
int  ix,
int  iy,
int  iz 
)
inline

在文件 i_struct_s.h 第 241 行定义.

241 {
242 ICopy3(v, v_);
243 dim_x_ = dim_x;
244 dim_y_ = dim_y;
245 dim_z_ = dim_z;
246 ix_ = ix;
247 iy_ = iy;
248 iz_ = iz;
249 indices_.clear();
250 }

◆ Init() [2/2]

template<typename T >
void apollo::perception::algorithm::Voxel< T >::Init ( T  v_x,
T  v_y,
T  v_z,
T  dim_x,
T  dim_y,
T  dim_z,
int  ix,
int  iy,
int  iz 
)
inline

在文件 i_struct_s.h 第 252 行定义.

253 {
254 v_[0] = v_x;
255 v_[1] = v_y;
256 v_[2] = v_z;
257 dim_x_ = dim_x;
258 dim_y_ = dim_y;
259 dim_z_ = dim_z;
260 ix_ = ix;
261 iy_ = iy;
262 iz_ = iz;
263 indices_.clear();
264 }

◆ NrPoints()

template<typename T >
unsigned int apollo::perception::algorithm::Voxel< T >::NrPoints ( ) const
inline

在文件 i_struct_s.h 第 279 行定义.

279{ return (unsigned int)indices_.size(); }

◆ operator=()

template<typename T >
Voxel & apollo::perception::algorithm::Voxel< T >::operator= ( const Voxel< T > &  voxel)
inline

在文件 i_struct_s.h 第 227 行定义.

227 {
228 if (this != &voxel) {
229 this->dim_x_ = voxel.dim_x_;
230 this->dim_y_ = voxel.dim_y_;
231 this->dim_z_ = voxel.dim_z_;
232 this->ix_ = voxel.ix_;
233 this->iy_ = voxel.iy_;
234 this->iz_ = voxel.iz_;
235 ICopy3(voxel.v_, this->v_);
236 this->indices_.assign(voxel.indices_.begin(), voxel.indices_.end());
237 }
238 return (*this);
239 }

◆ PushBack()

template<typename T >
void apollo::perception::algorithm::Voxel< T >::PushBack ( int  id)
inline

在文件 i_struct_s.h 第 275 行定义.

275{ indices_.push_back(id); }

◆ Reserve()

template<typename T >
void apollo::perception::algorithm::Voxel< T >::Reserve ( unsigned int  size)
inline

在文件 i_struct_s.h 第 273 行定义.

273{ indices_.reserve(size); }

◆ Reset()

template<typename T >
void apollo::perception::algorithm::Voxel< T >::Reset ( )
inline

在文件 i_struct_s.h 第 266 行定义.

266 {
267 IZero3(v_);
268 dim_x_ = dim_y_ = dim_z_ = 0;
269 ix_ = iy_ = iz_ = 0;
270 indices_.clear();
271 }

类成员变量说明

◆ dim_x_

template<typename T >
T apollo::perception::algorithm::Voxel< T >::dim_x_

在文件 i_struct_s.h 第 283 行定义.

◆ dim_y_

template<typename T >
T apollo::perception::algorithm::Voxel< T >::dim_y_

在文件 i_struct_s.h 第 283 行定义.

◆ dim_z_

template<typename T >
T apollo::perception::algorithm::Voxel< T >::dim_z_

在文件 i_struct_s.h 第 283 行定义.

◆ indices_

template<typename T >
std::vector<int> apollo::perception::algorithm::Voxel< T >::indices_

在文件 i_struct_s.h 第 289 行定义.

◆ ix_

template<typename T >
int apollo::perception::algorithm::Voxel< T >::ix_

在文件 i_struct_s.h 第 286 行定义.

◆ iy_

template<typename T >
int apollo::perception::algorithm::Voxel< T >::iy_

在文件 i_struct_s.h 第 286 行定义.

◆ iz_

template<typename T >
int apollo::perception::algorithm::Voxel< T >::iz_

在文件 i_struct_s.h 第 286 行定义.

◆ v_

template<typename T >
T apollo::perception::algorithm::Voxel< T >::v_[3]

在文件 i_struct_s.h 第 283 行定义.


该类的文档由以下文件生成: